latestOpenAPI 3.1.02026-08-236994571.1 MB

79928a3d37d3

Search Tools

Create Search Tool

Create a new search tool.

Example Request:

curl -X POST "http://localhost:4000/search_tools" \
    -H "Authorization: Bearer <your_api_key>" \
    -H "Content-Type: application/json" \
    -d '{
        "search_tool": {
            "search_tool_name": "litellm-search",
            "litellm_params": {
                "search_provider": "perplexity",
                "api_key": "sk-..."
            },
            "search_tool_info": {
                "description": "Perplexity search tool"
            }
        }
    }'

Example Response:

{
    "search_tool_id": "123e4567-e89b-12d3-a456-426614174000",
    "search_tool_name": "litellm-search",
    "litellm_params": {
        "search_provider": "perplexity",
        "api_key": "sk-..."
    },
    "search_tool_info": {
        "description": "Perplexity search tool"
    },
    "created_at": "2023-11-09T12:34:56.789Z",
    "updated_at": "2023-11-09T12:34:56.789Z"
}
post/search_tools

Request body

Response

Successful Response

{"stackTrail":"paths:/search_tools:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}