> ## 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.

# get_conversation_id

> Get the conversation ID for the current agent invocation.

Get the conversation ID for the current agent invocation.

Retrieves the conversation ID that was previously set using set\_conversation\_id().
Works in both synchronous and asynchronous contexts automatically.

## Parameters

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

## Returns

<ResponseField type="str">
  The conversation ID string, or empty string if none has been set
</ResponseField>
