Patch Changes
-
93fff75: Add support for
response.function_call_arguments.deltaandresponse.function_call_arguments.donestreaming events in the xAI Responses API provider.Previously, xAI Grok models using function tools via the Responses API would fail with
AI_TypeValidationErrorbecause these standard Responses API events were missing from the Zod schema and stream handler. Function call arguments are now streamed incrementally viatool-input-deltaevents, and the finaltool-callis emitted only after all arguments are received.Includes unit test for function call argument streaming and an example at
examples/ai-core/src/stream-text/xai-responses-function-call.ts.