SchemaType type
Schema type for event fields and response definitions. Maps to LLM tool parameter types (JSON Schema subset).
Signature:
export type SchemaType = {
type: "string";
description?: string;
} | {
type: "number";
description?: string;
} | {
type: "boolean";
description?: string;
} | {
type: "enum";
values: string[];
description?: string;
} | {
type: "array";
items: SchemaType;
description?: string;
} | {
type: "object";
properties: Record<string, SchemaType>;
description?: string;
};
References: SchemaType