AI Core/tool Calling

Isomorphic tool system: toolDefinition() with Zod schemas, .server() and .client() implementations, passing tools to both chat() on server and useChat/clientTools on client, tool approval flows with needsApproval and bound interrupts (resolveInterrupt), generic middleware interrupts with defineInterrupt(), lazy tool discovery with lazy:true, rendering ToolCallPart and ToolResultPart in UI.

TanStack 62da45d 28.7 KB Updated

File contents

tanstack/ai/tree/main/packages/ai/skills/ai-core/tool-calling commit 62da45d393

Frequently asked questions

npx skillmds@latest add tanstack/ai-core-tool-calling