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

> Get the session attributes for the current agent invocation.

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

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

## Returns

<ResponseField type="dict[str, str | int | float | bool]">
  Dictionary of session attribute key-value pairs, or empty dict if none exist
</ResponseField>
