co-mono/packages/ai/test
Mario Zechner 39c626b6c9 feat(ai): add partial JSON parsing for streaming tool calls
- Added partial-json package for parsing incomplete JSON during streaming
- Tool call arguments now contain partially parsed JSON during toolcall_delta events
- Enables progressive UI updates (e.g., showing file paths before content is complete)
- Arguments are always valid objects (minimum empty {}), never undefined
- Full validation still occurs at toolcall_end when arguments are complete
- Updated all providers (Anthropic, OpenAI Completions/Responses) to use parseStreamingJson
- Added comprehensive documentation and examples in README
- Added test to verify arguments are always defined during streaming
2025-09-16 12:23:34 +02:00
..
data feat(ai): Add image input tests for vision-capable models 2025-08-30 18:37:17 +02:00
abort.test.ts feat(ai): Implement Zod-based tool validation and improve Agent API 2025-09-09 14:58:54 +02:00
agent.test.ts feat(ai): Implement Zod-based tool validation and improve Agent API 2025-09-09 14:58:54 +02:00
empty.test.ts feat(ai): Implement Zod-based tool validation and improve Agent API 2025-09-09 14:58:54 +02:00
enum-test.ts Replace Zod with TypeBox for schema validation 2025-09-16 01:10:40 +02:00
generate.test.ts feat(ai): add partial JSON parsing for streaming tool calls 2025-09-16 12:23:34 +02:00
handoff.test.ts Replace Zod with TypeBox for schema validation 2025-09-16 01:10:40 +02:00
tool-validation.test.ts Fix NodeJS compat 2025-09-16 02:19:47 +02:00