1. Prerequisites
- Python 3.8+
-
API keys for:
- OpenAI (
OPENAI_API_KEY
) - Anthropic (
ANTHROPIC_API_KEY
) - Tavily (
TAVILY_API_KEY
) - Maxim (
MAXIM_API_KEY
) - Maxim Log Repository ID (
MAXIM_LOG_REPO_ID
)
- OpenAI (
-
Install packages:
2. Imports & Environment
3. Initialize Maxim Logger
4. Define Agent State & Tools
5. Model Selection Helper
6. Control Flow: Continue or End
7. Define the function that calls the model
8. Build the LangGraph Workflow
9. Start tracing entire LangGraph agent using 2 simple annotations.
10. Get the response from the agent:
