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.

Workflow Agents

Orchestrate multiple agents for complex tasks using Sequential, Parallel, and Router patterns.

Examples

FilePatternKey Concepts
sequential_workflow.pySequentialChain agents to pass results step-by-step
parallel_agent.pyParallelRun agents concurrently for speed
router_agent.pyRouterIntelligently route tasks to specialized agents

When to Use Each Pattern

PatternUse WhenExample
SequentialTasks depend on each otherResearch → Analyze → Report
ParallelTasks are independentCheck 3 APIs simultaneously
RouterTask type determines handlerCustomer → Support vs Sales

Quick Start

from omnicoreagent import SequentialAgent

workflow = SequentialAgent(
    name="research_pipeline",
    agents=[researcher, analyst, writer],
)

result = await workflow.run("Analyze AI trends in healthcare")

Next: Check out Background Agents for scheduled autonomous tasks.