| title |
FunctionCall |
| description |
FunctionCall Schema Reference |
| category |
ai |
| zodFile |
conversation |
**Source:** `packages/spec/src/ai/conversation.zod.ts`
| Property |
Type |
Required |
Description |
| name |
string |
✅ |
Function name |
| arguments |
string |
✅ |
JSON string of function arguments |
| result |
string |
optional |
Function execution result |
import { FunctionCallSchema } from '@objectstack/spec/ai';
import type { FunctionCall } from '@objectstack/spec/ai';
// Validate data
const result = FunctionCallSchema.parse(data);
// Type-safe usage
const myFunctionCall: FunctionCall = {
name: 'name',
arguments: 'example'
};