• Creates an Anthropic tool definition

    Parameters

    • toolNumber: number

      the number of the tool in that instance for example instance.tools.length + 1 to be used to fill in the name

    Returns {
        description: string;
        input_schema: {
            additionalProperties?: boolean;
            properties: Record<
                string,
                | objectOutputType<
                    {
                        description: ZodOptional<ZodString>;
                        enum: ZodOptional<ZodArray<ZodString, "many">>;
                        type: ZodEnum<
                            [
                                "string",
                                "number",
                                "boolean",
                                "object",
                                "array",
                                "null",
                                "integer",
                            ],
                        >;
                    },
                    ZodTypeAny,
                    "passthrough",
                >
                | {
                    anyOf: objectOutputType<
                        {
                            description: ZodOptional<ZodString>;
                            enum: ZodOptional<ZodArray<(...), (...)>>;
                            type: ZodEnum<[(...), (...), (...), (...), (...), (...), (...)]>;
                        },
                        ZodTypeAny,
                        "passthrough",
                    >[];
                },
            >;
            required?: string[];
            type: "object";
        } & { [k: string]: unknown };
        name: string;
    }

    an Anthropic tool definition