Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 793 Bytes

File metadata and controls

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

Properties

Property Type Required Description
name string Function name
arguments string JSON string of function arguments
result string optional Function execution result

TypeScript Usage

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