A simple demo showcasing the integration of OpenAI Agents SDK with Comet Opik for observability. This demo features two agents:
- RecipeSuggesterAgent: Suggests recipes based on provided ingredients
- RecipeResearchAgent: Researches additional information about the suggested recipe
- Install dependencies:
pip install openai-agents opik python-dotenv
- Set up your OpenAI API key:
# Option A: Create a .env file
OPENAI_API_KEY=your_openai_key_here
# Option B: Export as environment variable
export OPENAI_API_KEY=your_openai_key_here
- Configure Opik:
opik configure
# Follow prompts for local server address
- Run the demo:
python recipe_agent.py
- Multi-agent orchestration using OpenAI Agents SDK
- Asynchronous execution with proper error handling
- Integration with Comet Opik for tracing and observability
- Simple command-line interface for ingredient input
Welcome to the Recipe Agent Demo!
Enter a list of ingredients (comma-separated): chicken, rice, soy sauce
Suggested Recipe:
[Recipe suggestion will appear here]
Recipe Research:
[Additional information will appear here]
recipe_agent.py
: Main application file containing agent definitions and logic.env
: (Optional) Environment variables file for API keys