{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-create-search-tool-request-schema.json",
  "title": "CreateSearchToolRequest",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-search-tools-api-openapi.yml#/components/schemas/CreateSearchToolRequest",
  "properties": {
    "search_tool": {
      "$ref": "#/$defs/SearchTool"
    }
  },
  "required": [
    "search_tool"
  ],
  "type": "object",
  "$defs": {
    "SearchTool": {
      "description": "Search tool configuration.\n\nExample:\n    {\n        \"search_tool_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n        \"search_tool_name\": \"litellm-search\",\n        \"litellm_params\": {\n            \"search_provider\": \"perplexity\",\n            \"api_key\": \"sk-...\"\n        },\n        \"search_tool_info\": {\n            \"description\": \"Perplexity search tool\"\n        }\n    }",
      "properties": {
        "created_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        },
        "litellm_params": {
          "$ref": "#/$defs/SearchToolLiteLLMParams"
        },
        "search_tool_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Search Tool Id"
        },
        "search_tool_info": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Search Tool Info"
        },
        "search_tool_name": {
          "title": "Search Tool Name",
          "type": "string"
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At"
        }
      },
      "required": [
        "search_tool_name",
        "litellm_params"
      ],
      "title": "SearchTool",
      "type": "object"
    },
    "SearchToolLiteLLMParams": {
      "description": "LiteLLM params for search tools configuration.",
      "properties": {
        "api_base": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Api Base"
        },
        "api_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Api Key"
        },
        "max_retries": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Retries"
        },
        "search_provider": {
          "title": "Search Provider",
          "type": "string"
        },
        "timeout": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Timeout"
        }
      },
      "required": [
        "search_provider"
      ],
      "title": "SearchToolLiteLLMParams",
      "type": "object"
    }
  }
}