| title |
AITool |
| description |
AITool Schema Reference |
| category |
ai |
| zodFile |
agent |
**Source:** `packages/spec/src/ai/agent.zod.ts`
| Property |
Type |
Required |
Description |
| type |
Enum<'action' | 'flow' | 'query' | 'vector_search'> |
✅ |
|
| name |
string |
✅ |
Reference name (Action Name, Flow Name) |
| description |
string |
optional |
Override description for the LLM |
import { AIToolSchema } from '@objectstack/spec/ai';
import type { AITool } from '@objectstack/spec/ai';
// Validate data
const result = AIToolSchema.parse(data);
// Type-safe usage
const myAITool: AITool = {
type: 'action',
name: 'name'
};