Skip to content

faalantir/agentcore-fun

Repository files navigation

Simple Agentic App Demo

A minimal agentic application using OpenAI SDK to demonstrate tool usage by AI agents.

Features

  • Weather Tool: Get current weather for cities
  • Currency Converter Tool: Convert between currencies
  • Automatic tool selection and execution by the agent

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. 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'

Run

python agent.py

How It Works

The agent receives a user query and automatically:

  1. Determines which tool(s) to use
  2. Executes the tools with appropriate parameters
  3. Returns a natural language response

Perfect for demonstrating how easy it is to deploy with Bedrock AgentCore!

About

AWS Bedrock AgentCore Sample App interacting with Cognito/Gateways

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published