API reference for get_conversation_id
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.
agent
Agent
✗
None
The Strands Agent instance to retrieve the conversation ID from
The conversation ID string, or empty string if none has been set Return type: str
Last updated 2 months ago
Was this helpful?