Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get the session attributes for the current agent invocation.
from strands import Agent from strands.models.openai import OpenAIModel from fiddler_strandsagents import get_session_attributes, set_session_attributes model = OpenAIModel(api_key="...", model_id="gpt-4o") agent = Agent(model=model) set_session_attributes(agent, role="customer_support", region="us-west") attrs = get_session_attributes(agent) print(attrs) # {"role": "customer_support", "region": "us-west"}
Was this page helpful?