tool2agent API Documentation - v0.0.0
    Preparing search index...

    Type Alias Tool2AgentParams<InputSchema, OutputSchema>

    Tool2AgentParams: {
        catchExceptions?: boolean;
        execute: (
            input: z.infer<InputSchema>,
            options: ToolExecutionOptions<unknown>,
        ) => Promise<ToolCallResult<z.infer<InputSchema>, z.infer<OutputSchema>>>;
        inputSchema: InputSchema;
        outputSchema: OutputSchema;
    } & Omit<
        Tool2Agent<z.infer<InputSchema>, z.infer<OutputSchema>>,
        "inputSchema" | "outputSchema" | "execute",
    >

    Parameters for creating a Tool2Agent.

    Type Parameters

    • InputSchema extends z.ZodTypeAny

      The Zod schema for the tool's input.

    • OutputSchema extends z.ZodTypeAny

      The Zod schema for the tool's output.