Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

UsageInfo.md

19 lines564 Bytes

Interface: UsageInfo

Defined in: packages/ai/src/activities/chat/middleware/types.ts:348

Token usage statistics passed to the onUsage hook. Extracted from the RUN_FINISHED chunk when usage data is present.

Includes optional provider-reported cost/costDetails (see TokenUsage). Kept as an interface extending TokenUsage to preserve declaration merging for this publicly exported type.

Extends

  • TokenUsage