How ragook6/agentcoregateway works
This repository implements an AI vacation planner: a user submits a destination through the Streamlit interface, which calls an API endpoint backed by Lambda; Lambda invokes the AgentCore runtime, where a CrewAI workflow produces the plan. The crew configures research and itinerary agents, with travel-package lookup through an authenticated AgentCore Gateway and search/LLM integrations. The source excerpts show the UI, Lambda, runtime entrypoint, and crew wiring; task and agent YAML contents and gateway internals were not sampled, so their detailed behavior is not expanded.
Main entry points: crew.py Crew Entrypoint · streamlit_api.py Vacation UI · lambda_function.py Lambda Handler · agents.yaml Vacation Research
Components 14
User Interface
- Vacation UI
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/streamlit_api.py - API Endpoint
Request Runtime
- Lambda Handler
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/lambda_function.py - AgentCore Runtime
Planning Workflow
- Crew Entrypoint
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/src/vacation_planner/crew.py - Vacation Research
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/src/vacation_planner/config/agents.yaml - Itinerary Planning
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/src/vacation_planner/config/tasks.yaml - Plan Report
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/src/vacation_planner/config/tasks.yaml
External Integrations
- Package Tool
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/src/vacation_planner/crew.py - AgentCore Gateway
- Cognito Token Service
- Serper Search
- Bedrock LLM
Other components
- Traveler
Connections 13
- Traveler → Vacation UI: enters destination
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/streamlit_api.py - Vacation UI → API Endpoint: posts prompt
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/streamlit_api.py - API Endpoint → Lambda Handler: routes request
- Lambda Handler → AgentCore Runtime: invokes runtime
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/lambda_function.py - AgentCore Runtime → Crew Entrypoint: dispatches invocation
- Crew Entrypoint → Vacation Research: configures agent
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/src/vacation_planner/crew.py - Crew Entrypoint → Itinerary Planning: configures task
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/src/vacation_planner/crew.py - Crew Entrypoint → Plan Report: writes report
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/src/vacation_planner/crew.py - Crew Entrypoint → Package Tool: registers tool
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/src/vacation_planner/crew.py - Package Tool → Cognito Token Service: fetches token
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/src/vacation_planner/crew.py - Package Tool → AgentCore Gateway: calls package tool
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/src/vacation_planner/crew.py - Crew Entrypoint → Serper Search: provides search
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/src/vacation_planner/crew.py - Crew Entrypoint → Bedrock LLM: configures model
demo_app_agentcore_gateway/demo_app_agentcore_gateway/vacation_planner/src/vacation_planner/crew.py