Skip to main content

Interface: CompiledStrategyStreamResult

Defined in: packages/agentos/src/api/types.ts:975

Internal stream result shape returned by compiled agency strategies.

Strategy compilers may return only the live iterables plus aggregate promises. The outer agency() wrapper can enrich this into the public AgencyStreamResult.

This type exists for strategy authors. Most external callers should consume AgencyStreamResult from agency().stream(...) instead.

Properties

agentCalls?

optional agentCalls: Promise<AgentCallRecord[]>

Defined in: packages/agentos/src/api/types.ts:992

Final per-agent ledger for the strategy run, when available.


fullStream?

optional fullStream: AsyncIterable<AgencyStreamPart, any, any>

Defined in: packages/agentos/src/api/types.ts:979

Structured live stream parts from the strategy.


text?

optional text: Promise<string>

Defined in: packages/agentos/src/api/types.ts:981

Final raw text assembled by the strategy, when available.


textStream?

optional textStream: AsyncIterable<string, any, any>

Defined in: packages/agentos/src/api/types.ts:977

Raw live text chunks from the strategy.


usage?

optional usage: Promise<{ cacheCreationTokens?: number; cacheReadTokens?: number; completionTokens: number; costUSD?: number; promptTokens: number; totalTokens: number; }>

Defined in: packages/agentos/src/api/types.ts:983

Aggregate usage for the strategy run, when available.