Type alias JSONSchemaObject

JSONSchemaObject: Record<string, any>

Represents a JSON schema definition. This type is used to define the expected structure for tool inputs and outputs, enabling validation and clear contracts for LLMs.

See

https://json-schema.org/

Example

const schema: JSONSchemaObject = {
type: "object",
properties: {
query: { type: "string", description: "The search query." },
max_results: { type: "integer", minimum: 1, default: 5 }
},
required: ["query"]
};