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

# Teams

> Public teams signatures and configuration in @agentium/core 4.0.0.

Import these **3 exports** from `@agentium/core`. Read the [teams guide](/teams/overview) for setup and behavior, or return to the [package reference](/api-reference/core).

A `?` marks an optional field. These are declarations for lookup; run the examples in the linked guide. Follow related-type links for Agentium types and source links for imported dependency types.

## Team

[Source](https://github.com/agentiumOS/agentium/blob/v4.0.0/packages/core/src/team/team.ts)

```typescript theme={null}
export declare class Team {
    readonly kind: "team";
    readonly name: string;
    readonly eventBus: EventBus;
    constructor(config: TeamConfig);
    run(input: string, opts?: RunOpts): Promise<RunOutput>;
    stream(input: string, opts?: RunOpts): AsyncGenerator<StreamChunk>;
}
```

Related: [`EventBus`](/api-reference/core/events#eventbus), [`RunOpts`](/api-reference/core/agent#runopts), [`RunOutput`](/api-reference/core/agent#runoutput), [`StreamChunk`](/api-reference/core/models#streamchunk), [`TeamConfig`](/api-reference/core/team#teamconfig).

## TeamConfig

[Source](https://github.com/agentiumOS/agentium/blob/v4.0.0/packages/core/src/team/types.ts)

```typescript theme={null}
export interface TeamConfig {
    name: string;
    mode: TeamMode;
    model: ModelProvider;
    members: Array<Agent | A2ARemoteAgent>;
    instructions?: string;
    sessionState?: Record<string, unknown>;
    storage?: StorageDriver;
    maxRounds?: number;
    eventBus?: EventBus;
    /** Auto-register this team in the global registry. Default: true. Set false to opt out. */
    register?: boolean;
    /**
     * Shared memory across all team members. Member agents that don't have their own
     * memory config will use this shared memory, enabling cross-agent knowledge sharing.
     */
    memory?: UnifiedMemoryConfig;
}
```

Related: [`A2ARemoteAgent`](/api-reference/core/a2a#a2aremoteagent), [`Agent`](/api-reference/core/agent#agent), [`EventBus`](/api-reference/core/events#eventbus), [`ModelProvider`](/api-reference/core/models#modelprovider), [`StorageDriver`](/api-reference/core/storage#storagedriver), [`TeamMode`](/api-reference/core/team#teammode), [`UnifiedMemoryConfig`](/api-reference/core/memory#unifiedmemoryconfig).

## TeamMode

[Source](https://github.com/agentiumOS/agentium/blob/v4.0.0/packages/core/src/team/types.ts)

```typescript theme={null}
export declare enum TeamMode {
    Coordinate = "coordinate",
    Route = "route",
    Broadcast = "broadcast",
    Collaborate = "collaborate",
    Handoff = "handoff"
}
```


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