Skip to main content

Documentation Index

Fetch the complete documentation index at: https://handbook.fiddler.ai/llms.txt

Use this file to discover all available pages before exploring further.

Get the session attributes for the current agent invocation. Retrieves session attributes that were previously set using set_session_attributes(). Works in both synchronous and asynchronous contexts automatically.

Parameters

ParameterTypeRequiredDefaultDescription
agentAgentNoneThe Strands Agent instance to retrieve session attributes from

Returns

Dictionary of session attribute key-value pairs, or empty dict if none exist Return type: dict[str, str | int | float | bool]