Optional textRaw live text chunks from the strategy.
Optional fullStructured live stream parts from the strategy.
Optional textFinal raw text assembled by the strategy, when available.
Optional usageAggregate usage for the strategy run, when available.
Optional costUSD?: numberOptional cacheOptional cacheOptional agentFinal per-agent ledger for the strategy run, when available.
Optional resultThe 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.
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.