Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 704 Bytes

File metadata and controls

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

Properties

Property Type Required Description
id string Tool call ID
type Enum<'function'> optional
function object

TypeScript Usage

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: {}
};