Prerequisites
- Python 3.11+ or Node.js 20+
- An Opper API key (get one here)
1. Install the SDK
2. Set Your API Key
3. Create Your First Agent
Create a file and add the following code:4. Run Your Agent
What Just Happened?
- The agent received your question
- It analyzed the available tools (
add,multiply) - It decided to first call
add(5, 3)to get 8 - Then it called
multiply(8, 2)to get 16 - Finally, it returned the result
5. Add Structured Output
For production use, you’ll want typed outputs. Add an output schema:Next Steps
Core Concepts: Tools
Learn all the ways to define tools
Agent Composition
Use agents as tools in other agents
Memory
Enable persistent memory across calls
Examples
See complete working examples