| title | ToolCall |
|---|---|
| description | ToolCall Schema Reference |
| category | ai |
| zodFile | conversation |
| Property | Type | Required | Description |
|---|---|---|---|
| id | string |
✅ | Tool call ID |
| type | Enum<'function'> |
optional | |
| function | object |
✅ |
import { ToolCallSchema } from '@objectstack/spec/ai';
import type { ToolCall } from '@objectstack/spec/ai';
// Validate data
const result = ToolCallSchema.parse(data);
// Type-safe usage
const myToolCall: ToolCall = {
id: 'example',
function: {}
};