Skip to content

Documentation / @agentick/shared / StreamEventBase

Interface: StreamEventBase ​

Defined in: streaming.ts:144

Base fields shared by all stream events.

Properties ​

id ​

id: string

Defined in: streaming.ts:146

Normalized event ID (generated by entity-ids if provider doesn't provide one)


raw? ​

optional raw: unknown

Defined in: streaming.ts:168

Original provider event/chunk for pass-through (debugging, provider-specific features)


sequence ​

sequence: number

Defined in: streaming.ts:159

Monotonically increasing sequence number within the session.

Enables:

  • Durable streams (reconnection, replay)
  • Gap detection (missing events)
  • Ordering guarantees
  • Deduplication

Assigned by the session when emitting events. Starts at 1.


sessionId? ​

optional sessionId: string

Defined in: streaming.ts:172

Available on all events emitted from within a session


spawnPath? ​

optional spawnPath: string[]

Defined in: streaming.ts:175

Spawn ancestry chain. Present on events bubbled from child sessions.


tick ​

tick: number

Defined in: streaming.ts:162

Tick number (default 1 for direct model calls without engine)


timestamp ​

timestamp: string

Defined in: streaming.ts:165

ISO 8601 timestamp when event was created/emitted

Released under the ISC License.