Skip to main content
Set the conversation ID for the current agent invocation. The conversation ID is used to group related agent invocations together, enabling conversation-level tracing and monitoring in Fiddler’s platform. This ID will persist until it is explicitly changed by calling this function again with a new value.

Parameters

Agent
required
The Strands Agent instance to associate with the conversation
str
required
Unique identifier for the conversation (e.g., session ID, user ID)

Example