> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upsonic.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Attributes

> Configuration options for the Team class

## Attributes

The Team class accepts the following parameters:

| Attribute | Type | Default | Description |
| - | - | - | - |
| `agents` | list\[Any] | (required) | List of Agent instances to use as team members |
| `tasks` | list\[Task] \| None | `None` | List of tasks to execute (optional) |
| `model` | Any \| None | `None` | Model provider for internal agents (leader, router) |
| `response_format` | Any | `str` | Response format for the final output |
| `ask_other_team_members` | bool | `False` | Flag to add other agents as tools |
| `mode` | str | `"sequential"` | Operational mode: 'sequential', 'coordinate', or 'route' |
| `memory` | Memory \| None | `None` | Shared memory for team coordination |

## Configuration Example

```python theme={null}
from upsonic import Agent, Task, Team
from upsonic import Memory
from upsonic.storage.providers.sqlite import SqliteStorage

# Create SQLite storage and memory
storage = SqliteStorage(
    db_file="memory.db",
    sessions_table_name="sessions",
    profiles_table_name="profiles"
)

memory = Memory(storage=storage, session_id="team_001")

# Create specialized agents
data_analyst = Agent(
    "anthropic/claude-sonnet-4-5",
    name="DataAnalyst",
    role="Data analysis expert"
)

report_writer = Agent(
    "anthropic/claude-sonnet-4-5",
    name="ReportWriter",
    role="Technical writer"
)

# Create team with configuration
team = Team(
    agents=[data_analyst, report_writer],
    mode="coordinate",
    model="anthropic/claude-sonnet-4-5",
    memory=memory,
    ask_other_team_members=True
)

# Define tasks
tasks = [
    Task("Analyze quarterly sales data"),
    Task("Write a comprehensive report based on the analysis")
]

# Execute team
result = team.do(tasks)
print(result)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.