Skip to content

Amazon Bedrock Agent Samples - [Bug] - typing.Self was added in Python 3.11+ #104

@MartinR-L

Description

@MartinR-L

Describe the bug
Many samples cannot be run as-is from within AWS. AWS cloud shell natively runs Python 3.9 and Sagemaker notebooks run 3.10. Instructions should be updated to mention that Python 3.8 is no longer acceptable. Or additional instructions provided to clarify the environment required.

To Reproduce
Any attempts to deploy a sample that calls 'bedrock_agent.py' from within AWS will fail unless the version of Python is updated to 3.11+.

Expected behavior
After deploying Web Search tool and Working Memory tool, attempts to run the 'start-up advisor':

python3 examples/multi_agent_collaboration/startup_advisor_agent/main.py \
--recreate_agents "true"

Produce the output:
Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions