A11 TypeScript API - v0.7.0
    Preparing search index...

    Class ToolAdapter

    Build the input/output JSON Schemas that describe an action as a tool.

    const adapter = new ToolAdapter(schema, {
    city: z.string().describe('City and country'),
    });
    const inputSchema = valueOrThrow(adapter.getInputSchema());
    Index