> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fiddler.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# set_conversation_id

> Set the conversation ID for the current agent invocation.

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

<ParamField path="agent" type="Agent" required={true}>
  The Strands Agent instance to associate with the conversation
</ParamField>

<ParamField path="conversation_id" type="str" required={true}>
  Unique identifier for the conversation (e.g., session ID, user ID)
</ParamField>

## Example

```python theme={null}
from strands import Agent
from fiddler_strandsagents import set_conversation_id

agent = Agent(model=model, system_prompt="...")
set_conversation_id(agent, "session_12345")
```
