const tools = [
{
type: "function" as const,
name: "search_docs",
description: "Search docs.",
strict: true,
parameters: {
type: "object",
properties: {
query: { type: "string" },
},
required: ["query"],
additionalProperties: false,
},
},
{
type: "function" as const,
name: "send_email",
description: "Send an email.",
strict: true,
parameters: {
type: "object",
properties: {
to: { type: "string" },
subject: { type: "string" },
body: { type: "string" },
},
required: ["to", "subject", "body"],
additionalProperties: false,
},
},
];