Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 779 Bytes

File metadata and controls

36 lines (27 loc) · 779 Bytes
title AITool
description AITool Schema Reference
category ai
zodFile agent
**Source:** `packages/spec/src/ai/agent.zod.ts`

Properties

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

TypeScript Usage

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'
};