Optionalid: stringOptionalname: stringOptionalarg_string: stringOptionalfinished: booleanOptionalresult: ToolCallResultProtected Optional_Protected Optional_Protected Optional_Protected_Protected Optional_Protected Optional_Protected Optional_Protected Optional_Protected Optional_Protected Optional_Protected_ReadonlykindStatic ReadonlytypeOptionalreason: unknownMark the tool call as completed with the given result.
This is used to update the UI immediately when a tool finishes execution, without waiting for all parallel tool calls to complete. The language model batches tool results (via Promise.all) before yielding them to the stream, so without this early completion signal, the UI wouldn't update until all tools finish. The values set here will be overwritten by merge() when the language model eventually yields the results, but they should be identical.
Confirm the tool execution
Optionalreason: stringProtectedparseProtectedresolveOptionalargs: stringOptionalfinished: booleanOptionalresult: ToolCallResultStaticis
Represents the content as a string. Returns
undefinedif the content is purely informational and/or visual and should not be included in the overall representation of the response.