Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs-omnicoreagent.omnirexfloralabs.com/llms.txt

Use this file to discover all available pages before exploring further.

OmniCoreAgent Cookbook

Copy, paste, run. These examples show how to build with OmniCoreAgent from the first local agent through production-shaped application harnesses.

πŸš€ Where to Start

New to OmniCoreAgent? Start with getting_started β€” progressive examples from β€œHello World” to production deployments. Know what you’re building? Find your use case below. Just want to see it work?
from omnicoreagent import OmniCoreAgent

agent = OmniCoreAgent(
    name="my_agent",
    system_instruction="You are a helpful assistant.",
    model_config={"provider": "openai", "model": "gpt-4o"}
)

result = await agent.run("Hello!")
print(result["response"])

πŸ“š Build by Use Case

πŸ€– I want to build my first agent

β†’ getting_started β€” Basic agents, tools, memory, events, and configuration.

πŸ› οΈ I want to use custom tools

β†’ getting_started/agent_with_local_tools.py β€” Register Python functions as tools.

πŸ”Œ I want to connect MCP servers

β†’ getting_started/agent_with_mcp_tools.py β€” Connect to external MCP servers.

πŸ‘₯ I want agents working together

β†’ workflows β€” Sequential, Parallel, and Router agents.

🚁 I want agents running autonomously

β†’ background_agents β€” Scheduled tasks and queue-based execution.

🧠 I want complex multi-step workflows

β†’ getting_started/agent_with_sub_agents.py β€” OmniCoreAgent dynamic subagents, workspace files, and orchestration.

🏭 I want to build a real application

β†’ real_applications β€” Production-shaped app harness examples that show domain tools, workspace files, offloading, telemetry, guardrails, and workspace command tools across different apps.

πŸ§ͺ I want more domain demos

β†’ advanced_agent β€” E-commerce, flight booking, customer support, due diligence.

🌐 I want to deploy as an API

β†’ omniserve β€” Deploy agents as REST/SSE APIs with one command.

πŸš€ I want to run in production

β†’ production β€” Metrics and guardrails.

πŸ“‚ Directory Structure

cookbook/
β”œβ”€β”€ getting_started/     # Start here! Progressive learning path
β”œβ”€β”€ workflows/           # Multi-agent orchestration patterns
β”œβ”€β”€ background_agents/   # Scheduled and autonomous agents
β”œβ”€β”€ omniserve/           # πŸ†• Deploy agents as REST/SSE APIs
β”œβ”€β”€ real_applications/   # End-to-end application harness examples
β”œβ”€β”€ advanced_agent/      # Real-world application examples
└── production/          # Production-ready configurations

ExampleWhat You’ll Build
Research Due DiligenceResearch agent with parallel tools, workspace reports, artifact readback, telemetry
Support OperationsSupport agent with customer/order tools, guardrails, escalation, workspace notes
Workspace Code ReviewCode review agent using built-in workspace file commands instead of unrestricted shell
Support Background TaskReal support operations app running through durable background task state, events, attempts, and workspace output
E-commerce ShopperPersonal shopping assistant with cart, preferences, recommendations
Flight BookingTravel agent with search, booking, and itinerary management
Customer SupportSupport agent with ticket handling and escalation
Due DiligenceInvestment research with web search, analysis, and reporting

🀝 Contributing

Want to add a cookbook example? See CONTRIBUTING.mdx for guidelines.