Theo Docs
TheoKitTheoKit-SDKTheoUITheo PaaS
API reference

StreamObjectEvent

Event emitted by Agent.streamObject. Discriminate on `type`.

StreamObjectEvent

Auto-generated from TypeDoc on each build. Edit the JSDoc in packages/sdk/src/ to change this page.

Event emitted by Agent.streamObject. Discriminate on type.

  • partial events fire zero or more times with monotonically increasing attempt, carrying best-effort schema-parsed snapshots of the model's accumulating output.
  • complete fires exactly once at the end, carrying the fully Zod-parsed object alongside usage and finishReason — semantically identical to a successful Agent.generateObject() return.

Signature

type StreamObjectEvent

Kind

type

Source

packages/sdk/src/stream-object.ts:62

On this page