

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Build an AI Agent
incomplete
2: Python Setup
incomplete
3: OpenRouter API
incomplete
4: Token Metadata
incomplete
5: User Input
incomplete
6: Multiple Messages
incomplete
7: Verbose Output
incomplete
This lesson's interactive features are locked, please to keep using them
As you debug and build your AI agent, you'll probably want to dump a lot more context into the console... but at the same time, we don't want to make the user experience of our CLI tool too noisy...
Let's add an optional command-line flag, --verbose, that will allow us to toggle "verbose" output on and off. When we want to see more info, we'll just turn that bad boy on.
parser.add_argument("--verbose", action="store_true", help="Enable verbose output")
Otherwise, this metadata should not be printed – only the response.
uv run main.py "What is the meaning of life?" --verbose
uv run main.py "How much wood would a woodchuck chuck if a woodchuck could chuck wood?"
If everything looks good, run and submit the CLI tests.