Interface: CompiledStrategyStreamResult
Defined in: packages/agentos/src/api/types.ts:1184
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?
optionalagentCalls:Promise<AgentCallRecord[]>
Defined in: packages/agentos/src/api/types.ts:1202
Final per-agent ledger for the strategy run, when available.
fullStream?
optionalfullStream:AsyncIterable<AgencyStreamPart,any,any>
Defined in: packages/agentos/src/api/types.ts:1188
Structured live stream parts from the strategy.
result?
optionalresult:Promise<Record<string,unknown>>
Defined in: packages/agentos/src/api/types.ts:1208
The strategy's whole result, when it has more than text, usage and agent calls (a panel's ledger). The agency wrapper merges it into the finalized result.
text?
optionaltext:Promise<string>
Defined in: packages/agentos/src/api/types.ts:1190
Final raw text assembled by the strategy, when available.
textStream?
optionaltextStream:AsyncIterable<string,any,any>
Defined in: packages/agentos/src/api/types.ts:1186
Raw live text chunks from the strategy.
usage?
optionalusage:Promise<{cacheCreationExtendedTokens?:number;cacheCreationTokens?:number;cacheReadTokens?:number;completionTokens:number;costUSD?:number;promptTokens:number;totalTokens:number; }>
Defined in: packages/agentos/src/api/types.ts:1192
Aggregate usage for the strategy run, when available.