A minimal agentic application using OpenAI SDK to demonstrate tool usage by AI agents.
- Weather Tool: Get current weather for cities
- Currency Converter Tool: Convert between currencies
- Automatic tool selection and execution by the agent
- Install dependencies:
pip install -r requirements.txt- Set your OpenAI API key:
export OPENAI_API_KEY='your-key-here'
export MCP_BEARER_TOKEN='your-cognito-token'
export YOUR_GATEWAY_URL='your-gateway-url'
python agent.pyThe agent receives a user query and automatically:
- Determines which tool(s) to use
- Executes the tools with appropriate parameters
- Returns a natural language response
Perfect for demonstrating how easy it is to deploy with Bedrock AgentCore!