Skip to main content
Design, test, and document recipes with clear inputs, outputs, and agent instructions.
The user publishes recipes that app teams consume through SDK, CLI, or HTTP integrations.
Role: Design, build, test, and document recipes that solve real-world problems for App Developers and end users.

Primary Goals

  • Create effective recipes that solve specific problems
  • Design clear interfaces with well-defined inputs/outputs
  • Write comprehensive tests for reliability
  • Document thoroughly for easy adoption

All Integration Models

Understand how recipes are consumed

Use Cases

Learn from existing patterns

Decision Guide

Help users choose the right approach

App Developer Persona

Understand your users

Typical Workflow

1

Define the Problem

2

Create Recipe Structure

3

Implement the Recipe

4

Write Tests

5

Document the Recipe

Create a README.md with:
  • Title and description - What the recipe does
  • Quick start - Minimal example to get started
  • Inputs table - All parameters with types and descriptions
  • Outputs table - What the recipe returns
  • Examples - Multiple usage scenarios
  • Requirements - Dependencies and environment variables
  • Troubleshooting - Common issues and solutions
Example README structure:

Key Concerns

Interface Design

Error Handling

Testing Strategy

Best Practices

Troubleshooting

Check recipe location:
  • Ensure API keys are set in CI secrets
  • Use mocks for unit tests
  • Mark integration tests appropriately
  • Add temperature control to prompts
  • Implement output validation
  • Add retry logic for edge cases

Handoff Checklist

Before releasing a recipe:
  • TEMPLATE.yaml is complete and valid
  • All inputs have descriptions and types
  • All outputs are documented
  • README.md with examples
  • Unit tests pass
  • Integration tests pass
  • Tested with all integration models (SDK, CLI, HTTP)
  • Error messages are user-friendly
  • Dependencies are specified with versions
  • License is specified

Next Steps


SDK & Recipe Author Reference (Copy/Paste for AI)

This section is designed to be copied wholesale and given to an AI assistant. It contains everything needed to build a complete, valid PraisonAI recipe from scratch.

1. Recipe Discovery

Recipes are discovered from these directories in order of precedence (first match wins): Source: praisonai/cli/features/recipes.pyRECIPE_PATHS, find_recipe_paths()

2. Recipe Directory Structure

3. TEMPLATE.yaml Complete Schema

4. Runtime Contract

Required Entrypoint

Every recipe must have a recipe.py with this signature:

Standard Output Contract

5. SDK Reference for Recipe Authors

Core Imports from praisonaiagents

Recipe Tools from praisonai-tools

6. CLI Reference

All Commands

CLI Flags Reference

7. Testing Patterns

8. Distribution & Packaging

To share a recipe:
  1. Create a Git repository with the recipe directory structure
  2. Users clone/copy to ~/.praisonai/templates/
  3. Or publish to a recipe registry (future feature)

9. Troubleshooting Matrix

10. AI Recipe Author Prompt

Use this prompt to instruct an AI to create a valid recipe:

Source Files Reference:
  • CLI: praisonai/cli/features/recipes.py
  • Tools: praisonai_tools/recipe_tools/__init__.py
  • Core SDK: praisonaiagents/__init__.py
  • Templates: Agent-Recipes/agent_recipes/templates/*/TEMPLATE.yaml