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

> Add Fiddler-specific session attributes to an agent's metadata.

Add Fiddler-specific session attributes to an agent's metadata.

Session attributes provide context about the agent's execution environment,
such as user roles, cost centers, or any custom metadata that should be
tracked across all invocations within a session.

## Parameters

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

<ParamField path="**kwargs" type="str | int | float | bool" required={false}>
  Key-value pairs of session attributes (str, int, float, or bool values)
</ParamField>

## Example

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

agent = Agent(model=model, system_prompt="...")
set_session_attributes(agent, role="customer_support", region="us-west")
```
