Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

Latest commit

 

History

History
7 lines (5 loc) · 899 Bytes

File metadata and controls

7 lines (5 loc) · 899 Bytes
@funkai/agents minor

Pass through full AI SDK StepResult fields in onStepFinish events instead of stripping tool calls/results to summary fields. StepFinishEvent is now a superset of the Vercel AI SDK's StepResult<ToolSet> — all SDK fields (text, toolCalls, toolResults, finishReason, usage, reasoning, sources, response, etc.) are passed through unchanged, plus funkai-specific additions (stepId, agentChain).

Breaking: toolCalls entries now contain full AI SDK TypedToolCall objects (with input) instead of { toolName, argsTextLength }. toolResults entries now contain full TypedToolResult objects (with output) instead of { toolName, resultTextLength }. usage is now the AI SDK's LanguageModelUsage type (with undefined-able fields) instead of a simplified { inputTokens: number; outputTokens: number; totalTokens: number }.