Advanced

Advanced team examples for task mode, run control, context management, multimodal input, metrics, reasoning, and dependencies.

ExampleDescription
Basic Task Mode ExampleA tasks-mode team decomposes a briefing request into research, writing, and review tasks.
Parallel Task Execution ExampleDemonstrates the execute_tasks_parallel tool in task mode.
Task Mode with Tool-Equipped AgentsDemonstrates task mode where member agents have real tools.
Async Task Mode ExampleDemonstrates task mode using the async API (arun / aprint_response).
Task Dependencies ExampleDemonstrates complex task dependency chains in task mode.
Task Mode with Custom ToolsDemonstrates task mode where member agents use custom Python function tools.
Multi-Run Session with Task ModePersist task state and conversation between runs with the documented database setup.
EventsInspect team and member lifecycle and tool events in an async stream.
StreamingDemonstrates sync and async streaming responses from a team.
MetricsDemonstrates retrieving team, session, and member-level execution metrics.
Cancel RunDemonstrates cancelling an in-flight team run from a separate thread.
Model InheritanceDemonstrates how member models inherit from parent team models.
Remote TeamDemonstrates calling and streaming a team hosted on a remote AgentOS instance.
RetriesDemonstrates team retry configuration for transient run errors.
Few Shot LearningDemonstrates using additional_input examples to guide team support responses.
Filter Tool Calls From HistoryDemonstrates limiting historical tool call results in team context.
IntroductionDemonstrates setting a reusable team introduction message for a session.
Tool Call Compression With ManagerDemonstrates custom tool result compression using CompressionManager.
Tool Call CompressionDemonstrates team-level tool result compression in both sync and async workflows.
Dependencies In ContextDemonstrates team-level dependencies referenced directly in instructions and member context.
Dependencies In ToolsDemonstrates passing dependencies at runtime and accessing them inside team tools.
Dependencies To MembersDemonstrates passing dependencies on run and propagating them to member agents.
Background ExecutionBackground execution allows you to start a team run that returns immediately with a PENDING status, while the actual work continues in the background.
Reasoning Multi Purpose TeamDemonstrates multi-purpose team reasoning with both sync and async patterns.
Audio Sentiment AnalysisDemonstrates team-based transcription and sentiment analysis for audio conversations.
Audio To TextDemonstrates team-based audio transcription and follow-up content analysis.
Generate Image With TeamLegacy DalleTools team example for prompt refinement and image generation.
Image To Image TransformationDemonstrates collaborative style planning and image transformation.
Image To Structured OutputDemonstrates collaborative visual analysis with structured movie script output.
Image To TextDemonstrates collaborative image analysis and narrative generation.
Media Input For ToolDemonstrates team tools accessing uploaded media files directly.
Video Caption GenerationDemonstrates team-based video caption generation and embedding workflow.