You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importboto3fromagno.agentimportAgentfromagno.models.aws.claudeimportClaudesession=boto3.Session(profile_name="my_profile")
model_id="us.anthropic.claude-3-5-haiku-20241022-v1:0"model=Claude(id=model_id, session=session)
agent=Agent(
model=model,
instructions="You are a Claude model trained on haiku. Write a haiku about the current weather.",
markdown=True,
stream=True,
)
agent.print_response("The sun is shining", stream=True)
Agent Configuration (if applicable)
Provide relevant agent configuration.
Expected Behavior
Actual Behavior
Screenshots or Logs (if applicable)
Include any relevant screenshots or error logs that demonstrate the issue.
Environment
OS: macOS 15.3
Browser (if relevant): N/A
Agno Version: v1.1.6
External Dependency Versions:
boto3==1.37.0
Additional Environment Details: Python 3.12
Possible Solutions (optional)
I have tested adding aws_session_token param to client_params and it worked, then I realized that Claude class doesn't support session token at all. I could find the problem but I don't have much with python to submit a pull request and make sure I'm not breaking anything.
Additional Context
Add any other context or details about the problem here.
The text was updated successfully, but these errors were encountered:
Description
Boto Session doesn't support Session Token
Steps to Reproduce
~/.aws/credentials
Agent Configuration (if applicable)
Provide relevant agent configuration.
Expected Behavior
Actual Behavior
Screenshots or Logs (if applicable)
Include any relevant screenshots or error logs that demonstrate the issue.
Environment
boto3==1.37.0
Possible Solutions (optional)
I have tested adding

aws_session_token
param to client_params and it worked, then I realized that Claude class doesn't support session token at all. I could find the problem but I don't have much with python to submit a pull request and make sure I'm not breaking anything.Additional Context
Add any other context or details about the problem here.
The text was updated successfully, but these errors were encountered: