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.
https://json-schema.org/
const schema: JSONSchemaObject = {type: "object",properties: {query: { type: "string", description: "The search query." },max_results: { type: "integer", minimum: 1, default: 5 }},required: ["query"]}; Copy
const schema: JSONSchemaObject = {type: "object",properties: {query: { type: "string", description: "The search query." },max_results: { type: "integer", minimum: 1, default: 5 }},required: ["query"]};
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.