Skip to main content

Agent Recipes Integration

Learn how to use Agent Recipes programmatically in your Python applications.

Installation

Basic Usage

Using the LLM Tool Directly

Using Multiple Providers

JSON Extraction

Using Recipe Tools

Vision Tool

Chart Tool

Email Tool

Loading and Running Recipes

Load Recipe Configuration

Check Dependencies

Building Custom Recipes

Create a Custom Recipe

Create a Multi-Tool Recipe

Error Handling

Integration with PraisonAI Agents

Best Practices

  1. Always check dependencies before running recipes
  2. Use environment variables for API keys
  3. Handle errors gracefully with try/except
  4. Use dry-run mode for testing
  5. Cache results when appropriate
  6. Log execution metadata for debugging

Next Steps