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

# Stream Emitter • AI Agent SDK

> stream_emitter: Aggregate ``StreamEventEmitter`` fanning in member agents' events.

# stream\_emitter

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**AgentTeam**](../classes/AgentTeam) class in the [**agents**](../modules/agents) module.

Aggregate `StreamEventEmitter` fanning in member agents' events.

Lazily created on first access. On creation it registers a forwarding
callback on each member agent's own `stream_emitter` so per-step
events (tool calls, text/reasoning deltas, retries, errors) surface on a
single team-level emitter, each tagged with the emitting agent's
`agent_id`. This gives a single attach point (e.g. the CLI
`--output stream-json` bridge) parity with single-agent runs.

Zero-overhead when unused: nothing is wired unless this property is
accessed, and forwarding only tags `agent_id` when the source event
did not already carry one.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def stream_emitter() -> Any
```

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Uses

* `StreamEventEmitter`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agents/agents.py#L1038">
  `praisonaiagents/agents/agents.py` at line 1038
</Card>
