Skip to main content
The praisonai docs api-md command generates a comprehensive API reference document (api.md) at the repository root, covering all public exports from praisonaiagents, praisonai, CLI commands, and TypeScript packages.

Quick Start

Commands

Generate API Reference

Generates api.md at the repository root with all public API surfaces. Expected Output:

Check Mode

Verifies that api.md is up to date. Exits with code 1 if outdated. Use Case: CI/CD pipelines to ensure API docs are current. Expected Output (when current):
Expected Output (when outdated):
Prints the generated API reference to stdout instead of writing to file. Use Case: Preview changes or pipe to other tools.

Generated Content

The api.md file includes:

Python Core SDK (praisonaiagents)

  • Agents - Agent, Agents, AutoAgents, DeepResearchAgent, etc.
  • Tools - BaseTool, FunctionTool, MCP, Tools
  • Workflows - Workflow, Task, Pipeline
  • Memory - Memory, Session, Context
  • Knowledge - Knowledge, RAG, Chunking
  • Other - Handoff, Guardrails, Skills, Telemetry

Python Wrapper (praisonai)

  • PraisonAI, Deploy, Recipe
  • Re-exported praisonaiagents symbols

CLI Commands

All praisonai CLI commands with their subcommands and flags.

TypeScript SDK (praisonai-ts)

All exported classes, types, and functions from the TypeScript package.

Output Format

The generated api.md follows OpenAI SDK-style formatting:
Methods:
  • Agent.start(prompt: str)
  • Agent.chat(message: str)

Contributing

When adding new public APIs:
  1. Add the symbol to __all__ in the relevant __init__.py
  2. Run praisonai docs api-md to regenerate
  3. Commit both code changes and updated api.md

Python API