This demo includes a mock travel agent that accepts flight and travel booking requests. The agent code is implemented using AWS Strands agentic framework. The demo scripts helps you to deploy this agent in AWS Agentcore service. The agent is enabled to generate Monocle traces and send those to Okahu cloud.
-
AWS Bedrock with foundational text LLMs enabled.
-
AWS Agentcore
- Verify that AgentCore is available in your tenant and region for deployment. Refer to Agentcore FAQ
-
AWS CLI
- Install AWS CLI by following the installation instructions
-
AWS credentials
- This value can be obtained by running AWS CLI
aws sts get-session-tokenin the Terminal. For more options please refer to AWS instructions on CLI auth. - Use the two values from the output:
"Credentials": { "AccessKeyId": "<VALUE>", "SecretAccessKey": "<VALUE>" }
- This value can be obtained by running AWS CLI
-
Okahu cloud account
- Sign up on Okahu portal
-
Okahu API key
- Go to https://portal.okahu.co/settings
- Generate API key and copy it
- Start a command line shell
- Create a Python virtual environment
python -m venv .venv
- Activate the virtual environment
- On macOS/Linux:
source .venv/bin/activate - On Windows (Git Bash):
source .venv/bin/activate - On Windows (Command Prompt):
.venv\Scripts\activate.bat - On Windows (PowerShell):
.venv\Scripts\Activate.ps1
- On macOS/Linux:
- Create a Python virtual environment
- Install dependencies in your python environment
pip install -r requirements.txt
- Run Okahu demo setup tool. This will deploy demo agent to AWS Agentcore and setup Okahu tenant for consuming traces from that deployment.
okahu_agentcore_demo_setup --key <OKAHU-API-KEY>- Verify that you see
Demo setup completed successfullyat the end
- Goto Agentcore Sandbox
- Enter the test prompt in the
Inputfield -Book a flight from San Jose to Seattle for 30 March 2026
- Start command shell and source python env
- Run Agentcore CLI command
agentcore invoke '{"prompt": "<prompt>"}'
- Log in to Okahu portal
- Click on the
AgentCore Travel Agentapplication tab - Click on the
Tracestab - From the
Breakdowndropdown list, selectGenAIand then click Search - View the traces
- Start a command line shell
- Create a Python virtual environment
python -m venv .venv
- Activate the virtual environment
- On macOS/Linux:
source .venv/bin/activate - On Windows (Git Bash):
source .venv/bin/activate - On Windows (Command Prompt):
.venv\Scripts\activate.bat - On Windows (PowerShell):
.venv\Scripts\Activate.ps1
- On macOS/Linux:
- Create a Python virtual environment
- Source python env
- Install python dependencies
pip install -r requirements.txt
- Run pytest
pytest -vv test/test_travel_agent.py
- Install extension
Okahu Trace Visualizerfrom marketplace for your Kiro IDE (or VSCode, Cursor, Antigravity) - This will add the Okahu extension in the list of extension (left pane for VSCode or extension dropdown in Cursor).
- Click on the extension icon. It'll open a new pane on left that will list the traces for each agent turn in the descending order of execution time.
- When you click on any of the trace list, it will open a new window with the trace visualization.


