> ## Documentation Index
> Fetch the complete documentation index at: https://phidatainc-studio-tools-doc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Task Mode

> Cookbook example.

| Example                                                                                                      | Description                                                                                                                                            |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Basic Task Mode Example](/examples/teams/task-mode/basic-task-mode)                                         | Demonstrates a team in `mode=tasks` where the team leader autonomously: 1.                                                                             |
| [Parallel Task Execution Example](/examples/teams/task-mode/parallel-tasks)                                  | Demonstrates the `execute_tasks_parallel` tool in task mode. The team leader.                                                                          |
| [Task Mode with Tool-Equipped Agents](/examples/teams/task-mode/task-mode-with-tools)                        | Demonstrates task mode where member agents have real tools. The team leader.                                                                           |
| [Async Task Mode Example](/examples/teams/task-mode/async-task-mode)                                         | Demonstrates task mode using the async API (arun / aprint\_response).                                                                                  |
| [Task Dependencies Example](/examples/teams/task-mode/dependency-chain)                                      | Demonstrates complex task dependency chains in task mode. The team leader.                                                                             |
| [Task Mode with Custom Tools](/examples/teams/task-mode/custom-tools)                                        | Demonstrates task mode where member agents use custom Python function tools.                                                                           |
| [Multi-Run Session with Task Mode](/examples/teams/task-mode/multi-run-session)                              | Demonstrates that task state persists across multiple runs within the same.                                                                            |
| [Events](/examples/teams/streaming/team-events)                                                              | Demonstrates monitoring team and member events in sync-like and async event streams.                                                                   |
| [Streaming](/examples/teams/streaming/team-streaming)                                                        | Demonstrates sync and async streaming responses from a team.                                                                                           |
| [Metrics](/examples/teams/metrics/team-metrics)                                                              | Demonstrates retrieving team, session, and member-level execution metrics.                                                                             |
| [Cancel Run](/examples/teams/run-control/cancel-run)                                                         | Demonstrates cancelling an in-flight team run from a separate thread.                                                                                  |
| [Model Inheritance](/examples/teams/run-control/model-inheritance)                                           | Demonstrates how member models inherit from parent team models.                                                                                        |
| [Remote Team](/examples/teams/run-control/remote-team)                                                       | Demonstrates calling and streaming a team hosted on a remote AgentOS instance.                                                                         |
| [Retries](/examples/teams/run-control/retries)                                                               | Demonstrates team retry configuration for transient run errors.                                                                                        |
| [Few Shot Learning](/examples/teams/context-management/few-shot-learning)                                    | Demonstrates using additional\_input examples to guide team support responses.                                                                         |
| [Filter Tool Calls From History](/examples/teams/context-management/filter-tool-calls-from-history)          | Demonstrates limiting historical tool call results in team context.                                                                                    |
| [Introduction](/examples/teams/context-management/introduction)                                              | Demonstrates setting a reusable team introduction message for a session.                                                                               |
| [Tool Call Compression With Manager](/examples/teams/context-compression/tool-call-compression-with-manager) | Demonstrates custom tool result compression using CompressionManager.                                                                                  |
| [Tool Call Compression](/examples/teams/context-compression/tool-call-compression)                           | Demonstrates team-level tool result compression in both sync and async workflows.                                                                      |
| [Dependencies In Context](/examples/teams/dependencies/dependencies-in-context)                              | Demonstrates team-level dependencies referenced directly in instructions and member context.                                                           |
| [Dependencies In Tools](/examples/teams/dependencies/dependencies-in-tools)                                  | Demonstrates passing dependencies at runtime and accessing them inside team tools.                                                                     |
| [Dependencies To Members](/examples/teams/dependencies/dependencies-to-members)                              | Demonstrates passing dependencies on run and propagating them to member agents.                                                                        |
| [Background Execution](/examples/teams/other/background-execution)                                           | Background 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 Team](/examples/teams/reasoning/reasoning-multi-purpose-team)                       | Demonstrates multi-purpose team reasoning with both sync and async patterns.                                                                           |
| [Audio Sentiment Analysis](/examples/teams/multimodal/audio-sentiment-analysis)                              | Demonstrates team-based transcription and sentiment analysis for audio conversations.                                                                  |
| [Audio To Text](/examples/teams/multimodal/audio-to-text)                                                    | Demonstrates team-based audio transcription and follow-up content analysis.                                                                            |
| [Generate Image With Team](/examples/teams/multimodal/generate-image-with-team)                              | Demonstrates collaborative prompt optimization and DALL-E image generation.                                                                            |
| [Image To Image Transformation](/examples/teams/multimodal/image-to-image-transformation)                    | Demonstrates collaborative style planning and image transformation.                                                                                    |
| [Image To Structured Output](/examples/teams/multimodal/image-to-structured-output)                          | Demonstrates collaborative visual analysis with structured movie script output.                                                                        |
| [Image To Text](/examples/teams/multimodal/image-to-text)                                                    | Demonstrates collaborative image analysis and narrative generation.                                                                                    |
| [Media Input For Tool](/examples/teams/multimodal/media-input-for-tool)                                      | Demonstrates team tools accessing uploaded media files directly.                                                                                       |
| [Video Caption Generation](/examples/teams/multimodal/video-caption-generation)                              | Demonstrates team-based video caption generation and embedding workflow.                                                                               |
