Arize Phoenix TS
    Preparing search index...
    • 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,
                  | {
                      description?: string;
                      enum?: string[];
                      type: | "string"
                      | "number"
                      | "boolean"
                      | "object"
                      | "null"
                      | "array"
                      | "integer";
                      [key: string]: unknown;
                  }
                  | {
                      anyOf: {
                          description?: string;
                          enum?: string[];
                          type: | "string"
                          | "number"
                          | "boolean"
                          | "object"
                          | "null"
                          | "array"
                          | "integer";
                          [key: string]: unknown;
                      }[];
                  },
              >;
              required?: string[];
              type: "object";
              [key: string]: unknown;
          };
          name: string;
      }

      an Anthropic tool definition