-
Notifications
You must be signed in to change notification settings - Fork 344
Closed
Labels
Description
Checks
- I have updated to the lastest minor and patch version of Strands
- I have checked the documentation and this is not expected behavior
- I have searched ./issues and there are no duplicates of my issue
Strands Version
1.5
Python Version
3.13
Operating System
MacOS
Installation Method
pip
Steps to Reproduce
Hi,
I am trying to pass a tool values that sit as part of the agent context.
For example -
agent(prompt="my question", jwt=jwt, session_id=session_id)
...
@tool
def resolve_report_fields(type: str, **kwargs: Any)
session_id = kwargs.get('session_id')
jwt = kwargs.get('jwt')
...
However, session_id and jwt are empty.
This is in contrast to the coe documentation.
Am I missing something in the implementation?
Expected Behavior
I would expect the arguments to get passed to the tools
Actual Behavior
They are not passed to the tools
Additional Context
Similar to RunContextWrapper in openai-agents
Possible Solution
No response
Related Issues
No response