# Class LittleGhost::AgentStreamSource

Documentation version: Edge

Canonical HTML: https://littleghostai.org/docs/LittleGhost/AgentStreamSource.html

Describes which Agent produced an event during a Run.

A `:agent_stream` StreamEvent carries this value in
`data[:source]` and the Agent's event as a separate frozen
StreamEvent in `data[:event]`. `assembly_path` is empty for a
top-level Agent and contains one AgentStreamStep for each enclosing composite
assembly participant.

## Inheritance

`LittleGhost::AgentStreamSource < Data`

## Attributes

<a id="attribute-i-agent_id"></a>
### `agent_id` (R)

Stable String identifier declared by the Agent class.

<a id="attribute-i-agent_path"></a>
### `agent_path` (R)

Stable subagent path, beginning at `/root`.

<a id="attribute-i-assembly_path"></a>
### `assembly_path` (R)

Frozen Array of AgentStreamStep values from the outermost assembly inward.

<a id="attribute-i-operation_id"></a>
### `operation_id` (R)

Unique String identifier for this Agent invocation.

<a id="attribute-i-parent_operation_id"></a>
### `parent_operation_id` (R)

Parent operation identifier, or `nil` when the caller did not supply one.
