{"openapi":"3.1.0","info":{"title":"MAMMOUTH API","version":"1.105.6"},"paths":{"/chat/completions":{"post":{"tags":["chat/completions"],"summary":"Chat Completion","description":"Follows the exact same API spec as `OpenAI's Chat API https://platform.openai.com/docs/api-reference/chat`\n\n```bash\ncurl -X POST http://localhost:4000/v1/chat/completions \n-H \"Content-Type: application/json\" \n-H \"Authorization: Bearer sk-1234\" \n-d '{\n    \"model\": \"gpt-4o\",\n    \"messages\": [\n        {\n            \"role\": \"user\",\n            \"content\": \"Hello!\"\n        }\n    ]\n}'\n```","operationId":"chat_completion_chat_completions_post","security":[{"APIKeyHeader":[]}],"parameters":[],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"title":"Model","type":"string"},"messages":{"items":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionUserMessage"},{"$ref":"#/components/schemas/ChatCompletionAssistantMessage"},{"$ref":"#/components/schemas/ChatCompletionToolMessage"},{"$ref":"#/components/schemas/ChatCompletionSystemMessage"},{"$ref":"#/components/schemas/ChatCompletionFunctionMessage"},{"$ref":"#/components/schemas/ChatCompletionDeveloperMessage"}]},"title":"Messages","type":"array","example":[{"role":"user","content":"Hello, how are you?"}]},"frequency_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Frequency Penalty"},"logit_bias":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"default":null,"title":"Logit Bias"},"logprobs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Logprobs"},"top_logprobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Top Logprobs"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Max Tokens"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"N"},"presence_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Presence Penalty"},"response_format":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Response Format"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Seed"},"service_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Service Tier"},"stop":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Stop"},"stream_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Stream Options"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Temperature"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Top P"},"tools":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Tools"},"tool_choice":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Tool Choice"},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Parallel Tool Calls"},"function_call":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Function Call"},"functions":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Functions"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"User"},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Stream"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Metadata"},"guardrails":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Guardrails"},"caching":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Caching"},"num_retries":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Num Retries"},"context_window_fallback_dict":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Context Window Fallback Dict"},"fallbacks":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fallbacks"}}}}}}}},"/v1/chat/completions":{"post":{"tags":["chat/completions"],"summary":"Chat Completion","description":"Follows the exact same API spec as `OpenAI's Chat API https://platform.openai.com/docs/api-reference/chat`\n\n```bash\ncurl -X POST http://localhost:4000/v1/chat/completions \n-H \"Content-Type: application/json\" \n-H \"Authorization: Bearer sk-1234\" \n-d '{\n    \"model\": \"gpt-4o\",\n    \"messages\": [\n        {\n            \"role\": \"user\",\n            \"content\": \"Hello!\"\n        }\n    ]\n}'\n```","operationId":"chat_completion_v1_chat_completions_post","security":[{"APIKeyHeader":[]}],"parameters":[],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"title":"Model","type":"string"},"messages":{"items":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionUserMessage"},{"$ref":"#/components/schemas/ChatCompletionAssistantMessage"},{"$ref":"#/components/schemas/ChatCompletionToolMessage"},{"$ref":"#/components/schemas/ChatCompletionSystemMessage"},{"$ref":"#/components/schemas/ChatCompletionFunctionMessage"},{"$ref":"#/components/schemas/ChatCompletionDeveloperMessage"}]},"title":"Messages","type":"array","example":[{"role":"user","content":"Hello, how are you?"}]},"frequency_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Frequency Penalty"},"logit_bias":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"default":null,"title":"Logit Bias"},"logprobs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Logprobs"},"top_logprobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Top Logprobs"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Max Tokens"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"N"},"presence_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Presence Penalty"},"response_format":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Response Format"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Seed"},"service_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Service Tier"},"stop":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Stop"},"stream_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Stream Options"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Temperature"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Top P"},"tools":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Tools"},"tool_choice":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Tool Choice"},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Parallel Tool Calls"},"function_call":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Function Call"},"functions":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Functions"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"User"},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Stream"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Metadata"},"guardrails":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Guardrails"},"caching":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Caching"},"num_retries":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Num Retries"},"context_window_fallback_dict":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Context Window Fallback Dict"},"fallbacks":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fallbacks"}}}}}}}},"/health/liveness":{"get":{"tags":["health"],"summary":"Health Liveliness","description":"Unprotected endpoint for checking if worker is alive.\n\nReturns 503 once graceful shutdown has begun so Kubernetes stops counting\nthe draining pod as live and terminates it on schedule.","operationId":"health_liveliness_health_liveness_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/liveliness":{"get":{"tags":["health"],"summary":"Health Liveliness","description":"Unprotected endpoint for checking if worker is alive.\n\nReturns 503 once graceful shutdown has begun so Kubernetes stops counting\nthe draining pod as live and terminates it on schedule.","operationId":"health_liveliness_health_liveliness_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/models/{model_id}":{"get":{"tags":["model management"],"summary":"Model Info","description":"Retrieve information about a specific model accessible to your API key.\n\nReturns model details only if the model is available to your API key/team.\nReturns 404 if the model doesn't exist or is not accessible.\n\nFollows OpenAI API specification for individual model retrieval.\nhttps://platform.openai.com/docs/api-reference/models/retrieve\n\nQuery parameters mirror `/v1/models` so the same caller context (team\nscoping, health filtering, paused deployments) drives both endpoints; the\nlisting's public id must resolve to the same internal deployment here.","operationId":"model_info_models__model_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}},{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"}},{"name":"healthy_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Healthy Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/models/{model_id}":{"get":{"tags":["model management"],"summary":"Model Info","description":"Retrieve information about a specific model accessible to your API key.\n\nReturns model details only if the model is available to your API key/team.\nReturns 404 if the model doesn't exist or is not accessible.\n\nFollows OpenAI API specification for individual model retrieval.\nhttps://platform.openai.com/docs/api-reference/models/retrieve\n\nQuery parameters mirror `/v1/models` so the same caller context (team\nscoping, health filtering, paused deployments) drives both endpoints; the\nlisting's public id must resolve to the same internal deployment here.","operationId":"model_info_v1_models__model_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}},{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"}},{"name":"healthy_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Healthy Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/completions":{"post":{"tags":["completions"],"summary":"Completion","description":"Follows the exact same API spec as `OpenAI's Completions API https://platform.openai.com/docs/api-reference/completions`\n\n```bash\ncurl -X POST http://localhost:4000/v1/completions \n-H \"Content-Type: application/json\" \n-H \"Authorization: Bearer sk-1234\" \n-d '{\n    \"model\": \"gpt-3.5-turbo-instruct\",\n    \"prompt\": \"Once upon a time\",\n    \"max_tokens\": 50,\n    \"temperature\": 0.7\n}'\n```","operationId":"completion_completions_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/completions":{"post":{"tags":["completions"],"summary":"Completion","description":"Follows the exact same API spec as `OpenAI's Completions API https://platform.openai.com/docs/api-reference/completions`\n\n```bash\ncurl -X POST http://localhost:4000/v1/completions \n-H \"Content-Type: application/json\" \n-H \"Authorization: Bearer sk-1234\" \n-d '{\n    \"model\": \"gpt-3.5-turbo-instruct\",\n    \"prompt\": \"Once upon a time\",\n    \"max_tokens\": 50,\n    \"temperature\": 0.7\n}'\n```","operationId":"completion_v1_completions_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/embeddings":{"post":{"tags":["embeddings"],"summary":"Embeddings","description":"Follows the exact same API spec as `OpenAI's Embeddings API https://platform.openai.com/docs/api-reference/embeddings`\n\n```bash\ncurl -X POST http://localhost:4000/v1/embeddings \n-H \"Content-Type: application/json\" \n-H \"Authorization: Bearer sk-1234\" \n-d '{\n    \"model\": \"text-embedding-ada-002\",\n    \"input\": \"The quick brown fox jumps over the lazy dog\"\n}'\n```","operationId":"embeddings_embeddings_post","security":[{"APIKeyHeader":[]}],"parameters":[],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model"],"properties":{"model":{"title":"Model","type":"string"},"input":{"default":[],"items":{"type":"string"},"title":"Input","type":"array"},"timeout":{"default":600,"title":"Timeout","type":"integer"},"api_base":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Api Base"},"api_version":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Api Version"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Api Key"},"api_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Api Type"},"caching":{"default":false,"title":"Caching","type":"boolean"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"User"},"custom_llm_provider":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Custom Llm Provider"},"litellm_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Litellm Call Id"},"litellm_logging_obj":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Litellm Logging Obj"},"logger_fn":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Logger Fn"}}}}}}}},"/v1/embeddings":{"post":{"tags":["embeddings"],"summary":"Embeddings","description":"Follows the exact same API spec as `OpenAI's Embeddings API https://platform.openai.com/docs/api-reference/embeddings`\n\n```bash\ncurl -X POST http://localhost:4000/v1/embeddings \n-H \"Content-Type: application/json\" \n-H \"Authorization: Bearer sk-1234\" \n-d '{\n    \"model\": \"text-embedding-ada-002\",\n    \"input\": \"The quick brown fox jumps over the lazy dog\"\n}'\n```","operationId":"embeddings_v1_embeddings_post","security":[{"APIKeyHeader":[]}],"parameters":[],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model"],"properties":{"model":{"title":"Model","type":"string"},"input":{"default":[],"items":{"type":"string"},"title":"Input","type":"array"},"timeout":{"default":600,"title":"Timeout","type":"integer"},"api_base":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Api Base"},"api_version":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Api Version"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Api Key"},"api_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Api Type"},"caching":{"default":false,"title":"Caching","type":"boolean"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"User"},"custom_llm_provider":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Custom Llm Provider"},"litellm_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Litellm Call Id"},"litellm_logging_obj":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Litellm Logging Obj"},"logger_fn":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Logger Fn"}}}}}}}},"/utils/model_info":{"get":{"tags":["llm utils"],"summary":"Model Info Lookup","description":"Returns the model cost map entry (token limits, pricing, supports_* capabilities) for any model\nin the cost map, whether or not it is registered on this proxy. `model_info` carries every\nfield of the raw cost map entry plus the typed fields `litellm.get_model_info` derives from it\n(`key`, `supported_openai_params`).\n\nExample curl:\n```\ncurl -X GET --location 'http://localhost:4000/utils/model_info?model=gpt-4o&custom_llm_provider=openai'         --header 'Authorization: Bearer sk-1234'\n```","operationId":"model_info_lookup_utils_model_info_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string","title":"Model"}},{"name":"custom_llm_provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Llm Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/model/info":{"get":{"tags":["model management"],"summary":"Model Info V2","description":"Paginated model metadata for proxy deployments (pricing, provider, team access).\n\nReturns configured router deployments with enriched `model_info` (costs, provider,\ncontext window, etc.). Sensitive fields such as API keys and api_base are omitted.\n\nQuery parameters:\n    model: Filter to a single public `model_name`.\n    user_models_only: When true, only return models created by the calling user.\n    include_team_models: When true, populate `access_via_team_ids` and `direct_access`\n        on each model and filter to deployments the caller can use.\n    page / size: Pagination controls (defaults: page=1, size=50).\n    search: Case-insensitive partial match on model name or team public name.\n    modelId: Return a single deployment by LiteLLM model id.\n    teamId: Filter to models with direct access or team membership for this team id.\n    sortBy / sortOrder: Sort by model_name, created_at, updated_at, costs, or status.\n    access_group: Only return deployments in this model access group.\n    wildcard_only: Only return deployments whose `model_name` contains `*`.\n\nExample request:\n```\ncurl -X GET 'http://localhost:4000/v2/model/info?include_team_models=true&page=1&size=50' \\\n--header 'Authorization: Bearer sk-1234'\n```\n\nExample response:\n```json\n{\n    \"data\": [\n        {\n            \"model_name\": \"gpt-4\",\n            \"litellm_params\": {\"model\": \"openai/gpt-4.1\"},\n            \"model_info\": {\n                \"id\": \"abc123\",\n                \"litellm_provider\": \"openai\",\n                \"access_via_team_ids\": [\"team-1\"],\n                \"direct_access\": true\n            }\n        }\n    ],\n    \"total_count\": 1,\n    \"current_page\": 1,\n    \"total_pages\": 1,\n    \"size\": 50\n}\n```","operationId":"model_info_v2_v2_model_info_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Specify the model name (optional)","title":"Model"},"description":"Specify the model name (optional)"},{"name":"user_models_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Only return models added by this user","default":false,"title":"User Models Only"},"description":"Only return models added by this user"},{"name":"include_team_models","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Return all models across all teams user is in.","default":false,"title":"Include Team Models"},"description":"Return all models across all teams user is in."},{"name":"debug","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Debug"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search model names (case-insensitive partial match)","title":"Search"},"description":"Search model names (case-insensitive partial match)"},{"name":"modelId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search for a specific model by its unique ID","title":"Modelid"},"description":"Search for a specific model by its unique ID"},{"name":"teamId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter models by team ID. Returns models with direct_access=True or teamId in access_via_team_ids","title":"Teamid"},"description":"Filter models by team ID. Returns models with direct_access=True or teamId in access_via_team_ids"},{"name":"sortBy","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Field to sort by. Options: model_name, created_at, updated_at, costs, status","title":"Sortby"},"description":"Field to sort by. Options: model_name, created_at, updated_at, costs, status"},{"name":"sortOrder","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort order. Options: asc, desc","default":"asc","title":"Sortorder"},"description":"Sort order. Options: asc, desc"},{"name":"exclude_auto_routers","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Omit auto-router deployments (litellm model prefixed `auto_router/`). They select among deployments rather than being deployments themselves, so a caller rendering a deployment list can leave them out. Defaults to false, so existing callers are unaffected","default":false,"title":"Exclude Auto Routers"},"description":"Omit auto-router deployments (litellm model prefixed `auto_router/`). They select among deployments rather than being deployments themselves, so a caller rendering a deployment list can leave them out. Defaults to false, so existing callers are unaffected"},{"name":"access_group","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only return deployments whose `model_info.access_groups` contains this access group","title":"Access Group"},"description":"Only return deployments whose `model_info.access_groups` contains this access group"},{"name":"wildcard_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Only return wildcard deployments, i.e. those whose `model_name` contains `*`","default":false,"title":"Wildcard Only"},"description":"Only return wildcard deployments, i.e. those whose `model_name` contains `*`"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/model/deprecations":{"get":{"tags":["model management"],"summary":"Model Deprecations","description":"List models with known deprecation/sunset dates, bucketed by urgency.\n\nReads `deprecation_date` metadata from `model_prices_and_context_window.json`\n(and any per-deployment `model_info.deprecation_date` overrides) for the\nmodels configured on this proxy.\n\nParameters:\n    warn_within_days: Window (in days) used to bucket \"imminent\" models,\n        30 by default.\n\nReturns:\n    A payload with three lists of `ModelDeprecationInfo` entries:\n\n    - `deprecated`: deprecation date is in the past, so these requests may\n      fail at any time.\n    - `imminent`: deprecation date is within `warn_within_days` from today.\n    - `upcoming`: deprecation date is further out.\n\nExample:\n```shell\ncurl -X GET 'http://localhost:4000/model/deprecations' \\\n    -H 'Authorization: Bearer sk-1234'\n```","operationId":"model_deprecations_v1_model_deprecations_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"warn_within_days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Warn Within Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelDeprecationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model/deprecations":{"get":{"tags":["model management"],"summary":"Model Deprecations","description":"List models with known deprecation/sunset dates, bucketed by urgency.\n\nReads `deprecation_date` metadata from `model_prices_and_context_window.json`\n(and any per-deployment `model_info.deprecation_date` overrides) for the\nmodels configured on this proxy.\n\nParameters:\n    warn_within_days: Window (in days) used to bucket \"imminent\" models,\n        30 by default.\n\nReturns:\n    A payload with three lists of `ModelDeprecationInfo` entries:\n\n    - `deprecated`: deprecation date is in the past, so these requests may\n      fail at any time.\n    - `imminent`: deprecation date is within `warn_within_days` from today.\n    - `upcoming`: deprecation date is further out.\n\nExample:\n```shell\ncurl -X GET 'http://localhost:4000/model/deprecations' \\\n    -H 'Authorization: Bearer sk-1234'\n```","operationId":"model_deprecations_model_deprecations_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"warn_within_days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Warn Within Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelDeprecationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model_group/info":{"get":{"tags":["model management"],"summary":"Model Group Info","description":"Get information about all the deployments on litellm proxy, including config.yaml descriptions (except api key and api base)\n\n- /model_group/info returns all model groups. End users of proxy should use /model_group/info since those models will be used for /chat/completions, /embeddings, etc.\n- /model_group/info?model_group=rerank-english-v3.0 returns all model groups for a specific model group (`model_name` in config.yaml)\n\n\n\nExample Request (All Models):\n```shell\ncurl -X 'GET'     'http://localhost:4000/model_group/info'     -H 'accept: application/json'     -H 'x-api-key: sk-1234'\n```\n\nExample Request (Specific Model Group):\n```shell\ncurl -X 'GET'     'http://localhost:4000/model_group/info?model_group=rerank-english-v3.0'     -H 'accept: application/json'     -H 'Authorization: Bearer sk-1234'\n```\n\nExample Request (Specific Wildcard Model Group): (e.g. `model_name: openai/*` on config.yaml)\n```shell\ncurl -X 'GET'     'http://localhost:4000/model_group/info?model_group=openai/tts-1'\n-H 'accept: application/json'     -H 'Authorization: Bearersk-1234'\n```\n\nLearn how to use and set wildcard models [here](https://docs.litellm.ai/docs/wildcard_routing)\n\nExample Response:\n```json\n    {\n        \"data\": [\n            {\n            \"model_group\": \"rerank-english-v3.0\",\n            \"providers\": [\n                \"cohere\"\n            ],\n            \"max_input_tokens\": null,\n            \"max_output_tokens\": null,\n            \"input_cost_per_token\": 0.0,\n            \"output_cost_per_token\": 0.0,\n            \"mode\": null,\n            \"tpm\": null,\n            \"rpm\": null,\n            \"supports_parallel_function_calling\": false,\n            \"supports_vision\": false,\n            \"supports_function_calling\": false,\n            \"supported_openai_params\": [\n                \"stream\",\n                \"temperature\",\n                \"max_tokens\",\n                \"logit_bias\",\n                \"top_p\",\n                \"frequency_penalty\",\n                \"presence_penalty\",\n                \"stop\",\n                \"n\",\n                \"extra_headers\"\n            ]\n            },\n            {\n            \"model_group\": \"gpt-3.5-turbo\",\n            \"providers\": [\n                \"openai\"\n            ],\n            \"max_input_tokens\": 16385.0,\n            \"max_output_tokens\": 4096.0,\n            \"input_cost_per_token\": 1.5e-06,\n            \"output_cost_per_token\": 2e-06,\n            \"mode\": \"chat\",\n            \"tpm\": null,\n            \"rpm\": null,\n            \"supports_parallel_function_calling\": false,\n            \"supports_vision\": false,\n            \"supports_function_calling\": true,\n            \"supported_openai_params\": [\n                \"frequency_penalty\",\n                \"logit_bias\",\n                \"logprobs\",\n                \"top_logprobs\",\n                \"max_tokens\",\n                \"max_completion_tokens\",\n                \"n\",\n                \"presence_penalty\",\n                \"seed\",\n                \"stop\",\n                \"stream\",\n                \"stream_options\",\n                \"temperature\",\n                \"top_p\",\n                \"tools\",\n                \"tool_choice\",\n                \"function_call\",\n                \"functions\",\n                \"max_retries\",\n                \"extra_headers\",\n                \"parallel_tool_calls\",\n                \"response_format\"\n            ]\n            },\n            {\n            \"model_group\": \"llava-hf\",\n            \"providers\": [\n                \"openai\"\n            ],\n            \"max_input_tokens\": null,\n            \"max_output_tokens\": null,\n            \"input_cost_per_token\": 0.0,\n            \"output_cost_per_token\": 0.0,\n            \"mode\": null,\n            \"tpm\": null,\n            \"rpm\": null,\n            \"supports_parallel_function_calling\": false,\n            \"supports_vision\": true,\n            \"supports_function_calling\": false,\n            \"supported_openai_params\": [\n                \"frequency_penalty\",\n                \"logit_bias\",\n                \"logprobs\",\n                \"top_logprobs\",\n                \"max_tokens\",\n                \"max_completion_tokens\",\n                \"n\",\n                \"presence_penalty\",\n                \"seed\",\n                \"stop\",\n                \"stream\",\n                \"stream_options\",\n                \"temperature\",\n                \"top_p\",\n                \"tools\",\n                \"tool_choice\",\n                \"function_call\",\n                \"functions\",\n                \"max_retries\",\n                \"extra_headers\",\n                \"parallel_tool_calls\",\n                \"response_format\"\n            ]\n            }\n        ]\n        }\n```","operationId":"model_group_info_model_group_info_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"model_group","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Group"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/responses":{"post":{"tags":["responses"],"summary":"Responses Api","description":"Follows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses\n\nSupports background mode with polling_via_cache for partial response retrieval.\nWhen background=true and polling_via_cache is enabled, returns a polling_id immediately\nand streams the response in the background, updating Redis cache.\n\n```bash\n# Normal request\ncurl -X POST http://localhost:4000/v1/responses     -H \"Content-Type: application/json\"     -H \"Authorization: Bearer sk-1234\"     -d '{\n    \"model\": \"gpt-4o\",\n    \"input\": \"Tell me about AI\"\n}'\n\n# Background request with polling\ncurl -X POST http://localhost:4000/v1/responses     -H \"Content-Type: application/json\"     -H \"Authorization: Bearer sk-1234\"     -d '{\n    \"model\": \"gpt-4o\",\n    \"input\": \"Tell me about AI\",\n    \"background\": true\n}'\n```","operationId":"responses_api_responses_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsesAPIResponse"}},"text/event-stream":{"schema":{"type":"string","description":"Server sent events when stream=true"}}}}},"security":[{"APIKeyHeader":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input","model"],"properties":{"include":{"anyOf":[{"items":{"enum":["file_search_call.results","web_search_call.results","web_search_call.action.sources","message.input_image.image_url","computer_call_output.output.image_url","code_interpreter_call.outputs","reasoning.encrypted_content","message.output_text.logprobs"],"type":"string"},"type":"array"},{"type":"null"}],"title":"Include"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls"},"previous_response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Response Id"},"reasoning":{"anyOf":[{"$ref":"#/components/schemas/Reasoning"},{"type":"null"}]},"store":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Store"},"background":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Background"},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"text":{"anyOf":[{"$ref":"#/components/schemas/ResponseTextConfigParam"},{"type":"null"}]},"tool_choice":{"anyOf":[{"enum":["none","auto","required"],"type":"string"},{"$ref":"#/components/schemas/ToolChoiceAllowedParam"},{"$ref":"#/components/schemas/ToolChoiceTypesParam"},{"$ref":"#/components/schemas/ToolChoiceFunctionParam"},{"$ref":"#/components/schemas/ToolChoiceMcpParam"},{"$ref":"#/components/schemas/ToolChoiceCustomParam"},{"$ref":"#/components/schemas/ToolChoiceApplyPatchParam"},{"$ref":"#/components/schemas/ToolChoiceShellParam"},{"type":"null"}],"title":"Tool Choice"},"tools":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/FunctionToolParam"},{"$ref":"#/components/schemas/FileSearchToolParam"},{"$ref":"#/components/schemas/openai__types__responses__computer_tool_param__ComputerToolParam"},{"$ref":"#/components/schemas/ComputerUsePreviewToolParam"},{"$ref":"#/components/schemas/WebSearchToolParam"},{"$ref":"#/components/schemas/Mcp"},{"$ref":"#/components/schemas/CodeInterpreter"},{"$ref":"#/components/schemas/ImageGeneration"},{"$ref":"#/components/schemas/LocalShell"},{"$ref":"#/components/schemas/FunctionShellToolParam"},{"$ref":"#/components/schemas/CustomToolParam"},{"$ref":"#/components/schemas/NamespaceToolParam"},{"$ref":"#/components/schemas/ToolSearchToolParam"},{"$ref":"#/components/schemas/WebSearchPreviewToolParam"},{"$ref":"#/components/schemas/ApplyPatchToolParam"},{"$ref":"#/components/schemas/litellm__types__llms__openai__ComputerToolParam"},{"$ref":"#/components/schemas/ShellToolParam"}]},"type":"array"},{"type":"null"}],"title":"Tools"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"truncation":{"anyOf":[{"enum":["auto","disabled"],"type":"string"},{"type":"null"}],"title":"Truncation"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"},"service_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Tier"},"safety_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Safety Identifier"},"prompt":{"anyOf":[{"$ref":"#/components/schemas/PromptObject"},{"type":"null"}]},"max_tool_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tool Calls"},"prompt_cache_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cache Key"},"prompt_cache_retention":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cache Retention"},"prompt_cache_options":{"anyOf":[{"$ref":"#/components/schemas/PromptCacheOptions"},{"type":"null"}]},"stream_options":{"anyOf":[{"$ref":"#/components/schemas/ResponsesAPIStreamOptions"},{"type":"null"}]},"top_logprobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top Logprobs"},"partial_images":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Partial Images"},"context_management":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContextManagementEntry"},"type":"array"},{"type":"null"}],"title":"Context Management"},"input":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/EasyInputMessageParam"},{"$ref":"#/components/schemas/Message"},{"$ref":"#/components/schemas/ResponseOutputMessageParam"},{"$ref":"#/components/schemas/ResponseFileSearchToolCallParam"},{"$ref":"#/components/schemas/ResponseComputerToolCallParam"},{"$ref":"#/components/schemas/ComputerCallOutput"},{"$ref":"#/components/schemas/ResponseFunctionWebSearchParam"},{"$ref":"#/components/schemas/ResponseFunctionToolCallParam"},{"$ref":"#/components/schemas/FunctionCallOutput"},{"$ref":"#/components/schemas/ToolSearchCall"},{"$ref":"#/components/schemas/ResponseToolSearchOutputItemParamParam"},{"$ref":"#/components/schemas/ResponseReasoningItemParam"},{"$ref":"#/components/schemas/ResponseCompactionItemParamParam"},{"$ref":"#/components/schemas/ResponsesAPIRequestParams_ImageGenerationCall"},{"$ref":"#/components/schemas/ResponseCodeInterpreterToolCallParam"},{"$ref":"#/components/schemas/LocalShellCall"},{"$ref":"#/components/schemas/LocalShellCallOutput"},{"$ref":"#/components/schemas/ShellCall"},{"$ref":"#/components/schemas/ShellCallOutput"},{"$ref":"#/components/schemas/ApplyPatchCall"},{"$ref":"#/components/schemas/ApplyPatchCallOutput"},{"$ref":"#/components/schemas/McpListTools"},{"$ref":"#/components/schemas/McpApprovalRequest"},{"$ref":"#/components/schemas/ResponsesAPIRequestParams_McpApprovalResponse"},{"$ref":"#/components/schemas/McpCall"},{"$ref":"#/components/schemas/ResponseCustomToolCallOutputParam"},{"$ref":"#/components/schemas/ResponseCustomToolCallParam"},{"$ref":"#/components/schemas/ItemReference"}]},"type":"array"}],"title":"Input"},"model":{"title":"Model","type":"string"}}}}}}}},"/v1/responses":{"post":{"tags":["responses"],"summary":"Responses Api","description":"Follows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses\n\nSupports background mode with polling_via_cache for partial response retrieval.\nWhen background=true and polling_via_cache is enabled, returns a polling_id immediately\nand streams the response in the background, updating Redis cache.\n\n```bash\n# Normal request\ncurl -X POST http://localhost:4000/v1/responses     -H \"Content-Type: application/json\"     -H \"Authorization: Bearer sk-1234\"     -d '{\n    \"model\": \"gpt-4o\",\n    \"input\": \"Tell me about AI\"\n}'\n\n# Background request with polling\ncurl -X POST http://localhost:4000/v1/responses     -H \"Content-Type: application/json\"     -H \"Authorization: Bearer sk-1234\"     -d '{\n    \"model\": \"gpt-4o\",\n    \"input\": \"Tell me about AI\",\n    \"background\": true\n}'\n```","operationId":"responses_api_v1_responses_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsesAPIResponse"}},"text/event-stream":{"schema":{"type":"string","description":"Server sent events when stream=true"}}}}},"security":[{"APIKeyHeader":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input","model"],"properties":{"include":{"anyOf":[{"items":{"enum":["file_search_call.results","web_search_call.results","web_search_call.action.sources","message.input_image.image_url","computer_call_output.output.image_url","code_interpreter_call.outputs","reasoning.encrypted_content","message.output_text.logprobs"],"type":"string"},"type":"array"},{"type":"null"}],"title":"Include"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls"},"previous_response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Response Id"},"reasoning":{"anyOf":[{"$ref":"#/components/schemas/Reasoning"},{"type":"null"}]},"store":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Store"},"background":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Background"},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"text":{"anyOf":[{"$ref":"#/components/schemas/ResponseTextConfigParam"},{"type":"null"}]},"tool_choice":{"anyOf":[{"enum":["none","auto","required"],"type":"string"},{"$ref":"#/components/schemas/ToolChoiceAllowedParam"},{"$ref":"#/components/schemas/ToolChoiceTypesParam"},{"$ref":"#/components/schemas/ToolChoiceFunctionParam"},{"$ref":"#/components/schemas/ToolChoiceMcpParam"},{"$ref":"#/components/schemas/ToolChoiceCustomParam"},{"$ref":"#/components/schemas/ToolChoiceApplyPatchParam"},{"$ref":"#/components/schemas/ToolChoiceShellParam"},{"type":"null"}],"title":"Tool Choice"},"tools":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/FunctionToolParam"},{"$ref":"#/components/schemas/FileSearchToolParam"},{"$ref":"#/components/schemas/openai__types__responses__computer_tool_param__ComputerToolParam"},{"$ref":"#/components/schemas/ComputerUsePreviewToolParam"},{"$ref":"#/components/schemas/WebSearchToolParam"},{"$ref":"#/components/schemas/Mcp"},{"$ref":"#/components/schemas/CodeInterpreter"},{"$ref":"#/components/schemas/ImageGeneration"},{"$ref":"#/components/schemas/LocalShell"},{"$ref":"#/components/schemas/FunctionShellToolParam"},{"$ref":"#/components/schemas/CustomToolParam"},{"$ref":"#/components/schemas/NamespaceToolParam"},{"$ref":"#/components/schemas/ToolSearchToolParam"},{"$ref":"#/components/schemas/WebSearchPreviewToolParam"},{"$ref":"#/components/schemas/ApplyPatchToolParam"},{"$ref":"#/components/schemas/litellm__types__llms__openai__ComputerToolParam"},{"$ref":"#/components/schemas/ShellToolParam"}]},"type":"array"},{"type":"null"}],"title":"Tools"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"truncation":{"anyOf":[{"enum":["auto","disabled"],"type":"string"},{"type":"null"}],"title":"Truncation"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"},"service_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Tier"},"safety_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Safety Identifier"},"prompt":{"anyOf":[{"$ref":"#/components/schemas/PromptObject"},{"type":"null"}]},"max_tool_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tool Calls"},"prompt_cache_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cache Key"},"prompt_cache_retention":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cache Retention"},"prompt_cache_options":{"anyOf":[{"$ref":"#/components/schemas/PromptCacheOptions"},{"type":"null"}]},"stream_options":{"anyOf":[{"$ref":"#/components/schemas/ResponsesAPIStreamOptions"},{"type":"null"}]},"top_logprobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top Logprobs"},"partial_images":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Partial Images"},"context_management":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContextManagementEntry"},"type":"array"},{"type":"null"}],"title":"Context Management"},"input":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/EasyInputMessageParam"},{"$ref":"#/components/schemas/Message"},{"$ref":"#/components/schemas/ResponseOutputMessageParam"},{"$ref":"#/components/schemas/ResponseFileSearchToolCallParam"},{"$ref":"#/components/schemas/ResponseComputerToolCallParam"},{"$ref":"#/components/schemas/ComputerCallOutput"},{"$ref":"#/components/schemas/ResponseFunctionWebSearchParam"},{"$ref":"#/components/schemas/ResponseFunctionToolCallParam"},{"$ref":"#/components/schemas/FunctionCallOutput"},{"$ref":"#/components/schemas/ToolSearchCall"},{"$ref":"#/components/schemas/ResponseToolSearchOutputItemParamParam"},{"$ref":"#/components/schemas/ResponseReasoningItemParam"},{"$ref":"#/components/schemas/ResponseCompactionItemParamParam"},{"$ref":"#/components/schemas/ResponsesAPIRequestParams_ImageGenerationCall"},{"$ref":"#/components/schemas/ResponseCodeInterpreterToolCallParam"},{"$ref":"#/components/schemas/LocalShellCall"},{"$ref":"#/components/schemas/LocalShellCallOutput"},{"$ref":"#/components/schemas/ShellCall"},{"$ref":"#/components/schemas/ShellCallOutput"},{"$ref":"#/components/schemas/ApplyPatchCall"},{"$ref":"#/components/schemas/ApplyPatchCallOutput"},{"$ref":"#/components/schemas/McpListTools"},{"$ref":"#/components/schemas/McpApprovalRequest"},{"$ref":"#/components/schemas/ResponsesAPIRequestParams_McpApprovalResponse"},{"$ref":"#/components/schemas/McpCall"},{"$ref":"#/components/schemas/ResponseCustomToolCallOutputParam"},{"$ref":"#/components/schemas/ResponseCustomToolCallParam"},{"$ref":"#/components/schemas/ItemReference"}]},"type":"array"}],"title":"Input"},"model":{"title":"Model","type":"string"}}}}}}}},"/cursor/v1/models":{"get":{"tags":["responses"],"summary":"Cursor Model List","description":"OpenAI-compatible model listing for the Cursor BYOK base URL.\n\nClients pointed at `<proxy>/cursor` as an OpenAI-compatible base URL resolve and\nverify models via `GET {base}/models` (the OpenAI SDK contract). Without this\nroute those requests fall through to the Cursor Cloud Agents passthrough, which\ndemands a Cursor API key and 401s, so key verification silently fails before any\nchat request is ever sent. Delegates to the standard `/v1/models` handler.","operationId":"cursor_model_list_cursor_v1_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}},"/cursor/models":{"get":{"tags":["responses"],"summary":"Cursor Model List","description":"OpenAI-compatible model listing for the Cursor BYOK base URL.\n\nClients pointed at `<proxy>/cursor` as an OpenAI-compatible base URL resolve and\nverify models via `GET {base}/models` (the OpenAI SDK contract). Without this\nroute those requests fall through to the Cursor Cloud Agents passthrough, which\ndemands a Cursor API key and 401s, so key verification silently fails before any\nchat request is ever sent. Delegates to the standard `/v1/models` handler.","operationId":"cursor_model_list_cursor_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}},"/responses/{response_id}":{"get":{"tags":["responses"],"summary":"Get Response","description":"Get a response by ID.\n\nSupports both:\n- Polling IDs (litellm_poll_*): Returns cumulative cached content from background responses\n- Provider response IDs: Passes through to provider API\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/get\n\n```bash\n# Get polling response\ncurl -X GET http://localhost:4000/v1/responses/litellm_poll_abc123     -H \"Authorization: Bearer sk-1234\"\n\n# Get provider response\ncurl -X GET http://localhost:4000/v1/responses/resp_abc123     -H \"Authorization: Bearer sk-1234\"\n```","operationId":"get_response_responses__response_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"response_id","in":"path","required":true,"schema":{"type":"string","title":"Response Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsesAPIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["responses"],"summary":"Delete Response","description":"Delete a response by ID.\n\nSupports both:\n- Polling IDs (litellm_poll_*): Deletes from Redis cache\n- Provider response IDs: Passes through to provider API\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/delete\n\n```bash\ncurl -X DELETE http://localhost:4000/v1/responses/resp_abc123     -H \"Authorization: Bearer sk-1234\"\n```","operationId":"delete_response_responses__response_id__delete","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"response_id","in":"path","required":true,"schema":{"type":"string","title":"Response Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResponseResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/responses/{response_id}":{"get":{"tags":["responses"],"summary":"Get Response","description":"Get a response by ID.\n\nSupports both:\n- Polling IDs (litellm_poll_*): Returns cumulative cached content from background responses\n- Provider response IDs: Passes through to provider API\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/get\n\n```bash\n# Get polling response\ncurl -X GET http://localhost:4000/v1/responses/litellm_poll_abc123     -H \"Authorization: Bearer sk-1234\"\n\n# Get provider response\ncurl -X GET http://localhost:4000/v1/responses/resp_abc123     -H \"Authorization: Bearer sk-1234\"\n```","operationId":"get_response_v1_responses__response_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"response_id","in":"path","required":true,"schema":{"type":"string","title":"Response Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsesAPIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["responses"],"summary":"Delete Response","description":"Delete a response by ID.\n\nSupports both:\n- Polling IDs (litellm_poll_*): Deletes from Redis cache\n- Provider response IDs: Passes through to provider API\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/delete\n\n```bash\ncurl -X DELETE http://localhost:4000/v1/responses/resp_abc123     -H \"Authorization: Bearer sk-1234\"\n```","operationId":"delete_response_v1_responses__response_id__delete","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"response_id","in":"path","required":true,"schema":{"type":"string","title":"Response Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResponseResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/responses/{response_id}/input_items":{"get":{"tags":["responses"],"summary":"Get Response Input Items","description":"List input items for a response.","operationId":"get_response_input_items_responses__response_id__input_items_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"response_id","in":"path","required":true,"schema":{"type":"string","title":"Response Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseItemList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/responses/{response_id}/input_items":{"get":{"tags":["responses"],"summary":"Get Response Input Items","description":"List input items for a response.","operationId":"get_response_input_items_v1_responses__response_id__input_items_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"response_id","in":"path","required":true,"schema":{"type":"string","title":"Response Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseItemList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/responses/compact":{"post":{"tags":["responses"],"summary":"Compact Response","description":"Compact a response by running a compaction pass over a conversation.\n\nReturns encrypted, opaque items that can be used to reduce context size.\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/compact\n\n```bash\ncurl -X POST http://localhost:4000/v1/responses/compact     -H \"Content-Type: application/json\"     -H \"Authorization: Bearer sk-1234\"     -d '{\n    \"model\": \"gpt-4o\",\n    \"input\": [{\"role\": \"user\", \"content\": \"Hello\"}]\n}'\n```","operationId":"compact_response_responses_compact_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}},"/v1/responses/compact":{"post":{"tags":["responses"],"summary":"Compact Response","description":"Compact a response by running a compaction pass over a conversation.\n\nReturns encrypted, opaque items that can be used to reduce context size.\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/compact\n\n```bash\ncurl -X POST http://localhost:4000/v1/responses/compact     -H \"Content-Type: application/json\"     -H \"Authorization: Bearer sk-1234\"     -d '{\n    \"model\": \"gpt-4o\",\n    \"input\": [{\"role\": \"user\", \"content\": \"Hello\"}]\n}'\n```","operationId":"compact_response_v1_responses_compact_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}},"/openai/v1/responses/input_tokens":{"post":{"tags":["responses"],"summary":"Responses Input Tokens","description":"Count the input tokens of a Responses API request without calling the model.\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/input-tokens\n\n```bash\ncurl -X POST http://localhost:4000/v1/responses/input_tokens     -H \"Content-Type: application/json\"     -H \"Authorization: Bearer sk-1234\"     -d '{\n    \"model\": \"gpt-4o\",\n    \"input\": \"Hello, how are you?\"\n}'\n```\n\nReturns: `{\"object\": \"response.input_tokens\", \"input_tokens\": <count>}`","operationId":"responses_input_tokens_openai_v1_responses_input_tokens_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}},"/responses/input_tokens":{"post":{"tags":["responses"],"summary":"Responses Input Tokens","description":"Count the input tokens of a Responses API request without calling the model.\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/input-tokens\n\n```bash\ncurl -X POST http://localhost:4000/v1/responses/input_tokens     -H \"Content-Type: application/json\"     -H \"Authorization: Bearer sk-1234\"     -d '{\n    \"model\": \"gpt-4o\",\n    \"input\": \"Hello, how are you?\"\n}'\n```\n\nReturns: `{\"object\": \"response.input_tokens\", \"input_tokens\": <count>}`","operationId":"responses_input_tokens_responses_input_tokens_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}},"/v1/responses/input_tokens":{"post":{"tags":["responses"],"summary":"Responses Input Tokens","description":"Count the input tokens of a Responses API request without calling the model.\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/input-tokens\n\n```bash\ncurl -X POST http://localhost:4000/v1/responses/input_tokens     -H \"Content-Type: application/json\"     -H \"Authorization: Bearer sk-1234\"     -d '{\n    \"model\": \"gpt-4o\",\n    \"input\": \"Hello, how are you?\"\n}'\n```\n\nReturns: `{\"object\": \"response.input_tokens\", \"input_tokens\": <count>}`","operationId":"responses_input_tokens_v1_responses_input_tokens_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}},"/responses/{response_id}/cancel":{"post":{"tags":["responses"],"summary":"Cancel Response","description":"Cancel a response by ID.\n\nSupports both:\n- Polling IDs (litellm_poll_*): Cancels background response and updates status in Redis\n- Provider response IDs: Passes through to provider API\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/cancel\n\n```bash\n# Cancel polling response\ncurl -X POST http://localhost:4000/v1/responses/litellm_poll_abc123/cancel     -H \"Authorization: Bearer sk-1234\"\n\n# Cancel provider response\ncurl -X POST http://localhost:4000/v1/responses/resp_abc123/cancel     -H \"Authorization: Bearer sk-1234\"\n```","operationId":"cancel_response_responses__response_id__cancel_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"response_id","in":"path","required":true,"schema":{"type":"string","title":"Response Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/responses/{response_id}/cancel":{"post":{"tags":["responses"],"summary":"Cancel Response","description":"Cancel a response by ID.\n\nSupports both:\n- Polling IDs (litellm_poll_*): Cancels background response and updates status in Redis\n- Provider response IDs: Passes through to provider API\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/cancel\n\n```bash\n# Cancel polling response\ncurl -X POST http://localhost:4000/v1/responses/litellm_poll_abc123/cancel     -H \"Authorization: Bearer sk-1234\"\n\n# Cancel provider response\ncurl -X POST http://localhost:4000/v1/responses/resp_abc123/cancel     -H \"Authorization: Bearer sk-1234\"\n```","operationId":"cancel_response_v1_responses__response_id__cancel_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"response_id","in":"path","required":true,"schema":{"type":"string","title":"Response Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/models":{"get":{"tags":["public","model management"],"summary":"Public Models","description":"Public endpoint to list all available models without authentication.\n\nReturns all models configured in the LiteLLM proxy without any access restrictions.\nIncludes model_info fields: id, max_input_tokens, max_output_tokens,\ninput_cost_per_token, output_cost_per_token.\n\nThis and all other endpoints behave in a OpenAI-compatible manner. This allows\nfor compatibility with tools and libraries built for OpenAI's API.\n\nReturns:\n    dict: OpenAI-compatible model list response with model info","operationId":"public_models_public_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Public Models Public Models Get"}}}}}}},"/public/model/info":{"get":{"tags":["public","model management"],"summary":"Public Model Info","description":"Public endpoint that mimics /model/info without authentication.\n\nProvides detailed information about all models or a specific model\n\nParameters:\n    litellm_model_id: Optional[str] - Filter by specific model ID\n\nReturns:\n    dict: Response with format:\n        {\n            \"data\": [\n                {\n                    \"model_name\": \"model-name\",\n                    \"model_info\": {...}\n                }\n            ]\n        }","operationId":"public_model_info_public_model_info_get","parameters":[{"name":"litellm_model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Litellm Model Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Model Info Public Model Info Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/images/generations":{"post":{"tags":["images"],"summary":"Image Generation","operationId":"image_generation_images_generations_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/images/generations":{"post":{"tags":["images"],"summary":"Image Generation","operationId":"image_generation_v1_images_generations_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/images/edits":{"post":{"tags":["images"],"summary":"Image Edit Api","description":"Follows the OpenAI Images API spec: https://platform.openai.com/docs/api-reference/images/create\n\n```bash\ncurl -s -D >(grep -i x-request-id >&2)     -o >(jq -r '.data[0].b64_json' | base64 --decode > gift-basket.png)     -X POST \"http://localhost:4000/v1/images/edits\"     -H \"Authorization: Bearer sk-1234\"         -F \"model=gpt-image-1\"         -F \"image[]=@soap.png\"         -F 'prompt=Create a studio ghibli image of this'\n```","operationId":"image_edit_api_images_edits_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_image_edit_api_images_edits_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/images/edits":{"post":{"tags":["images"],"summary":"Image Edit Api","description":"Follows the OpenAI Images API spec: https://platform.openai.com/docs/api-reference/images/create\n\n```bash\ncurl -s -D >(grep -i x-request-id >&2)     -o >(jq -r '.data[0].b64_json' | base64 --decode > gift-basket.png)     -X POST \"http://localhost:4000/v1/images/edits\"     -H \"Authorization: Bearer sk-1234\"         -F \"model=gpt-image-1\"         -F \"image[]=@soap.png\"         -F 'prompt=Create a studio ghibli image of this'\n```","operationId":"image_edit_api_v1_images_edits_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_image_edit_api_v1_images_edits_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"tags":["health"],"summary":"Health Endpoint","description":"🚨 USE `/health/liveliness` to health check the proxy 🚨\n\nSee more 👉 https://docs.litellm.ai/docs/proxy/health\n\n\nCheck the health of all the endpoints in config.yaml\n\nTo run health checks in the background, add this to config.yaml:\n```\ngeneral_settings:\n    # ... other settings\n    background_health_checks: True\n```\nelse, the health checks will be run on models when /health is called.\n\nTo skip deployments that set ``model_info.disable_background_health_check: true``\non ``GET /health`` as well as in the background loop, set\n``general_settings.health_check_skip_disabled_background_models: true``.","operationId":"health_endpoint_health_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Specify the model name (optional)","title":"Model"},"description":"Specify the model name (optional)"},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Specify the model ID (optional)","title":"Model Id"},"description":"Specify the model ID (optional)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health/readiness":{"get":{"tags":["health"],"summary":"Health Readiness","description":"Public readiness probe. Returns a low-detail payload safe to expose to\nunauthenticated load balancers — `status` plus `db` so orchestrators and\nexternal probes can distinguish \"healthy\" from \"DB unreachable\" without a\ncredential. Admins can opt into the legacy detailed payload with\ngeneral_settings.allow_public_health_readiness_details.","operationId":"health_readiness_health_readiness_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AcknowledgedSafetyCheck":{"properties":{"id":{"type":"string","title":"Id"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"additionalProperties":true,"type":"object","required":["id"],"title":"AcknowledgedSafetyCheck","description":"A pending safety check for the computer call."},"Action":{"properties":{"commands":{"items":{"type":"string"},"type":"array","title":"Commands"},"max_output_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Length"},"timeout_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout Ms"}},"additionalProperties":true,"type":"object","required":["commands"],"title":"Action","description":"The shell commands and limits that describe how to run the tool call."},"ActionClick":{"properties":{"button":{"type":"string","enum":["left","right","wheel","back","forward"],"title":"Button"},"type":{"type":"string","const":"click","title":"Type"},"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"},"keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keys"}},"additionalProperties":true,"type":"object","required":["button","type","x","y"],"title":"ActionClick","description":"A click action."},"ActionDoubleClick":{"properties":{"keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keys"},"type":{"type":"string","const":"double_click","title":"Type"},"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"}},"additionalProperties":true,"type":"object","required":["type","x","y"],"title":"ActionDoubleClick","description":"A double click action."},"ActionDrag":{"properties":{"path":{"items":{"$ref":"#/components/schemas/ActionDragPath"},"type":"array","title":"Path"},"type":{"type":"string","const":"drag","title":"Type"},"keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keys"}},"additionalProperties":true,"type":"object","required":["path","type"],"title":"ActionDrag","description":"A drag action."},"ActionDragPath":{"properties":{"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"}},"additionalProperties":true,"type":"object","required":["x","y"],"title":"ActionDragPath","description":"An x/y coordinate pair, e.g. `{ x: 100, y: 200 }`."},"ActionFind":{"properties":{"pattern":{"type":"string","title":"Pattern"},"type":{"type":"string","const":"find_in_page","title":"Type"},"url":{"type":"string","title":"Url"}},"additionalProperties":true,"type":"object","required":["pattern","type","url"],"title":"ActionFind","description":"Action type \"find_in_page\": Searches for a pattern within a loaded page."},"ActionKeypress":{"properties":{"keys":{"items":{"type":"string"},"type":"array","title":"Keys"},"type":{"type":"string","const":"keypress","title":"Type"}},"additionalProperties":true,"type":"object","required":["keys","type"],"title":"ActionKeypress","description":"A collection of keypresses the model would like to perform."},"ActionMove":{"properties":{"type":{"type":"string","const":"move","title":"Type"},"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"},"keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keys"}},"additionalProperties":true,"type":"object","required":["type","x","y"],"title":"ActionMove","description":"A mouse move action."},"ActionOpenPage":{"properties":{"type":{"type":"string","const":"open_page","title":"Type"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ActionOpenPage","description":"Action type \"open_page\" - Opens a specific URL from search results."},"ActionScreenshot":{"properties":{"type":{"type":"string","const":"screenshot","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ActionScreenshot","description":"A screenshot action."},"ActionScroll":{"properties":{"scroll_x":{"type":"integer","title":"Scroll X"},"scroll_y":{"type":"integer","title":"Scroll Y"},"type":{"type":"string","const":"scroll","title":"Type"},"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"},"keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keys"}},"additionalProperties":true,"type":"object","required":["scroll_x","scroll_y","type","x","y"],"title":"ActionScroll","description":"A scroll action."},"ActionSearch":{"properties":{"query":{"type":"string","title":"Query"},"type":{"type":"string","const":"search","title":"Type"},"queries":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Queries"},"sources":{"anyOf":[{"items":{"$ref":"#/components/schemas/ActionSearchSource"},"type":"array"},{"type":"null"}],"title":"Sources"}},"additionalProperties":true,"type":"object","required":["query","type"],"title":"ActionSearch","description":"Action type \"search\" - Performs a web search query."},"ActionSearchSource":{"properties":{"type":{"type":"string","const":"url","title":"Type"},"url":{"type":"string","title":"Url"}},"additionalProperties":true,"type":"object","required":["type","url"],"title":"ActionSearchSource","description":"A source used in the search."},"ActionType":{"properties":{"text":{"type":"string","title":"Text"},"type":{"type":"string","const":"type","title":"Type"}},"additionalProperties":true,"type":"object","required":["text","type"],"title":"ActionType","description":"An action to type in text."},"ActionWait":{"properties":{"type":{"type":"string","const":"wait","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ActionWait","description":"A wait action."},"AnnotationContainerFileCitation":{"properties":{"container_id":{"type":"string","title":"Container Id"},"end_index":{"type":"integer","title":"End Index"},"file_id":{"type":"string","title":"File Id"},"filename":{"type":"string","title":"Filename"},"start_index":{"type":"integer","title":"Start Index"},"type":{"type":"string","const":"container_file_citation","title":"Type"}},"additionalProperties":true,"type":"object","required":["container_id","end_index","file_id","filename","start_index","type"],"title":"AnnotationContainerFileCitation","description":"A citation for a container file used to generate a model response."},"AnnotationFileCitation":{"properties":{"file_id":{"type":"string","title":"File Id"},"filename":{"type":"string","title":"Filename"},"index":{"type":"integer","title":"Index"},"type":{"type":"string","const":"file_citation","title":"Type"}},"additionalProperties":true,"type":"object","required":["file_id","filename","index","type"],"title":"AnnotationFileCitation","description":"A citation to a file."},"AnnotationFilePath":{"properties":{"file_id":{"type":"string","title":"File Id"},"index":{"type":"integer","title":"Index"},"type":{"type":"string","const":"file_path","title":"Type"}},"additionalProperties":true,"type":"object","required":["file_id","index","type"],"title":"AnnotationFilePath","description":"A path to a file."},"AnnotationURLCitation":{"properties":{"end_index":{"type":"integer","title":"End Index"},"start_index":{"type":"integer","title":"Start Index"},"title":{"type":"string","title":"Title"},"type":{"type":"string","const":"url_citation","title":"Type"},"url":{"type":"string","title":"Url"}},"additionalProperties":true,"type":"object","required":["end_index","start_index","title","type","url"],"title":"AnnotationURLCitation","description":"A citation for a web resource used to generate a model response."},"ApplyPatchTool":{"properties":{"type":{"type":"string","const":"apply_patch","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ApplyPatchTool","description":"Allows the assistant to create, delete, or update files using unified diffs."},"Body_image_edit_api_images_edits_post":{"properties":{"image":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Image"},"image[]":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Image[]"},"mask":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Mask"},"mask[]":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Mask[]"}},"type":"object","title":"Body_image_edit_api_images_edits_post"},"Body_image_edit_api_v1_images_edits_post":{"properties":{"image":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Image"},"image[]":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Image[]"},"mask":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Mask"},"mask[]":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Mask[]"}},"type":"object","title":"Body_image_edit_api_v1_images_edits_post"},"CachedTokensDetails":{"properties":{"text_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Text Tokens"},"audio_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Audio Tokens"},"image_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Image Tokens"}},"type":"object","title":"CachedTokensDetails"},"Click":{"properties":{"button":{"type":"string","enum":["left","right","wheel","back","forward"],"title":"Button"},"type":{"type":"string","const":"click","title":"Type"},"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"},"keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keys"}},"additionalProperties":true,"type":"object","required":["button","type","x","y"],"title":"Click","description":"A click action."},"CodeInterpreter":{"properties":{"container":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/CodeInterpreterContainerCodeInterpreterToolAuto"}],"title":"Container"},"type":{"type":"string","const":"code_interpreter","title":"Type"}},"additionalProperties":true,"type":"object","required":["container","type"],"title":"CodeInterpreter","description":"A tool that runs Python code to help generate a response to a prompt."},"CodeInterpreterContainerCodeInterpreterToolAuto":{"properties":{"type":{"type":"string","const":"auto","title":"Type"},"file_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"File Ids"},"memory_limit":{"anyOf":[{"type":"string","enum":["1g","4g","16g","64g"]},{"type":"null"}],"title":"Memory Limit"},"network_policy":{"anyOf":[{"$ref":"#/components/schemas/ContainerNetworkPolicyDisabled"},{"$ref":"#/components/schemas/ContainerNetworkPolicyAllowlist"},{"type":"null"}],"title":"Network Policy"}},"additionalProperties":true,"type":"object","required":["type"],"title":"CodeInterpreterContainerCodeInterpreterToolAuto","description":"Configuration for a code interpreter container.\n\nOptionally specify the IDs of the files to run the code on."},"ComparisonFilter":{"properties":{"key":{"type":"string","title":"Key"},"type":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","in","nin"],"title":"Type"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"items":{"anyOf":[{"type":"string"},{"type":"number"}]},"type":"array"}],"title":"Value"}},"additionalProperties":true,"type":"object","required":["key","type","value"],"title":"ComparisonFilter","description":"A filter used to compare a specified attribute key to a given value using a defined comparison operation."},"CompoundFilter":{"properties":{"filters":{"items":{"anyOf":[{"$ref":"#/components/schemas/ComparisonFilter"},{}]},"type":"array","title":"Filters"},"type":{"type":"string","enum":["and","or"],"title":"Type"}},"additionalProperties":true,"type":"object","required":["filters","type"],"title":"CompoundFilter","description":"Combine multiple filters using `and` or `or`."},"ComputerTool":{"properties":{"type":{"type":"string","const":"computer","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ComputerTool","description":"A tool that controls a virtual computer.\n\nLearn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use)."},"ComputerUsePreviewTool":{"properties":{"display_height":{"type":"integer","title":"Display Height"},"display_width":{"type":"integer","title":"Display Width"},"environment":{"type":"string","enum":["windows","mac","linux","ubuntu","browser"],"title":"Environment"},"type":{"type":"string","const":"computer_use_preview","title":"Type"}},"additionalProperties":true,"type":"object","required":["display_height","display_width","environment","type"],"title":"ComputerUsePreviewTool","description":"A tool that controls a virtual computer.\n\nLearn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use)."},"ContainerAuto":{"properties":{"type":{"type":"string","const":"container_auto","title":"Type"},"file_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"File Ids"},"memory_limit":{"anyOf":[{"type":"string","enum":["1g","4g","16g","64g"]},{"type":"null"}],"title":"Memory Limit"},"network_policy":{"anyOf":[{"$ref":"#/components/schemas/ContainerNetworkPolicyDisabled"},{"$ref":"#/components/schemas/ContainerNetworkPolicyAllowlist"},{"type":"null"}],"title":"Network Policy"},"skills":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/SkillReference"},{"$ref":"#/components/schemas/InlineSkill"}]},"type":"array"},{"type":"null"}],"title":"Skills"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ContainerAuto"},"ContainerNetworkPolicyAllowlist":{"properties":{"allowed_domains":{"items":{"type":"string"},"type":"array","title":"Allowed Domains"},"type":{"type":"string","const":"allowlist","title":"Type"},"domain_secrets":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContainerNetworkPolicyDomainSecret"},"type":"array"},{"type":"null"}],"title":"Domain Secrets"}},"additionalProperties":true,"type":"object","required":["allowed_domains","type"],"title":"ContainerNetworkPolicyAllowlist"},"ContainerNetworkPolicyDisabled":{"properties":{"type":{"type":"string","const":"disabled","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ContainerNetworkPolicyDisabled"},"ContainerNetworkPolicyDomainSecret":{"properties":{"domain":{"type":"string","title":"Domain"},"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"}},"additionalProperties":true,"type":"object","required":["domain","name","value"],"title":"ContainerNetworkPolicyDomainSecret"},"ContainerReference":{"properties":{"container_id":{"type":"string","title":"Container Id"},"type":{"type":"string","const":"container_reference","title":"Type"}},"additionalProperties":true,"type":"object","required":["container_id","type"],"title":"ContainerReference"},"Content":{"properties":{"text":{"type":"string","title":"Text"},"type":{"type":"string","const":"reasoning_text","title":"Type"}},"additionalProperties":true,"type":"object","required":["text","type"],"title":"Content","description":"Reasoning text from the model."},"CustomTool":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","const":"custom","title":"Type"},"defer_loading":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Defer Loading"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"format":{"anyOf":[{"$ref":"#/components/schemas/Text"},{"$ref":"#/components/schemas/Grammar"},{"type":"null"}],"title":"Format"}},"additionalProperties":true,"type":"object","required":["name","type"],"title":"CustomTool","description":"A custom tool that processes input using a specified format.\n\nLearn more about   [custom tools](https://platform.openai.com/docs/guides/function-calling#custom-tools)"},"CustomToolCallOutputItem":{"properties":{"type":{"type":"string","const":"custom_tool_call","title":"Type"},"call_id":{"type":"string","title":"Call Id"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"input":{"type":"string","title":"Input"},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"}},"additionalProperties":true,"type":"object","required":["type","call_id","name","input"],"title":"CustomToolCallOutputItem","description":"A custom/freeform tool call output item (e.g. apply_patch).\n\nMirrors the ``custom_tool_call`` variant of OpenAI's Responses API output.\nUnlike ``OutputFunctionToolCall`` which uses ``arguments`` (JSON string),\nthis uses ``input`` (raw string) for the tool payload."},"DeleteResponseResult":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"object":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object"},"deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deleted"}},"additionalProperties":true,"type":"object","required":["id","object","deleted"],"title":"DeleteResponseResult","description":"Result of a delete response request\n\n{\n    \"id\": \"resp_6786a1bec27481909a17d673315b29f6\",\n    \"object\": \"response\",\n    \"deleted\": true\n}"},"DoubleClick":{"properties":{"keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keys"},"type":{"type":"string","const":"double_click","title":"Type"},"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"}},"additionalProperties":true,"type":"object","required":["type","x","y"],"title":"DoubleClick","description":"A double click action."},"Drag":{"properties":{"path":{"items":{"$ref":"#/components/schemas/DragPath"},"type":"array","title":"Path"},"type":{"type":"string","const":"drag","title":"Type"},"keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keys"}},"additionalProperties":true,"type":"object","required":["path","type"],"title":"Drag","description":"A drag action."},"DragPath":{"properties":{"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"}},"additionalProperties":true,"type":"object","required":["x","y"],"title":"DragPath","description":"An x/y coordinate pair, e.g. `{ x: 100, y: 200 }`."},"FileSearchTool":{"properties":{"type":{"type":"string","const":"file_search","title":"Type"},"vector_store_ids":{"items":{"type":"string"},"type":"array","title":"Vector Store Ids"},"filters":{"anyOf":[{"$ref":"#/components/schemas/ComparisonFilter"},{"$ref":"#/components/schemas/CompoundFilter"},{"type":"null"}],"title":"Filters"},"max_num_results":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Num Results"},"ranking_options":{"anyOf":[{"$ref":"#/components/schemas/RankingOptions"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["type","vector_store_ids"],"title":"FileSearchTool","description":"A tool that searches for relevant content from uploaded files.\n\nLearn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search)."},"Filters":{"properties":{"allowed_domains":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Domains"}},"additionalProperties":true,"type":"object","title":"Filters","description":"Filters for the search."},"FunctionShellTool":{"properties":{"type":{"type":"string","const":"shell","title":"Type"},"environment":{"anyOf":[{"$ref":"#/components/schemas/ContainerAuto"},{"$ref":"#/components/schemas/LocalEnvironment"},{"$ref":"#/components/schemas/ContainerReference"},{"type":"null"}],"title":"Environment"}},"additionalProperties":true,"type":"object","required":["type"],"title":"FunctionShellTool","description":"A tool that allows the model to execute shell commands."},"FunctionTool":{"properties":{"name":{"type":"string","title":"Name"},"parameters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parameters"},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strict"},"type":{"type":"string","const":"function","title":"Type"},"defer_loading":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Defer Loading"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"additionalProperties":true,"type":"object","required":["name","type"],"title":"FunctionTool","description":"Defines a function in your own code the model can choose to call.\n\nLearn more about [function calling](https://platform.openai.com/docs/guides/function-calling)."},"GenericResponseOutputItem":{"properties":{"type":{"type":"string","title":"Type"},"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"role":{"type":"string","title":"Role"},"content":{"items":{"$ref":"#/components/schemas/OutputText"},"type":"array","title":"Content"},"phase":{"anyOf":[{"type":"string","enum":["commentary","final_answer"]},{"type":"null"}],"title":"Phase"}},"additionalProperties":true,"type":"object","required":["type","id","status","role","content"],"title":"GenericResponseOutputItem","description":"Generic response API output item"},"GenericResponseOutputItemContentAnnotation":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"start_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Index"},"end_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Index"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"additionalProperties":true,"type":"object","required":["type","start_index","end_index","url","title"],"title":"GenericResponseOutputItemContentAnnotation","description":"Annotation for content in a message"},"Grammar":{"properties":{"definition":{"type":"string","title":"Definition"},"syntax":{"type":"string","enum":["lark","regex"],"title":"Syntax"},"type":{"type":"string","const":"grammar","title":"Type"}},"additionalProperties":true,"type":"object","required":["definition","syntax","type"],"title":"Grammar","description":"A grammar defined by the user."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImageGeneration":{"properties":{"type":{"type":"string","const":"image_generation","title":"Type"},"action":{"anyOf":[{"type":"string","enum":["generate","edit","auto"]},{"type":"null"}],"title":"Action"},"background":{"anyOf":[{"type":"string","enum":["transparent","opaque","auto"]},{"type":"null"}],"title":"Background"},"input_fidelity":{"anyOf":[{"type":"string","enum":["high","low"]},{"type":"null"}],"title":"Input Fidelity"},"input_image_mask":{"anyOf":[{"$ref":"#/components/schemas/ImageGenerationInputImageMask"},{"type":"null"}]},"model":{"anyOf":[{"type":"string"},{"type":"string","enum":["gpt-image-1","gpt-image-1-mini","gpt-image-1.5"]},{"type":"null"}],"title":"Model"},"moderation":{"anyOf":[{"type":"string","enum":["auto","low"]},{"type":"null"}],"title":"Moderation"},"output_compression":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Output Compression"},"output_format":{"anyOf":[{"type":"string","enum":["png","webp","jpeg"]},{"type":"null"}],"title":"Output Format"},"partial_images":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Partial Images"},"quality":{"anyOf":[{"type":"string","enum":["low","medium","high","auto"]},{"type":"null"}],"title":"Quality"},"size":{"anyOf":[{"type":"string","enum":["1024x1024","1024x1536","1536x1024","auto"]},{"type":"null"}],"title":"Size"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ImageGeneration","description":"A tool that generates images using the GPT image models."},"ImageGenerationCall":{"properties":{"id":{"type":"string","title":"Id"},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result"},"status":{"type":"string","enum":["in_progress","completed","generating","failed"],"title":"Status"},"type":{"type":"string","const":"image_generation_call","title":"Type"}},"additionalProperties":true,"type":"object","required":["id","status","type"],"title":"ImageGenerationCall","description":"An image generation request made by the model."},"ImageGenerationInputImageMask":{"properties":{"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"}},"additionalProperties":true,"type":"object","title":"ImageGenerationInputImageMask","description":"Optional mask for inpainting.\n\nContains `image_url`\n(string, optional) and `file_id` (string, optional)."},"IncompleteDetails":{"properties":{"reason":{"anyOf":[{"type":"string","enum":["max_output_tokens","content_filter"]},{"type":"null"}],"title":"Reason"}},"additionalProperties":true,"type":"object","title":"IncompleteDetails","description":"Details about why the response is incomplete."},"InlineSkill":{"properties":{"description":{"type":"string","title":"Description"},"name":{"type":"string","title":"Name"},"source":{"$ref":"#/components/schemas/InlineSkillSource"},"type":{"type":"string","const":"inline","title":"Type"}},"additionalProperties":true,"type":"object","required":["description","name","source","type"],"title":"InlineSkill"},"InlineSkillSource":{"properties":{"data":{"type":"string","title":"Data"},"media_type":{"type":"string","const":"application/zip","title":"Media Type"},"type":{"type":"string","const":"base64","title":"Type"}},"additionalProperties":true,"type":"object","required":["data","media_type","type"],"title":"InlineSkillSource","description":"Inline skill payload"},"InputTokensDetails":{"properties":{"audio_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Audio Tokens"},"cached_tokens":{"type":"integer","title":"Cached Tokens","default":0},"cached_tokens_details":{"anyOf":[{"$ref":"#/components/schemas/CachedTokensDetails"},{"type":"null"}]},"image_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Image Tokens"},"text_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Text Tokens"},"video_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Video Tokens"}},"additionalProperties":true,"type":"object","title":"InputTokensDetails"},"Keypress":{"properties":{"keys":{"items":{"type":"string"},"type":"array","title":"Keys"},"type":{"type":"string","const":"keypress","title":"Type"}},"additionalProperties":true,"type":"object","required":["keys","type"],"title":"Keypress","description":"A collection of keypresses the model would like to perform."},"LocalEnvironment":{"properties":{"type":{"type":"string","const":"local","title":"Type"},"skills":{"anyOf":[{"items":{"$ref":"#/components/schemas/LocalSkill"},"type":"array"},{"type":"null"}],"title":"Skills"}},"additionalProperties":true,"type":"object","required":["type"],"title":"LocalEnvironment"},"LocalShell":{"properties":{"type":{"type":"string","const":"local_shell","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"LocalShell","description":"A tool that allows the model to execute shell commands in a local environment."},"LocalShellCall":{"properties":{"id":{"type":"string","title":"Id"},"action":{"$ref":"#/components/schemas/LocalShellCallAction"},"call_id":{"type":"string","title":"Call Id"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"type":{"type":"string","const":"local_shell_call","title":"Type"}},"additionalProperties":true,"type":"object","required":["id","action","call_id","status","type"],"title":"LocalShellCall","description":"A tool call to run a command on the local shell."},"LocalShellCallAction":{"properties":{"command":{"items":{"type":"string"},"type":"array","title":"Command"},"env":{"additionalProperties":{"type":"string"},"type":"object","title":"Env"},"type":{"type":"string","const":"exec","title":"Type"},"timeout_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout Ms"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"},"working_directory":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Working Directory"}},"additionalProperties":true,"type":"object","required":["command","env","type"],"title":"LocalShellCallAction","description":"Execute a shell command on the server."},"LocalShellCallOutput":{"properties":{"id":{"type":"string","title":"Id"},"output":{"type":"string","title":"Output"},"type":{"type":"string","const":"local_shell_call_output","title":"Type"},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"}},"additionalProperties":true,"type":"object","required":["id","output","type"],"title":"LocalShellCallOutput","description":"The output of a local shell tool call."},"LocalSkill":{"properties":{"description":{"type":"string","title":"Description"},"name":{"type":"string","title":"Name"},"path":{"type":"string","title":"Path"}},"additionalProperties":true,"type":"object","required":["description","name","path"],"title":"LocalSkill"},"Logprob":{"properties":{"token":{"type":"string","title":"Token"},"bytes":{"items":{"type":"integer"},"type":"array","title":"Bytes"},"logprob":{"type":"number","title":"Logprob"},"top_logprobs":{"items":{"$ref":"#/components/schemas/LogprobTopLogprob"},"type":"array","title":"Top Logprobs"}},"additionalProperties":true,"type":"object","required":["token","bytes","logprob","top_logprobs"],"title":"Logprob","description":"The log probability of a token."},"LogprobTopLogprob":{"properties":{"token":{"type":"string","title":"Token"},"bytes":{"items":{"type":"integer"},"type":"array","title":"Bytes"},"logprob":{"type":"number","title":"Logprob"}},"additionalProperties":true,"type":"object","required":["token","bytes","logprob"],"title":"LogprobTopLogprob","description":"The top log probability of a token."},"Mcp":{"properties":{"server_label":{"type":"string","title":"Server Label"},"type":{"type":"string","const":"mcp","title":"Type"},"allowed_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"$ref":"#/components/schemas/McpAllowedToolsMcpToolFilter"},{"type":"null"}],"title":"Allowed Tools"},"authorization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"},"connector_id":{"anyOf":[{"type":"string","enum":["connector_dropbox","connector_gmail","connector_googlecalendar","connector_googledrive","connector_microsoftteams","connector_outlookcalendar","connector_outlookemail","connector_sharepoint"]},{"type":"null"}],"title":"Connector Id"},"defer_loading":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Defer Loading"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"},"require_approval":{"anyOf":[{"$ref":"#/components/schemas/McpRequireApprovalMcpToolApprovalFilter"},{"type":"string","enum":["always","never"]},{"type":"null"}],"title":"Require Approval"},"server_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Description"},"server_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Url"}},"additionalProperties":true,"type":"object","required":["server_label","type"],"title":"Mcp","description":"Give the model access to additional tools via remote Model Context Protocol\n(MCP) servers. [Learn more about MCP](https://platform.openai.com/docs/guides/tools-remote-mcp)."},"McpAllowedToolsMcpToolFilter":{"properties":{"read_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read Only"},"tool_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tool Names"}},"additionalProperties":true,"type":"object","title":"McpAllowedToolsMcpToolFilter","description":"A filter object to specify which tools are allowed."},"McpApprovalRequest":{"properties":{"id":{"type":"string","title":"Id"},"arguments":{"type":"string","title":"Arguments"},"name":{"type":"string","title":"Name"},"server_label":{"type":"string","title":"Server Label"},"type":{"type":"string","const":"mcp_approval_request","title":"Type"}},"additionalProperties":true,"type":"object","required":["id","arguments","name","server_label","type"],"title":"McpApprovalRequest","description":"A request for human approval of a tool invocation."},"McpApprovalResponse":{"properties":{"id":{"type":"string","title":"Id"},"approval_request_id":{"type":"string","title":"Approval Request Id"},"approve":{"type":"boolean","title":"Approve"},"type":{"type":"string","const":"mcp_approval_response","title":"Type"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"additionalProperties":true,"type":"object","required":["id","approval_request_id","approve","type"],"title":"McpApprovalResponse","description":"A response to an MCP approval request."},"McpCall":{"properties":{"id":{"type":"string","title":"Id"},"arguments":{"type":"string","title":"Arguments"},"name":{"type":"string","title":"Name"},"server_label":{"type":"string","title":"Server Label"},"type":{"type":"string","const":"mcp_call","title":"Type"},"approval_request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Request Id"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"output":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output"},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete","calling","failed"]},{"type":"null"}],"title":"Status"}},"additionalProperties":true,"type":"object","required":["id","arguments","name","server_label","type"],"title":"McpCall","description":"An invocation of a tool on an MCP server."},"McpListTools":{"properties":{"id":{"type":"string","title":"Id"},"server_label":{"type":"string","title":"Server Label"},"tools":{"items":{"$ref":"#/components/schemas/McpListToolsTool"},"type":"array","title":"Tools"},"type":{"type":"string","const":"mcp_list_tools","title":"Type"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"additionalProperties":true,"type":"object","required":["id","server_label","tools","type"],"title":"McpListTools","description":"A list of tools available on an MCP server."},"McpListToolsTool":{"properties":{"input_schema":{"title":"Input Schema"},"name":{"type":"string","title":"Name"},"annotations":{"anyOf":[{},{"type":"null"}],"title":"Annotations"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"additionalProperties":true,"type":"object","required":["input_schema","name"],"title":"McpListToolsTool","description":"A tool available on an MCP server."},"McpRequireApprovalMcpToolApprovalFilter":{"properties":{"always":{"anyOf":[{"$ref":"#/components/schemas/McpRequireApprovalMcpToolApprovalFilterAlways"},{"type":"null"}]},"never":{"anyOf":[{"$ref":"#/components/schemas/McpRequireApprovalMcpToolApprovalFilterNever"},{"type":"null"}]}},"additionalProperties":true,"type":"object","title":"McpRequireApprovalMcpToolApprovalFilter","description":"Specify which of the MCP server's tools require approval.\n\nCan be\n`always`, `never`, or a filter object associated with tools\nthat require approval."},"McpRequireApprovalMcpToolApprovalFilterAlways":{"properties":{"read_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read Only"},"tool_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tool Names"}},"additionalProperties":true,"type":"object","title":"McpRequireApprovalMcpToolApprovalFilterAlways","description":"A filter object to specify which tools are allowed."},"McpRequireApprovalMcpToolApprovalFilterNever":{"properties":{"read_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read Only"},"tool_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tool Names"}},"additionalProperties":true,"type":"object","title":"McpRequireApprovalMcpToolApprovalFilterNever","description":"A filter object to specify which tools are allowed."},"ModelDeprecationInfo":{"properties":{"model_name":{"type":"string","title":"Model Name","description":"The public name of the model on the proxy (model_group)."},"litellm_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Litellm Model","description":"The underlying litellm model string the deprecation date is sourced from."},"deprecation_date":{"type":"string","format":"date","title":"Deprecation Date","description":"The date (UTC) when the model becomes deprecated."},"days_until_deprecation":{"type":"integer","title":"Days Until Deprecation","description":"Days remaining until the deprecation date. Negative if the model is already deprecated."},"status":{"type":"string","enum":["upcoming","imminent","deprecated"],"title":"Status","description":"'deprecated' if the date has passed, 'imminent' if it falls within warn_within_days, 'upcoming' otherwise."},"litellm_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Litellm Provider","description":"The provider this model belongs to."}},"type":"object","required":["model_name","deprecation_date","days_until_deprecation","status"],"title":"ModelDeprecationInfo"},"ModelDeprecationResponse":{"properties":{"deprecated":{"items":{"$ref":"#/components/schemas/ModelDeprecationInfo"},"type":"array","title":"Deprecated","description":"Models whose deprecation date has already passed."},"imminent":{"items":{"$ref":"#/components/schemas/ModelDeprecationInfo"},"type":"array","title":"Imminent","description":"Models whose deprecation date is within warn_within_days from today and require immediate migration planning."},"upcoming":{"items":{"$ref":"#/components/schemas/ModelDeprecationInfo"},"type":"array","title":"Upcoming","description":"Models with a future deprecation date outside the warn window."},"warn_within_days":{"type":"integer","title":"Warn Within Days","description":"The window (in days) used to bucket 'imminent' models."},"checked_at":{"type":"string","format":"date-time","title":"Checked At","description":"UTC timestamp when the deprecation snapshot was generated."}},"type":"object","required":["warn_within_days","checked_at"],"title":"ModelDeprecationResponse"},"Move":{"properties":{"type":{"type":"string","const":"move","title":"Type"},"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"},"keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keys"}},"additionalProperties":true,"type":"object","required":["type","x","y"],"title":"Move","description":"A mouse move action."},"NamespaceTool":{"properties":{"description":{"type":"string","title":"Description"},"name":{"type":"string","title":"Name"},"tools":{"items":{"anyOf":[{"$ref":"#/components/schemas/ToolFunction"},{"$ref":"#/components/schemas/CustomTool"}]},"type":"array","title":"Tools"},"type":{"type":"string","const":"namespace","title":"Type"}},"additionalProperties":true,"type":"object","required":["description","name","tools","type"],"title":"NamespaceTool","description":"Groups function/custom tools under a shared namespace."},"OperationCreateFile":{"properties":{"diff":{"type":"string","title":"Diff"},"path":{"type":"string","title":"Path"},"type":{"type":"string","const":"create_file","title":"Type"}},"additionalProperties":true,"type":"object","required":["diff","path","type"],"title":"OperationCreateFile","description":"Instruction describing how to create a file via the apply_patch tool."},"OperationDeleteFile":{"properties":{"path":{"type":"string","title":"Path"},"type":{"type":"string","const":"delete_file","title":"Type"}},"additionalProperties":true,"type":"object","required":["path","type"],"title":"OperationDeleteFile","description":"Instruction describing how to delete a file via the apply_patch tool."},"OperationUpdateFile":{"properties":{"diff":{"type":"string","title":"Diff"},"path":{"type":"string","title":"Path"},"type":{"type":"string","const":"update_file","title":"Type"}},"additionalProperties":true,"type":"object","required":["diff","path","type"],"title":"OperationUpdateFile","description":"Instruction describing how to update a file via the apply_patch tool."},"Output":{"properties":{"outcome":{"anyOf":[{"$ref":"#/components/schemas/OutputOutcomeTimeout"},{"$ref":"#/components/schemas/OutputOutcomeExit"}],"title":"Outcome"},"stderr":{"type":"string","title":"Stderr"},"stdout":{"type":"string","title":"Stdout"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"additionalProperties":true,"type":"object","required":["outcome","stderr","stdout"],"title":"Output","description":"The content of a shell tool call output that was emitted."},"OutputCodeInterpreterCall":{"properties":{"type":{"type":"string","const":"code_interpreter_call","title":"Type"},"id":{"type":"string","title":"Id"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"container_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Container Id"},"status":{"type":"string","enum":["in_progress","completed","incomplete","failed"],"title":"Status"},"outputs":{"anyOf":[{"items":{"$ref":"#/components/schemas/OutputCodeInterpreterCallLog"},"type":"array"},{"type":"null"}],"title":"Outputs"}},"additionalProperties":true,"type":"object","required":["type","id","code","container_id","status","outputs"],"title":"OutputCodeInterpreterCall","description":"A code interpreter / code execution call output"},"OutputCodeInterpreterCallLog":{"properties":{"type":{"type":"string","const":"logs","title":"Type"},"logs":{"type":"string","title":"Logs"}},"additionalProperties":true,"type":"object","required":["type","logs"],"title":"OutputCodeInterpreterCallLog","description":"Log output from a code interpreter call"},"OutputFunctionToolCall":{"properties":{"arguments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Arguments"},"call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"phase":{"anyOf":[{"type":"string","enum":["commentary","final_answer"]},{"type":"null"}],"title":"Phase"}},"additionalProperties":true,"type":"object","required":["arguments","call_id","name","type","id","status"],"title":"OutputFunctionToolCall","description":"A tool call to run a function"},"OutputImage":{"properties":{"type":{"type":"string","const":"image","title":"Type"},"url":{"type":"string","title":"Url"}},"additionalProperties":true,"type":"object","required":["type","url"],"title":"OutputImage","description":"The image output from the code interpreter."},"OutputImageGenerationCall":{"properties":{"type":{"type":"string","const":"image_generation_call","title":"Type"},"id":{"type":"string","title":"Id"},"status":{"type":"string","enum":["in_progress","completed","incomplete","failed"],"title":"Status"},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result"}},"additionalProperties":true,"type":"object","required":["type","id","status","result"],"title":"OutputImageGenerationCall","description":"An image generation call output"},"OutputLogs":{"properties":{"logs":{"type":"string","title":"Logs"},"type":{"type":"string","const":"logs","title":"Type"}},"additionalProperties":true,"type":"object","required":["logs","type"],"title":"OutputLogs","description":"The logs output from the code interpreter."},"OutputOutcomeExit":{"properties":{"exit_code":{"type":"integer","title":"Exit Code"},"type":{"type":"string","const":"exit","title":"Type"}},"additionalProperties":true,"type":"object","required":["exit_code","type"],"title":"OutputOutcomeExit","description":"Indicates that the shell commands finished and returned an exit code."},"OutputOutcomeTimeout":{"properties":{"type":{"type":"string","const":"timeout","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"OutputOutcomeTimeout","description":"Indicates that the shell call exceeded its configured time limit."},"OutputText":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"annotations":{"anyOf":[{"items":{"$ref":"#/components/schemas/GenericResponseOutputItemContentAnnotation"},"type":"array"},{"type":"null"}],"title":"Annotations"}},"additionalProperties":true,"type":"object","required":["type","text","annotations"],"title":"OutputText","description":"Text output content from an assistant message"},"OutputTokensDetails":{"properties":{"audio_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Audio Tokens"},"reasoning_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reasoning Tokens"},"text_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Text Tokens"}},"additionalProperties":true,"type":"object","title":"OutputTokensDetails"},"PendingSafetyCheck":{"properties":{"id":{"type":"string","title":"Id"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"additionalProperties":true,"type":"object","required":["id"],"title":"PendingSafetyCheck","description":"A pending safety check for the computer call."},"RankingOptions":{"properties":{"hybrid_search":{"anyOf":[{"$ref":"#/components/schemas/RankingOptionsHybridSearch"},{"type":"null"}]},"ranker":{"anyOf":[{"type":"string","enum":["auto","default-2024-11-15"]},{"type":"null"}],"title":"Ranker"},"score_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score Threshold"}},"additionalProperties":true,"type":"object","title":"RankingOptions","description":"Ranking options for search."},"RankingOptionsHybridSearch":{"properties":{"embedding_weight":{"type":"number","title":"Embedding Weight"},"text_weight":{"type":"number","title":"Text Weight"}},"additionalProperties":true,"type":"object","required":["embedding_weight","text_weight"],"title":"RankingOptionsHybridSearch","description":"Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled."},"ResponseAPIUsage":{"properties":{"input_tokens":{"type":"integer","title":"Input Tokens"},"input_tokens_details":{"anyOf":[{"$ref":"#/components/schemas/InputTokensDetails"},{"type":"null"}]},"output_tokens":{"type":"integer","title":"Output Tokens"},"output_tokens_details":{"anyOf":[{"$ref":"#/components/schemas/OutputTokensDetails"},{"type":"null"}]},"total_tokens":{"type":"integer","title":"Total Tokens"},"cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost"}},"additionalProperties":true,"type":"object","required":["input_tokens","output_tokens","total_tokens"],"title":"ResponseAPIUsage"},"ResponseApplyPatchToolCall":{"properties":{"id":{"type":"string","title":"Id"},"call_id":{"type":"string","title":"Call Id"},"operation":{"anyOf":[{"$ref":"#/components/schemas/OperationCreateFile"},{"$ref":"#/components/schemas/OperationDeleteFile"},{"$ref":"#/components/schemas/OperationUpdateFile"}],"title":"Operation"},"status":{"type":"string","enum":["in_progress","completed"],"title":"Status"},"type":{"type":"string","const":"apply_patch_call","title":"Type"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"additionalProperties":true,"type":"object","required":["id","call_id","operation","status","type"],"title":"ResponseApplyPatchToolCall","description":"A tool call that applies file diffs by creating, deleting, or updating files."},"ResponseApplyPatchToolCallOutput":{"properties":{"id":{"type":"string","title":"Id"},"call_id":{"type":"string","title":"Call Id"},"status":{"type":"string","enum":["completed","failed"],"title":"Status"},"type":{"type":"string","const":"apply_patch_call_output","title":"Type"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"output":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output"}},"additionalProperties":true,"type":"object","required":["id","call_id","status","type"],"title":"ResponseApplyPatchToolCallOutput","description":"The output emitted by an apply patch tool call."},"ResponseCodeInterpreterToolCall":{"properties":{"id":{"type":"string","title":"Id"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"container_id":{"type":"string","title":"Container Id"},"outputs":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/OutputLogs"},{"$ref":"#/components/schemas/OutputImage"}]},"type":"array"},{"type":"null"}],"title":"Outputs"},"status":{"type":"string","enum":["in_progress","completed","incomplete","interpreting","failed"],"title":"Status"},"type":{"type":"string","const":"code_interpreter_call","title":"Type"}},"additionalProperties":true,"type":"object","required":["id","container_id","status","type"],"title":"ResponseCodeInterpreterToolCall","description":"A tool call to run code."},"ResponseCompactionItem":{"properties":{"id":{"type":"string","title":"Id"},"encrypted_content":{"type":"string","title":"Encrypted Content"},"type":{"type":"string","const":"compaction","title":"Type"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"additionalProperties":true,"type":"object","required":["id","encrypted_content","type"],"title":"ResponseCompactionItem","description":"A compaction item generated by the [`v1/responses/compact` API](https://platform.openai.com/docs/api-reference/responses/compact)."},"ResponseComputerToolCall":{"properties":{"id":{"type":"string","title":"Id"},"call_id":{"type":"string","title":"Call Id"},"pending_safety_checks":{"items":{"$ref":"#/components/schemas/PendingSafetyCheck"},"type":"array","title":"Pending Safety Checks"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"type":{"type":"string","const":"computer_call","title":"Type"},"action":{"anyOf":[{"$ref":"#/components/schemas/ActionClick"},{"$ref":"#/components/schemas/ActionDoubleClick"},{"$ref":"#/components/schemas/ActionDrag"},{"$ref":"#/components/schemas/ActionKeypress"},{"$ref":"#/components/schemas/ActionMove"},{"$ref":"#/components/schemas/ActionScreenshot"},{"$ref":"#/components/schemas/ActionScroll"},{"$ref":"#/components/schemas/ActionType"},{"$ref":"#/components/schemas/ActionWait"},{"type":"null"}],"title":"Action"},"actions":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/Click"},{"$ref":"#/components/schemas/DoubleClick"},{"$ref":"#/components/schemas/Drag"},{"$ref":"#/components/schemas/Keypress"},{"$ref":"#/components/schemas/Move"},{"$ref":"#/components/schemas/Screenshot"},{"$ref":"#/components/schemas/Scroll"},{"$ref":"#/components/schemas/Type"},{"$ref":"#/components/schemas/Wait"}]},"type":"array"},{"type":"null"}],"title":"Actions"}},"additionalProperties":true,"type":"object","required":["id","call_id","pending_safety_checks","status","type"],"title":"ResponseComputerToolCall","description":"A tool call to a computer use tool.\n\nSee the\n[computer use guide](https://platform.openai.com/docs/guides/tools-computer-use) for more information."},"ResponseComputerToolCallOutputItem":{"properties":{"id":{"type":"string","title":"Id"},"call_id":{"type":"string","title":"Call Id"},"output":{"$ref":"#/components/schemas/ResponseComputerToolCallOutputScreenshot"},"status":{"type":"string","enum":["completed","incomplete","failed","in_progress"],"title":"Status"},"type":{"type":"string","const":"computer_call_output","title":"Type"},"acknowledged_safety_checks":{"anyOf":[{"items":{"$ref":"#/components/schemas/AcknowledgedSafetyCheck"},"type":"array"},{"type":"null"}],"title":"Acknowledged Safety Checks"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"additionalProperties":true,"type":"object","required":["id","call_id","output","status","type"],"title":"ResponseComputerToolCallOutputItem"},"ResponseComputerToolCallOutputScreenshot":{"properties":{"type":{"type":"string","const":"computer_screenshot","title":"Type"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ResponseComputerToolCallOutputScreenshot","description":"A computer screenshot image used with the computer use tool."},"ResponseContainerReference":{"properties":{"container_id":{"type":"string","title":"Container Id"},"type":{"type":"string","const":"container_reference","title":"Type"}},"additionalProperties":true,"type":"object","required":["container_id","type"],"title":"ResponseContainerReference","description":"Represents a container created with /v1/containers."},"ResponseCustomToolCall":{"properties":{"call_id":{"type":"string","title":"Call Id"},"input":{"type":"string","title":"Input"},"name":{"type":"string","title":"Name"},"type":{"type":"string","const":"custom_tool_call","title":"Type"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Namespace"}},"additionalProperties":true,"type":"object","required":["call_id","input","name","type"],"title":"ResponseCustomToolCall","description":"A call to a custom tool created by the model."},"ResponseCustomToolCallItem":{"properties":{"call_id":{"type":"string","title":"Call Id"},"input":{"type":"string","title":"Input"},"name":{"type":"string","title":"Name"},"type":{"type":"string","const":"custom_tool_call","title":"Type"},"id":{"type":"string","title":"Id"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Namespace"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"additionalProperties":true,"type":"object","required":["call_id","input","name","type","id","status"],"title":"ResponseCustomToolCallItem","description":"A call to a custom tool created by the model."},"ResponseCustomToolCallOutputItem":{"properties":{"call_id":{"type":"string","title":"Call Id"},"output":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseInputText"},{"$ref":"#/components/schemas/ResponseInputImage"},{"$ref":"#/components/schemas/ResponseInputFile"}]},"type":"array"}],"title":"Output"},"type":{"type":"string","const":"custom_tool_call_output","title":"Type"},"id":{"type":"string","title":"Id"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"additionalProperties":true,"type":"object","required":["call_id","output","type","id","status"],"title":"ResponseCustomToolCallOutputItem","description":"The output of a custom tool call from your code, being sent back to the model."},"ResponseFileSearchToolCall":{"properties":{"id":{"type":"string","title":"Id"},"queries":{"items":{"type":"string"},"type":"array","title":"Queries"},"status":{"type":"string","enum":["in_progress","searching","completed","incomplete","failed"],"title":"Status"},"type":{"type":"string","const":"file_search_call","title":"Type"},"results":{"anyOf":[{"items":{"$ref":"#/components/schemas/Result"},"type":"array"},{"type":"null"}],"title":"Results"}},"additionalProperties":true,"type":"object","required":["id","queries","status","type"],"title":"ResponseFileSearchToolCall","description":"The results of a file search tool call.\n\nSee the\n[file search guide](https://platform.openai.com/docs/guides/tools-file-search) for more information."},"ResponseFormatJSONObject":{"properties":{"type":{"type":"string","const":"json_object","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ResponseFormatJSONObject","description":"JSON object response format.\n\nAn older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so."},"ResponseFormatText":{"properties":{"type":{"type":"string","const":"text","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ResponseFormatText","description":"Default response format. Used to generate text responses."},"ResponseFormatTextJSONSchemaConfigParam":{"properties":{"name":{"type":"string","title":"Name"},"schema":{"additionalProperties":true,"type":"object","title":"Schema"},"type":{"type":"string","const":"json_schema","title":"Type"},"description":{"type":"string","title":"Description"},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strict"}},"additionalProperties":true,"type":"object","required":["name","schema","type"],"title":"ResponseFormatTextJSONSchemaConfigParam","description":"JSON Schema response format.\n\nUsed to generate structured JSON responses.\nLearn more about [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)."},"ResponseFunctionShellToolCall":{"properties":{"id":{"type":"string","title":"Id"},"action":{"$ref":"#/components/schemas/Action"},"call_id":{"type":"string","title":"Call Id"},"environment":{"anyOf":[{"$ref":"#/components/schemas/ResponseLocalEnvironment"},{"$ref":"#/components/schemas/ResponseContainerReference"},{"type":"null"}],"title":"Environment"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"type":{"type":"string","const":"shell_call","title":"Type"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"additionalProperties":true,"type":"object","required":["id","action","call_id","status","type"],"title":"ResponseFunctionShellToolCall","description":"A tool call that executes one or more shell commands in a managed environment."},"ResponseFunctionShellToolCallOutput":{"properties":{"id":{"type":"string","title":"Id"},"call_id":{"type":"string","title":"Call Id"},"max_output_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Length"},"output":{"items":{"$ref":"#/components/schemas/Output"},"type":"array","title":"Output"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"type":{"type":"string","const":"shell_call_output","title":"Type"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"additionalProperties":true,"type":"object","required":["id","call_id","output","status","type"],"title":"ResponseFunctionShellToolCallOutput","description":"The output of a shell tool call that was emitted."},"ResponseFunctionToolCall":{"properties":{"arguments":{"type":"string","title":"Arguments"},"call_id":{"type":"string","title":"Call Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","const":"function_call","title":"Type"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Namespace"},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"}},"additionalProperties":true,"type":"object","required":["arguments","call_id","name","type"],"title":"ResponseFunctionToolCall","description":"A tool call to run a function.\n\nSee the\n[function calling guide](https://platform.openai.com/docs/guides/function-calling) for more information."},"ResponseFunctionToolCallItem":{"properties":{"arguments":{"type":"string","title":"Arguments"},"call_id":{"type":"string","title":"Call Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","const":"function_call","title":"Type"},"id":{"type":"string","title":"Id"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Namespace"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"additionalProperties":true,"type":"object","required":["arguments","call_id","name","type","id","status"],"title":"ResponseFunctionToolCallItem","description":"A tool call to run a function.\n\nSee the\n[function calling guide](https://platform.openai.com/docs/guides/function-calling) for more information."},"ResponseFunctionToolCallOutputItem":{"properties":{"id":{"type":"string","title":"Id"},"call_id":{"type":"string","title":"Call Id"},"output":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseInputText"},{"$ref":"#/components/schemas/ResponseInputImage"},{"$ref":"#/components/schemas/ResponseInputFile"}]},"type":"array"}],"title":"Output"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"type":{"type":"string","const":"function_call_output","title":"Type"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"additionalProperties":true,"type":"object","required":["id","call_id","output","status","type"],"title":"ResponseFunctionToolCallOutputItem"},"ResponseFunctionWebSearch":{"properties":{"id":{"type":"string","title":"Id"},"action":{"anyOf":[{"$ref":"#/components/schemas/ActionSearch"},{"$ref":"#/components/schemas/ActionOpenPage"},{"$ref":"#/components/schemas/ActionFind"}],"title":"Action"},"status":{"type":"string","enum":["in_progress","searching","completed","failed"],"title":"Status"},"type":{"type":"string","const":"web_search_call","title":"Type"}},"additionalProperties":true,"type":"object","required":["id","action","status","type"],"title":"ResponseFunctionWebSearch","description":"The results of a web search tool call.\n\nSee the\n[web search guide](https://platform.openai.com/docs/guides/tools-web-search) for more information."},"ResponseInputFile":{"properties":{"type":{"type":"string","const":"input_file","title":"Type"},"detail":{"anyOf":[{"type":"string","enum":["high","low"]},{"type":"null"}],"title":"Detail"},"file_data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Data"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"file_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Url"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ResponseInputFile","description":"A file input to the model."},"ResponseInputImage":{"properties":{"detail":{"type":"string","enum":["low","high","auto","original"],"title":"Detail"},"type":{"type":"string","const":"input_image","title":"Type"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"}},"additionalProperties":true,"type":"object","required":["detail","type"],"title":"ResponseInputImage","description":"An image input to the model.\n\nLearn about [image inputs](https://platform.openai.com/docs/guides/vision)."},"ResponseInputMessageItem":{"properties":{"id":{"type":"string","title":"Id"},"content":{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseInputText"},{"$ref":"#/components/schemas/ResponseInputImage"},{"$ref":"#/components/schemas/ResponseInputFile"}]},"type":"array","title":"Content"},"role":{"type":"string","enum":["user","system","developer"],"title":"Role"},"type":{"type":"string","const":"message","title":"Type"},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"}},"additionalProperties":true,"type":"object","required":["id","content","role","type"],"title":"ResponseInputMessageItem"},"ResponseInputText":{"properties":{"text":{"type":"string","title":"Text"},"type":{"type":"string","const":"input_text","title":"Type"}},"additionalProperties":true,"type":"object","required":["text","type"],"title":"ResponseInputText","description":"A text input to the model."},"ResponseItemList":{"properties":{"data":{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseInputMessageItem"},{"$ref":"#/components/schemas/ResponseOutputMessage"},{"$ref":"#/components/schemas/ResponseFileSearchToolCall"},{"$ref":"#/components/schemas/ResponseComputerToolCall"},{"$ref":"#/components/schemas/ResponseComputerToolCallOutputItem"},{"$ref":"#/components/schemas/ResponseFunctionWebSearch"},{"$ref":"#/components/schemas/ResponseFunctionToolCallItem"},{"$ref":"#/components/schemas/ResponseFunctionToolCallOutputItem"},{"$ref":"#/components/schemas/ResponseToolSearchCall"},{"$ref":"#/components/schemas/ResponseToolSearchOutputItem"},{"$ref":"#/components/schemas/ResponseReasoningItem"},{"$ref":"#/components/schemas/ResponseCompactionItem"},{"$ref":"#/components/schemas/ImageGenerationCall"},{"$ref":"#/components/schemas/ResponseCodeInterpreterToolCall"},{"$ref":"#/components/schemas/LocalShellCall"},{"$ref":"#/components/schemas/LocalShellCallOutput"},{"$ref":"#/components/schemas/ResponseFunctionShellToolCall"},{"$ref":"#/components/schemas/ResponseFunctionShellToolCallOutput"},{"$ref":"#/components/schemas/ResponseApplyPatchToolCall"},{"$ref":"#/components/schemas/ResponseApplyPatchToolCallOutput"},{"$ref":"#/components/schemas/McpListTools"},{"$ref":"#/components/schemas/McpApprovalRequest"},{"$ref":"#/components/schemas/McpApprovalResponse"},{"$ref":"#/components/schemas/McpCall"},{"$ref":"#/components/schemas/ResponseCustomToolCallItem"},{"$ref":"#/components/schemas/ResponseCustomToolCallOutputItem"}]},"type":"array","title":"Data"},"first_id":{"type":"string","title":"First Id"},"has_more":{"type":"boolean","title":"Has More"},"last_id":{"type":"string","title":"Last Id"},"object":{"type":"string","const":"list","title":"Object"}},"additionalProperties":true,"type":"object","required":["data","first_id","has_more","last_id","object"],"title":"ResponseItemList","description":"A list of Response items."},"ResponseLocalEnvironment":{"properties":{"type":{"type":"string","const":"local","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ResponseLocalEnvironment","description":"Represents the use of a local environment to perform shell actions."},"ResponseOutputMessage":{"properties":{"id":{"type":"string","title":"Id"},"content":{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseOutputText"},{"$ref":"#/components/schemas/ResponseOutputRefusal"}]},"type":"array","title":"Content"},"role":{"type":"string","const":"assistant","title":"Role"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"type":{"type":"string","const":"message","title":"Type"},"phase":{"anyOf":[{"type":"string","enum":["commentary","final_answer"]},{"type":"null"}],"title":"Phase"}},"additionalProperties":true,"type":"object","required":["id","content","role","status","type"],"title":"ResponseOutputMessage","description":"An output message from the model."},"ResponseOutputRefusal":{"properties":{"refusal":{"type":"string","title":"Refusal"},"type":{"type":"string","const":"refusal","title":"Type"}},"additionalProperties":true,"type":"object","required":["refusal","type"],"title":"ResponseOutputRefusal","description":"A refusal from the model."},"ResponseOutputText":{"properties":{"annotations":{"items":{"anyOf":[{"$ref":"#/components/schemas/AnnotationFileCitation"},{"$ref":"#/components/schemas/AnnotationURLCitation"},{"$ref":"#/components/schemas/AnnotationContainerFileCitation"},{"$ref":"#/components/schemas/AnnotationFilePath"}]},"type":"array","title":"Annotations"},"text":{"type":"string","title":"Text"},"type":{"type":"string","const":"output_text","title":"Type"},"logprobs":{"anyOf":[{"items":{"$ref":"#/components/schemas/Logprob"},"type":"array"},{"type":"null"}],"title":"Logprobs"}},"additionalProperties":true,"type":"object","required":["annotations","text","type"],"title":"ResponseOutputText","description":"A text output from the model."},"ResponseReasoningItem":{"properties":{"id":{"type":"string","title":"Id"},"summary":{"items":{"$ref":"#/components/schemas/Summary"},"type":"array","title":"Summary"},"type":{"type":"string","const":"reasoning","title":"Type"},"content":{"anyOf":[{"items":{"$ref":"#/components/schemas/Content"},"type":"array"},{"type":"null"}],"title":"Content"},"encrypted_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Content"},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"}},"additionalProperties":true,"type":"object","required":["id","summary","type"],"title":"ResponseReasoningItem","description":"A description of the chain of thought used by a reasoning model while generating\na response. Be sure to include these items in your `input` to the Responses API\nfor subsequent turns of a conversation if you are manually\n[managing context](https://platform.openai.com/docs/guides/conversation-state)."},"ResponseTextConfigParam":{"properties":{"format":{"anyOf":[{"$ref":"#/components/schemas/ResponseFormatText"},{"$ref":"#/components/schemas/ResponseFormatTextJSONSchemaConfigParam"},{"$ref":"#/components/schemas/ResponseFormatJSONObject"}],"title":"Format"},"verbosity":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Verbosity"}},"additionalProperties":true,"type":"object","title":"ResponseTextConfigParam","description":"Configuration options for a text response from the model.\n\nCan be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](https://platform.openai.com/docs/guides/text)\n- [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)"},"ResponseToolSearchCall":{"properties":{"id":{"type":"string","title":"Id"},"arguments":{"title":"Arguments"},"call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"},"execution":{"type":"string","enum":["server","client"],"title":"Execution"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"type":{"type":"string","const":"tool_search_call","title":"Type"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"additionalProperties":true,"type":"object","required":["id","arguments","execution","status","type"],"title":"ResponseToolSearchCall"},"ResponseToolSearchOutputItem":{"properties":{"id":{"type":"string","title":"Id"},"call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"},"execution":{"type":"string","enum":["server","client"],"title":"Execution"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"tools":{"items":{"anyOf":[{"$ref":"#/components/schemas/FunctionTool"},{"$ref":"#/components/schemas/FileSearchTool"},{"$ref":"#/components/schemas/ComputerTool"},{"$ref":"#/components/schemas/ComputerUsePreviewTool"},{"$ref":"#/components/schemas/WebSearchTool"},{"$ref":"#/components/schemas/Mcp"},{"$ref":"#/components/schemas/CodeInterpreter"},{"$ref":"#/components/schemas/ImageGeneration"},{"$ref":"#/components/schemas/LocalShell"},{"$ref":"#/components/schemas/FunctionShellTool"},{"$ref":"#/components/schemas/CustomTool"},{"$ref":"#/components/schemas/NamespaceTool"},{"$ref":"#/components/schemas/ToolSearchTool"},{"$ref":"#/components/schemas/WebSearchPreviewTool"},{"$ref":"#/components/schemas/ApplyPatchTool"}]},"type":"array","title":"Tools"},"type":{"type":"string","const":"tool_search_output","title":"Type"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"additionalProperties":true,"type":"object","required":["id","execution","status","tools","type"],"title":"ResponseToolSearchOutputItem"},"ResponsesAPIResponse":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"type":"integer","title":"Created At"},"error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error"},"incomplete_details":{"anyOf":[{"$ref":"#/components/schemas/IncompleteDetails"},{"type":"null"}]},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"object":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object"},"output":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseOutputMessage"},{"$ref":"#/components/schemas/ResponseFileSearchToolCall"},{"$ref":"#/components/schemas/ResponseFunctionToolCall"},{"$ref":"#/components/schemas/ResponseFunctionToolCallOutputItem"},{"$ref":"#/components/schemas/ResponseFunctionWebSearch"},{"$ref":"#/components/schemas/ResponseComputerToolCall"},{"$ref":"#/components/schemas/ResponseComputerToolCallOutputItem"},{"$ref":"#/components/schemas/ResponseReasoningItem"},{"$ref":"#/components/schemas/ResponseToolSearchCall"},{"$ref":"#/components/schemas/ResponseToolSearchOutputItem"},{"$ref":"#/components/schemas/ResponseCompactionItem"},{"$ref":"#/components/schemas/ImageGenerationCall"},{"$ref":"#/components/schemas/ResponseCodeInterpreterToolCall"},{"$ref":"#/components/schemas/LocalShellCall"},{"$ref":"#/components/schemas/LocalShellCallOutput"},{"$ref":"#/components/schemas/ResponseFunctionShellToolCall"},{"$ref":"#/components/schemas/ResponseFunctionShellToolCallOutput"},{"$ref":"#/components/schemas/ResponseApplyPatchToolCall"},{"$ref":"#/components/schemas/ResponseApplyPatchToolCallOutput"},{"$ref":"#/components/schemas/McpCall"},{"$ref":"#/components/schemas/McpListTools"},{"$ref":"#/components/schemas/McpApprovalRequest"},{"$ref":"#/components/schemas/McpApprovalResponse"},{"$ref":"#/components/schemas/ResponseCustomToolCall"},{"$ref":"#/components/schemas/ResponseCustomToolCallOutputItem"},{"additionalProperties":true,"type":"object"}]},"type":"array"},{"items":{"anyOf":[{"$ref":"#/components/schemas/GenericResponseOutputItem"},{"$ref":"#/components/schemas/OutputCodeInterpreterCall"},{"$ref":"#/components/schemas/OutputFunctionToolCall"},{"$ref":"#/components/schemas/OutputImageGenerationCall"},{"$ref":"#/components/schemas/ResponseFunctionToolCall"},{"$ref":"#/components/schemas/ResponseFunctionWebSearch"},{"$ref":"#/components/schemas/CustomToolCallOutputItem"}]},"type":"array"}],"title":"Output"},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"tool_choice":{"anyOf":[{"type":"string","enum":["none","auto","required"]},{"$ref":"#/components/schemas/ToolChoiceAllowedParam"},{"$ref":"#/components/schemas/ToolChoiceTypesParam"},{"$ref":"#/components/schemas/ToolChoiceFunctionParam"},{"$ref":"#/components/schemas/ToolChoiceMcpParam"},{"$ref":"#/components/schemas/ToolChoiceCustomParam"},{"$ref":"#/components/schemas/ToolChoiceApplyPatchParam"},{"$ref":"#/components/schemas/ToolChoiceShellParam"},{"type":"null"}],"title":"Tool Choice"},"tools":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/FunctionTool"},{"$ref":"#/components/schemas/FileSearchTool"},{"$ref":"#/components/schemas/ComputerTool"},{"$ref":"#/components/schemas/ComputerUsePreviewTool"},{"$ref":"#/components/schemas/WebSearchTool"},{"$ref":"#/components/schemas/Mcp"},{"$ref":"#/components/schemas/CodeInterpreter"},{"$ref":"#/components/schemas/ImageGeneration"},{"$ref":"#/components/schemas/LocalShell"},{"$ref":"#/components/schemas/FunctionShellTool"},{"$ref":"#/components/schemas/CustomTool"},{"$ref":"#/components/schemas/NamespaceTool"},{"$ref":"#/components/schemas/ToolSearchTool"},{"$ref":"#/components/schemas/WebSearchPreviewTool"},{"$ref":"#/components/schemas/ApplyPatchTool"}]},"type":"array"},{"items":{"$ref":"#/components/schemas/ResponseFunctionToolCall"},"type":"array"},{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens"},"previous_response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Response Id"},"reasoning":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Reasoning"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"text":{"anyOf":[{"$ref":"#/components/schemas/ResponseTextConfigParam"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Text"},"truncation":{"anyOf":[{"type":"string","enum":["auto","disabled"]},{"type":"null"}],"title":"Truncation"},"usage":{"anyOf":[{"$ref":"#/components/schemas/ResponseAPIUsage"},{"type":"null"}]},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"},"store":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Store"}},"additionalProperties":true,"type":"object","required":["id","created_at","output"],"title":"ResponsesAPIResponse"},"Result":{"properties":{"attributes":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"type":"object"},{"type":"null"}],"title":"Attributes"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"}},"additionalProperties":true,"type":"object","title":"Result"},"Screenshot":{"properties":{"type":{"type":"string","const":"screenshot","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"Screenshot","description":"A screenshot action."},"Scroll":{"properties":{"scroll_x":{"type":"integer","title":"Scroll X"},"scroll_y":{"type":"integer","title":"Scroll Y"},"type":{"type":"string","const":"scroll","title":"Type"},"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"},"keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keys"}},"additionalProperties":true,"type":"object","required":["scroll_x","scroll_y","type","x","y"],"title":"Scroll","description":"A scroll action."},"SkillReference":{"properties":{"skill_id":{"type":"string","title":"Skill Id"},"type":{"type":"string","const":"skill_reference","title":"Type"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"}},"additionalProperties":true,"type":"object","required":["skill_id","type"],"title":"SkillReference"},"Summary":{"properties":{"text":{"type":"string","title":"Text"},"type":{"type":"string","const":"summary_text","title":"Type"}},"additionalProperties":true,"type":"object","required":["text","type"],"title":"Summary","description":"A summary text from the model."},"Text":{"properties":{"type":{"type":"string","const":"text","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"Text","description":"Unconstrained free-form text."},"ToolChoiceAllowedParam":{"properties":{"mode":{"type":"string","enum":["auto","required"],"title":"Mode"},"tools":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Tools"},"type":{"type":"string","const":"allowed_tools","title":"Type"}},"additionalProperties":true,"type":"object","required":["mode","tools","type"],"title":"ToolChoiceAllowedParam","description":"Constrains the tools available to the model to a pre-defined set."},"ToolChoiceApplyPatchParam":{"properties":{"type":{"type":"string","const":"apply_patch","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ToolChoiceApplyPatchParam","description":"Forces the model to call the apply_patch tool when executing a tool call."},"ToolChoiceCustomParam":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","const":"custom","title":"Type"}},"additionalProperties":true,"type":"object","required":["name","type"],"title":"ToolChoiceCustomParam","description":"Use this option to force the model to call a specific custom tool."},"ToolChoiceFunctionParam":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","const":"function","title":"Type"}},"additionalProperties":true,"type":"object","required":["name","type"],"title":"ToolChoiceFunctionParam","description":"Use this option to force the model to call a specific function."},"ToolChoiceMcpParam":{"properties":{"server_label":{"type":"string","title":"Server Label"},"type":{"type":"string","const":"mcp","title":"Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"additionalProperties":true,"type":"object","required":["server_label","type"],"title":"ToolChoiceMcpParam","description":"Use this option to force the model to call a specific tool on a remote MCP server."},"ToolChoiceShellParam":{"properties":{"type":{"type":"string","const":"shell","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ToolChoiceShellParam","description":"Forces the model to call the shell tool when a tool call is required."},"ToolChoiceTypesParam":{"properties":{"type":{"type":"string","enum":["file_search","web_search_preview","computer","computer_use_preview","computer_use","web_search_preview_2025_03_11","image_generation","code_interpreter"],"title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ToolChoiceTypesParam","description":"Indicates that the model should use a built-in tool to generate a response.\n[Learn more about built-in tools](https://platform.openai.com/docs/guides/tools)."},"ToolFunction":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","const":"function","title":"Type"},"defer_loading":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Defer Loading"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"parameters":{"anyOf":[{},{"type":"null"}],"title":"Parameters"},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strict"}},"additionalProperties":true,"type":"object","required":["name","type"],"title":"ToolFunction"},"ToolSearchTool":{"properties":{"type":{"type":"string","const":"tool_search","title":"Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"execution":{"anyOf":[{"type":"string","enum":["server","client"]},{"type":"null"}],"title":"Execution"},"parameters":{"anyOf":[{},{"type":"null"}],"title":"Parameters"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ToolSearchTool","description":"Hosted or BYOT tool search configuration for deferred tools."},"Type":{"properties":{"text":{"type":"string","title":"Text"},"type":{"type":"string","const":"type","title":"Type"}},"additionalProperties":true,"type":"object","required":["text","type"],"title":"Type","description":"An action to type in text."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"Wait":{"properties":{"type":{"type":"string","const":"wait","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"Wait","description":"A wait action."},"WebSearchPreviewTool":{"properties":{"type":{"type":"string","enum":["web_search_preview","web_search_preview_2025_03_11"],"title":"Type"},"search_content_types":{"anyOf":[{"items":{"type":"string","enum":["text","image"]},"type":"array"},{"type":"null"}],"title":"Search Content Types"},"search_context_size":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Search Context Size"},"user_location":{"anyOf":[{"$ref":"#/components/schemas/openai__types__responses__web_search_preview_tool__UserLocation"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["type"],"title":"WebSearchPreviewTool","description":"This tool searches the web for relevant results to use in a response.\n\nLearn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search)."},"WebSearchTool":{"properties":{"type":{"type":"string","enum":["web_search","web_search_2025_08_26"],"title":"Type"},"filters":{"anyOf":[{"$ref":"#/components/schemas/Filters"},{"type":"null"}]},"search_context_size":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Search Context Size"},"user_location":{"anyOf":[{"$ref":"#/components/schemas/openai__types__responses__web_search_tool__UserLocation"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["type"],"title":"WebSearchTool","description":"Search the Internet for sources related to the prompt.\n\nLearn more about the\n[web search tool](https://platform.openai.com/docs/guides/tools-web-search)."},"openai__types__responses__web_search_preview_tool__UserLocation":{"properties":{"type":{"type":"string","const":"approximate","title":"Type"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"}},"additionalProperties":true,"type":"object","required":["type"],"title":"UserLocation","description":"The user's location."},"openai__types__responses__web_search_tool__UserLocation":{"properties":{"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"type":{"anyOf":[{"type":"string","const":"approximate"},{"type":"null"}],"title":"Type"}},"additionalProperties":true,"type":"object","title":"UserLocation","description":"The approximate location of the user."},"ChatCompletionAssistantMessage":{"properties":{"role":{"const":"assistant","title":"Role","type":"string"},"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionTextObject"},{"$ref":"#/components/schemas/ChatCompletionThinkingBlock"},{"$ref":"#/components/schemas/ChatCompletionRedactedThinkingBlock"},{"$ref":"#/components/schemas/ChatCompletionImageObject"}]},"type":"array"},{"type":"null"}],"title":"Content"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"tool_calls":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChatCompletionAssistantToolCall"},"type":"array"},{"type":"null"}],"title":"Tool Calls"},"function_call":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionToolCallFunctionChunk"},{"type":"null"}]},"reasoning_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Content"},"cache_control":{"$ref":"#/components/schemas/ChatCompletionCachedContent"},"thinking_blocks":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionThinkingBlock"},{"$ref":"#/components/schemas/ChatCompletionRedactedThinkingBlock"}]},"type":"array"},{"type":"null"}],"title":"Thinking Blocks"},"reasoning_items":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChatCompletionReasoningItem"},"type":"array"},{"type":"null"}],"title":"Reasoning Items"}},"required":["role"],"title":"ChatCompletionAssistantMessage","type":"object"},"ChatCompletionAssistantToolCall":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"type":{"const":"function","title":"Type","type":"string"},"function":{"$ref":"#/components/schemas/ChatCompletionToolCallFunctionChunk"}},"required":["id","type","function"],"title":"ChatCompletionAssistantToolCall","type":"object"},"ChatCompletionAudioObject":{"properties":{"input_audio":{"$ref":"#/components/schemas/InputAudio"},"type":{"const":"input_audio","title":"Type","type":"string"}},"required":["input_audio","type"],"title":"ChatCompletionAudioObject","type":"object"},"ChatCompletionCachedContent":{"properties":{"type":{"const":"ephemeral","title":"Type","type":"string"},"ttl":{"enum":["5m","1h"],"title":"Ttl","type":"string"}},"required":["type"],"title":"ChatCompletionCachedContent","type":"object"},"ChatCompletionDeveloperMessage":{"properties":{"role":{"const":"developer","title":"Role","type":"string"},"content":{"anyOf":[{"type":"string"},{"items":{},"type":"array"}],"title":"Content"},"name":{"title":"Name","type":"string"},"cache_control":{"$ref":"#/components/schemas/ChatCompletionCachedContent"}},"required":["role","content"],"title":"ChatCompletionDeveloperMessage","type":"object"},"ChatCompletionDocumentObject":{"properties":{"type":{"const":"document","title":"Type","type":"string"},"source":{"$ref":"#/components/schemas/DocumentObject"},"title":{"title":"Title","type":"string"},"context":{"title":"Context","type":"string"},"citations":{"anyOf":[{"$ref":"#/components/schemas/CitationsObject"},{"type":"null"}]}},"required":["type","source","title","context","citations"],"title":"ChatCompletionDocumentObject","type":"object"},"ChatCompletionFileObject":{"properties":{"type":{"const":"file","title":"Type","type":"string"},"file":{"$ref":"#/components/schemas/ChatCompletionFileObjectFile"}},"required":["type","file"],"title":"ChatCompletionFileObject","type":"object"},"ChatCompletionFileObjectFile":{"properties":{"file_data":{"title":"File Data","type":"string"},"file_id":{"title":"File Id","type":"string"},"filename":{"title":"Filename","type":"string"},"format":{"title":"Format","type":"string"},"detail":{"title":"Detail","type":"string"},"video_metadata":{"additionalProperties":true,"title":"Video Metadata","type":"object"}},"title":"ChatCompletionFileObjectFile","type":"object"},"ChatCompletionFunctionMessage":{"properties":{"role":{"const":"function","title":"Role","type":"string"},"content":{"anyOf":[{"type":"string"},{"items":{"$ref":"#/components/schemas/ChatCompletionTextObject"},"type":"array"},{"type":"null"}],"title":"Content"},"name":{"title":"Name","type":"string"},"tool_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Call Id"}},"required":["role","content","name","tool_call_id"],"title":"ChatCompletionFunctionMessage","type":"object"},"ChatCompletionImageObject":{"properties":{"type":{"const":"image_url","title":"Type","type":"string"},"image_url":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/ChatCompletionImageUrlObject"}],"title":"Image Url"}},"required":["type","image_url"],"title":"ChatCompletionImageObject","type":"object"},"ChatCompletionImageUrlObject":{"properties":{"url":{"title":"Url","type":"string"},"detail":{"title":"Detail","type":"string"},"format":{"title":"Format","type":"string"}},"required":["url"],"title":"ChatCompletionImageUrlObject","type":"object"},"ChatCompletionReasoningItem":{"description":"Represents an OpenAI Responses API reasoning item for round-tripping in conversation history.","properties":{"type":{"const":"reasoning","title":"Type","type":"string"},"id":{"title":"Id","type":"string"},"encrypted_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Content"},"summary":{"items":{"$ref":"#/components/schemas/ChatCompletionReasoningSummaryTextBlock"},"title":"Summary","type":"array"}},"required":["type"],"title":"ChatCompletionReasoningItem","type":"object"},"ChatCompletionReasoningSummaryTextBlock":{"properties":{"type":{"const":"summary_text","title":"Type","type":"string"},"text":{"title":"Text","type":"string"}},"required":["type"],"title":"ChatCompletionReasoningSummaryTextBlock","type":"object"},"ChatCompletionRedactedThinkingBlock":{"properties":{"type":{"const":"redacted_thinking","title":"Type","type":"string"},"data":{"title":"Data","type":"string"},"cache_control":{"anyOf":[{"additionalProperties":true,"type":"object"},{"$ref":"#/components/schemas/ChatCompletionCachedContent"},{"type":"null"}],"title":"Cache Control"}},"required":["type"],"title":"ChatCompletionRedactedThinkingBlock","type":"object"},"ChatCompletionSystemMessage":{"properties":{"role":{"const":"system","title":"Role","type":"string"},"content":{"anyOf":[{"type":"string"},{"items":{},"type":"array"}],"title":"Content"},"name":{"title":"Name","type":"string"},"cache_control":{"$ref":"#/components/schemas/ChatCompletionCachedContent"}},"required":["role","content"],"title":"ChatCompletionSystemMessage","type":"object"},"ChatCompletionTextObject":{"properties":{"type":{"const":"text","title":"Type","type":"string"},"text":{"title":"Text","type":"string"},"cache_control":{"$ref":"#/components/schemas/ChatCompletionCachedContent"}},"required":["type","text"],"title":"ChatCompletionTextObject","type":"object"},"ChatCompletionThinkingBlock":{"properties":{"type":{"const":"thinking","title":"Type","type":"string"},"thinking":{"title":"Thinking","type":"string"},"signature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature"},"cache_control":{"anyOf":[{"additionalProperties":true,"type":"object"},{"$ref":"#/components/schemas/ChatCompletionCachedContent"},{"type":"null"}],"title":"Cache Control"}},"required":["type"],"title":"ChatCompletionThinkingBlock","type":"object"},"ChatCompletionToolCallFunctionChunk":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"arguments":{"title":"Arguments","type":"string"},"provider_specific_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Provider Specific Fields"}},"title":"ChatCompletionToolCallFunctionChunk","type":"object"},"ChatCompletionToolMessage":{"properties":{"role":{"const":"tool","title":"Role","type":"string"},"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionTextObject"},{"$ref":"#/components/schemas/ChatCompletionImageObject"},{"$ref":"#/components/schemas/ChatCompletionToolReferenceObject"}]},"type":"array"}],"title":"Content"},"tool_call_id":{"title":"Tool Call Id","type":"string"}},"required":["role","content","tool_call_id"],"title":"ChatCompletionToolMessage","type":"object"},"ChatCompletionToolReferenceObject":{"description":"Anthropic tool-search result block, carried through untouched so it survives a round trip.","properties":{"type":{"const":"tool_reference","title":"Type","type":"string"},"tool_name":{"title":"Tool Name","type":"string"}},"required":["type","tool_name"],"title":"ChatCompletionToolReferenceObject","type":"object"},"ChatCompletionUserMessage":{"properties":{"role":{"const":"user","title":"Role","type":"string"},"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionTextObject"},{"$ref":"#/components/schemas/ChatCompletionImageObject"},{"$ref":"#/components/schemas/ChatCompletionAudioObject"},{"$ref":"#/components/schemas/ChatCompletionDocumentObject"},{"$ref":"#/components/schemas/ChatCompletionVideoObject"},{"$ref":"#/components/schemas/ChatCompletionFileObject"}]},"type":"array"}],"title":"Content"},"cache_control":{"$ref":"#/components/schemas/ChatCompletionCachedContent"}},"required":["role","content"],"title":"ChatCompletionUserMessage","type":"object"},"ChatCompletionVideoObject":{"properties":{"type":{"const":"video_url","title":"Type","type":"string"},"video_url":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/ChatCompletionVideoUrlObject"}],"title":"Video Url"}},"required":["type","video_url"],"title":"ChatCompletionVideoObject","type":"object"},"ChatCompletionVideoUrlObject":{"properties":{"url":{"title":"Url","type":"string"},"detail":{"title":"Detail","type":"string"}},"required":["url"],"title":"ChatCompletionVideoUrlObject","type":"object"},"CitationsObject":{"properties":{"enabled":{"title":"Enabled","type":"boolean"}},"required":["enabled"],"title":"CitationsObject","type":"object"},"DocumentObject":{"properties":{"type":{"const":"text","title":"Type","type":"string"},"media_type":{"title":"Media Type","type":"string"},"data":{"title":"Data","type":"string"}},"required":["type","media_type","data"],"title":"DocumentObject","type":"object"},"InputAudio":{"properties":{"data":{"title":"Data","type":"string"},"format":{"enum":["wav","mp3"],"title":"Format","type":"string"}},"required":["data","format"],"title":"InputAudio","type":"object"},"ProxyChatCompletionRequest":{"description":"Pydantic model for chat completion requests that includes both OpenAI standard fields\nand LiteLLM-specific parameters. This replaces the previous TypedDict version.","properties":{"model":{"title":"Model","type":"string"},"messages":{"items":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionUserMessage"},{"$ref":"#/components/schemas/ChatCompletionAssistantMessage"},{"$ref":"#/components/schemas/ChatCompletionToolMessage"},{"$ref":"#/components/schemas/ChatCompletionSystemMessage"},{"$ref":"#/components/schemas/ChatCompletionFunctionMessage"},{"$ref":"#/components/schemas/ChatCompletionDeveloperMessage"}]},"title":"Messages","type":"array"},"frequency_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Frequency Penalty"},"logit_bias":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"default":null,"title":"Logit Bias"},"logprobs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Logprobs"},"top_logprobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Top Logprobs"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Max Tokens"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"N"},"presence_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Presence Penalty"},"response_format":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Response Format"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Seed"},"service_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Service Tier"},"stop":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Stop"},"stream_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Stream Options"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Temperature"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Top P"},"tools":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Tools"},"tool_choice":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Tool Choice"},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Parallel Tool Calls"},"function_call":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Function Call"},"functions":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Functions"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"User"},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Stream"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Metadata"},"guardrails":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Guardrails"},"caching":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Caching"},"num_retries":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Num Retries"},"context_window_fallback_dict":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Context Window Fallback Dict"},"fallbacks":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fallbacks"}},"required":["model","messages"],"title":"ProxyChatCompletionRequest","type":"object"},"EmbeddingRequest":{"additionalProperties":true,"properties":{"model":{"title":"Model","type":"string"},"input":{"default":[],"items":{"type":"string"},"title":"Input","type":"array"},"timeout":{"default":600,"title":"Timeout","type":"integer"},"api_base":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Api Base"},"api_version":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Api Version"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Api Key"},"api_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Api Type"},"caching":{"default":false,"title":"Caching","type":"boolean"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"User"},"custom_llm_provider":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Custom Llm Provider"},"litellm_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Litellm Call Id"},"litellm_logging_obj":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Litellm Logging Obj"},"logger_fn":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Logger Fn"}},"required":["model"],"title":"EmbeddingRequest","type":"object"},"ResponsesAPIRequestParams_ActionDoubleClick":{"description":"A double click action.","properties":{"keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keys"},"type":{"const":"double_click","title":"Type","type":"string"},"x":{"title":"X","type":"integer"},"y":{"title":"Y","type":"integer"}},"required":["keys","type","x","y"],"title":"ActionDoubleClick","type":"object"},"ApplyPatchCall":{"description":"A tool call representing a request to create, delete, or update files using diff patches.","properties":{"call_id":{"title":"Call Id","type":"string"},"operation":{"anyOf":[{"$ref":"#/components/schemas/ApplyPatchCallOperationCreateFile"},{"$ref":"#/components/schemas/ApplyPatchCallOperationDeleteFile"},{"$ref":"#/components/schemas/ApplyPatchCallOperationUpdateFile"}],"title":"Operation"},"status":{"enum":["in_progress","completed"],"title":"Status","type":"string"},"type":{"const":"apply_patch_call","title":"Type","type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"required":["call_id","operation","status","type"],"title":"ApplyPatchCall","type":"object"},"ApplyPatchCallOperationCreateFile":{"description":"Instruction for creating a new file via the apply_patch tool.","properties":{"diff":{"title":"Diff","type":"string"},"path":{"title":"Path","type":"string"},"type":{"const":"create_file","title":"Type","type":"string"}},"required":["diff","path","type"],"title":"ApplyPatchCallOperationCreateFile","type":"object"},"ApplyPatchCallOperationDeleteFile":{"description":"Instruction for deleting an existing file via the apply_patch tool.","properties":{"path":{"title":"Path","type":"string"},"type":{"const":"delete_file","title":"Type","type":"string"}},"required":["path","type"],"title":"ApplyPatchCallOperationDeleteFile","type":"object"},"ApplyPatchCallOperationUpdateFile":{"description":"Instruction for updating an existing file via the apply_patch tool.","properties":{"diff":{"title":"Diff","type":"string"},"path":{"title":"Path","type":"string"},"type":{"const":"update_file","title":"Type","type":"string"}},"required":["diff","path","type"],"title":"ApplyPatchCallOperationUpdateFile","type":"object"},"ApplyPatchCallOutput":{"description":"The streamed output emitted by an apply patch tool call.","properties":{"call_id":{"title":"Call Id","type":"string"},"status":{"enum":["completed","failed"],"title":"Status","type":"string"},"type":{"const":"apply_patch_call_output","title":"Type","type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"output":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output"}},"required":["call_id","status","type"],"title":"ApplyPatchCallOutput","type":"object"},"ApplyPatchToolParam":{"description":"Allows the assistant to create, delete, or update files using unified diffs.","properties":{"type":{"const":"apply_patch","title":"Type","type":"string"}},"required":["type"],"title":"ApplyPatchToolParam","type":"object"},"ComputerCallOutput":{"description":"The output of a computer tool call.","properties":{"call_id":{"title":"Call Id","type":"string"},"output":{"$ref":"#/components/schemas/ResponseComputerToolCallOutputScreenshotParam"},"type":{"const":"computer_call_output","title":"Type","type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"acknowledged_safety_checks":{"anyOf":[{"items":{"$ref":"#/components/schemas/ComputerCallOutputAcknowledgedSafetyCheck"},"type":"array"},{"type":"null"}],"title":"Acknowledged Safety Checks"},"status":{"anyOf":[{"enum":["in_progress","completed","incomplete"],"type":"string"},{"type":"null"}],"title":"Status"}},"required":["call_id","output","type"],"title":"ComputerCallOutput","type":"object"},"ComputerCallOutputAcknowledgedSafetyCheck":{"description":"A pending safety check for the computer call.","properties":{"id":{"title":"Id","type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"required":["id"],"title":"ComputerCallOutputAcknowledgedSafetyCheck","type":"object"},"ComputerUsePreviewToolParam":{"description":"A tool that controls a virtual computer.\n\nLearn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).","properties":{"display_height":{"title":"Display Height","type":"integer"},"display_width":{"title":"Display Width","type":"integer"},"environment":{"enum":["windows","mac","linux","ubuntu","browser"],"title":"Environment","type":"string"},"type":{"const":"computer_use_preview","title":"Type","type":"string"}},"required":["display_height","display_width","environment","type"],"title":"ComputerUsePreviewToolParam","type":"object"},"ContainerAutoParam":{"properties":{"type":{"const":"container_auto","title":"Type","type":"string"},"file_ids":{"items":{"type":"string"},"title":"File Ids","type":"array"},"memory_limit":{"anyOf":[{"enum":["1g","4g","16g","64g"],"type":"string"},{"type":"null"}],"title":"Memory Limit"},"network_policy":{"anyOf":[{"$ref":"#/components/schemas/ContainerNetworkPolicyDisabledParam"},{"$ref":"#/components/schemas/ContainerNetworkPolicyAllowlistParam"}],"title":"Network Policy"},"skills":{"items":{"anyOf":[{"$ref":"#/components/schemas/SkillReferenceParam"},{"$ref":"#/components/schemas/InlineSkillParam"}]},"title":"Skills","type":"array"}},"required":["type"],"title":"ContainerAutoParam","type":"object"},"ContainerNetworkPolicyAllowlistParam":{"properties":{"allowed_domains":{"items":{"type":"string"},"title":"Allowed Domains","type":"array"},"type":{"const":"allowlist","title":"Type","type":"string"},"domain_secrets":{"items":{"$ref":"#/components/schemas/ContainerNetworkPolicyDomainSecretParam"},"title":"Domain Secrets","type":"array"}},"required":["allowed_domains","type"],"title":"ContainerNetworkPolicyAllowlistParam","type":"object"},"ContainerNetworkPolicyDisabledParam":{"properties":{"type":{"const":"disabled","title":"Type","type":"string"}},"required":["type"],"title":"ContainerNetworkPolicyDisabledParam","type":"object"},"ContainerNetworkPolicyDomainSecretParam":{"properties":{"domain":{"title":"Domain","type":"string"},"name":{"title":"Name","type":"string"},"value":{"title":"Value","type":"string"}},"required":["domain","name","value"],"title":"ContainerNetworkPolicyDomainSecretParam","type":"object"},"ContainerReferenceParam":{"properties":{"container_id":{"title":"Container Id","type":"string"},"type":{"const":"container_reference","title":"Type","type":"string"}},"required":["container_id","type"],"title":"ContainerReferenceParam","type":"object"},"ContextManagementEntry":{"description":"Context management configuration entry for a request.\nSee https://developers.openai.com/api/docs/guides/compaction.","properties":{"type":{"title":"Type","type":"string"},"compact_threshold":{"title":"Compact Threshold","type":"integer"}},"title":"ContextManagementEntry","type":"object"},"CustomToolParam":{"description":"A custom tool that processes input using a specified format.\n\nLearn more about   [custom tools](https://platform.openai.com/docs/guides/function-calling#custom-tools)","properties":{"name":{"title":"Name","type":"string"},"type":{"const":"custom","title":"Type","type":"string"},"defer_loading":{"title":"Defer Loading","type":"boolean"},"description":{"title":"Description","type":"string"},"format":{"anyOf":[{"$ref":"#/components/schemas/Text"},{"$ref":"#/components/schemas/Grammar"}],"title":"Format"}},"required":["name","type"],"title":"CustomToolParam","type":"object"},"ResponsesAPIRequestParams_DoubleClick":{"description":"A double click action.","properties":{"keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keys"},"type":{"const":"double_click","title":"Type","type":"string"},"x":{"title":"X","type":"integer"},"y":{"title":"Y","type":"integer"}},"required":["keys","type","x","y"],"title":"DoubleClick","type":"object"},"EasyInputMessageParam":{"description":"A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role. Messages with the\n`assistant` role are presumed to have been generated by the model in previous\ninteractions.","properties":{"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseInputTextParam"},{"$ref":"#/components/schemas/ResponseInputImageParam"},{"$ref":"#/components/schemas/ResponseInputFileParam"}]},"type":"array"}],"title":"Content"},"role":{"enum":["user","assistant","system","developer"],"title":"Role","type":"string"},"phase":{"anyOf":[{"enum":["commentary","final_answer"],"type":"string"},{"type":"null"}],"title":"Phase"},"type":{"const":"message","title":"Type","type":"string"}},"required":["content","role"],"title":"EasyInputMessageParam","type":"object"},"FileSearchToolParam":{"description":"A tool that searches for relevant content from uploaded files.\n\nLearn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).","properties":{"type":{"const":"file_search","title":"Type","type":"string"},"vector_store_ids":{"items":{"type":"string"},"title":"Vector Store Ids","type":"array"},"filters":{"anyOf":[{"$ref":"#/components/schemas/ComparisonFilter"},{"$ref":"#/components/schemas/CompoundFilter"},{"type":"null"}],"title":"Filters"},"max_num_results":{"title":"Max Num Results","type":"integer"},"ranking_options":{"$ref":"#/components/schemas/RankingOptions"}},"required":["type","vector_store_ids"],"title":"FileSearchToolParam","type":"object"},"FunctionCallOutput":{"description":"The output of a function tool call.","properties":{"call_id":{"title":"Call Id","type":"string"},"output":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseInputTextContentParam"},{"$ref":"#/components/schemas/ResponseInputImageContentParam"},{"$ref":"#/components/schemas/ResponseInputFileContentParam"}]},"type":"array"}],"title":"Output"},"type":{"const":"function_call_output","title":"Type","type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"status":{"anyOf":[{"enum":["in_progress","completed","incomplete"],"type":"string"},{"type":"null"}],"title":"Status"}},"required":["call_id","output","type"],"title":"FunctionCallOutput","type":"object"},"FunctionShellToolParam":{"description":"A tool that allows the model to execute shell commands.","properties":{"type":{"const":"shell","title":"Type","type":"string"},"environment":{"anyOf":[{"$ref":"#/components/schemas/ContainerAutoParam"},{"$ref":"#/components/schemas/LocalEnvironmentParam"},{"$ref":"#/components/schemas/ContainerReferenceParam"},{"type":"null"}],"title":"Environment"}},"required":["type"],"title":"FunctionShellToolParam","type":"object"},"FunctionToolParam":{"description":"Defines a function in your own code the model can choose to call.\n\nLearn more about [function calling](https://platform.openai.com/docs/guides/function-calling).","properties":{"name":{"title":"Name","type":"string"},"parameters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parameters"},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strict"},"type":{"const":"function","title":"Type","type":"string"},"defer_loading":{"title":"Defer Loading","type":"boolean"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"required":["name","parameters","strict","type"],"title":"FunctionToolParam","type":"object"},"ResponsesAPIRequestParams_ImageGenerationCall":{"description":"An image generation request made by the model.","properties":{"id":{"title":"Id","type":"string"},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result"},"status":{"enum":["in_progress","completed","generating","failed"],"title":"Status","type":"string"},"type":{"const":"image_generation_call","title":"Type","type":"string"}},"required":["id","result","status","type"],"title":"ImageGenerationCall","type":"object"},"InlineSkillParam":{"properties":{"description":{"title":"Description","type":"string"},"name":{"title":"Name","type":"string"},"source":{"$ref":"#/components/schemas/InlineSkillSourceParam"},"type":{"const":"inline","title":"Type","type":"string"}},"required":["description","name","source","type"],"title":"InlineSkillParam","type":"object"},"InlineSkillSourceParam":{"description":"Inline skill payload","properties":{"data":{"title":"Data","type":"string"},"media_type":{"const":"application/zip","title":"Media Type","type":"string"},"type":{"const":"base64","title":"Type","type":"string"}},"required":["data","media_type","type"],"title":"InlineSkillSourceParam","type":"object"},"ItemReference":{"description":"An internal identifier for an item to reference.","properties":{"id":{"title":"Id","type":"string"},"type":{"anyOf":[{"const":"item_reference","type":"string"},{"type":"null"}],"title":"Type"}},"required":["id"],"title":"ItemReference","type":"object"},"LocalEnvironmentParam":{"properties":{"type":{"const":"local","title":"Type","type":"string"},"skills":{"items":{"$ref":"#/components/schemas/LocalSkillParam"},"title":"Skills","type":"array"}},"required":["type"],"title":"LocalEnvironmentParam","type":"object"},"LocalSkillParam":{"properties":{"description":{"title":"Description","type":"string"},"name":{"title":"Name","type":"string"},"path":{"title":"Path","type":"string"}},"required":["description","name","path"],"title":"LocalSkillParam","type":"object"},"ResponsesAPIRequestParams_McpApprovalResponse":{"description":"A response to an MCP approval request.","properties":{"approval_request_id":{"title":"Approval Request Id","type":"string"},"approve":{"title":"Approve","type":"boolean"},"type":{"const":"mcp_approval_response","title":"Type","type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"required":["approval_request_id","approve","type"],"title":"McpApprovalResponse","type":"object"},"Message":{"description":"A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role.","properties":{"content":{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseInputTextParam"},{"$ref":"#/components/schemas/ResponseInputImageParam"},{"$ref":"#/components/schemas/ResponseInputFileParam"}]},"title":"Content","type":"array"},"role":{"enum":["user","system","developer"],"title":"Role","type":"string"},"status":{"enum":["in_progress","completed","incomplete"],"title":"Status","type":"string"},"type":{"const":"message","title":"Type","type":"string"}},"required":["content","role"],"title":"Message","type":"object"},"NamespaceToolParam":{"description":"Groups function/custom tools under a shared namespace.","properties":{"description":{"title":"Description","type":"string"},"name":{"title":"Name","type":"string"},"tools":{"items":{"anyOf":[{"$ref":"#/components/schemas/ToolFunction"},{"$ref":"#/components/schemas/CustomToolParam"}]},"title":"Tools","type":"array"},"type":{"const":"namespace","title":"Type","type":"string"}},"required":["description","name","tools","type"],"title":"NamespaceToolParam","type":"object"},"OutcomeExit":{"description":"Indicates that the shell commands finished and returned an exit code.","properties":{"exit_code":{"title":"Exit Code","type":"integer"},"type":{"const":"exit","title":"Type","type":"string"}},"required":["exit_code","type"],"title":"OutcomeExit","type":"object"},"OutcomeTimeout":{"description":"Indicates that the shell call exceeded its configured time limit.","properties":{"type":{"const":"timeout","title":"Type","type":"string"}},"required":["type"],"title":"OutcomeTimeout","type":"object"},"PromptCacheOptions":{"properties":{"mode":{"enum":["implicit","explicit"],"title":"Mode","type":"string"},"ttl":{"const":"30m","title":"Ttl","type":"string"}},"title":"PromptCacheOptions","type":"object"},"PromptObject":{"description":"Reference to a stored prompt template.","properties":{"id":{"title":"Id","type":"string"},"variables":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Variables"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"}},"required":["id"],"title":"PromptObject","type":"object"},"Reasoning":{"description":"**gpt-5 and o-series models only**\n\nConfiguration options for\n[reasoning models](https://platform.openai.com/docs/guides/reasoning).","properties":{"effort":{"anyOf":[{"enum":["none","minimal","low","medium","high","xhigh"],"type":"string"},{"type":"null"}],"title":"Effort"},"generate_summary":{"anyOf":[{"enum":["auto","concise","detailed"],"type":"string"},{"type":"null"}],"title":"Generate Summary"},"summary":{"anyOf":[{"enum":["auto","concise","detailed"],"type":"string"},{"type":"null"}],"title":"Summary"}},"title":"Reasoning","type":"object"},"ResponseCodeInterpreterToolCallParam":{"description":"A tool call to run code.","properties":{"id":{"title":"Id","type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"container_id":{"title":"Container Id","type":"string"},"outputs":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/OutputLogs"},{"$ref":"#/components/schemas/OutputImage"}]},"type":"array"},{"type":"null"}],"title":"Outputs"},"status":{"enum":["in_progress","completed","incomplete","interpreting","failed"],"title":"Status","type":"string"},"type":{"const":"code_interpreter_call","title":"Type","type":"string"}},"required":["id","code","container_id","outputs","status","type"],"title":"ResponseCodeInterpreterToolCallParam","type":"object"},"ResponseCompactionItemParamParam":{"description":"A compaction item generated by the [`v1/responses/compact` API](https://platform.openai.com/docs/api-reference/responses/compact).","properties":{"encrypted_content":{"title":"Encrypted Content","type":"string"},"type":{"const":"compaction","title":"Type","type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"required":["encrypted_content","type"],"title":"ResponseCompactionItemParamParam","type":"object"},"ResponseComputerToolCallOutputScreenshotParam":{"description":"A computer screenshot image used with the computer use tool.","properties":{"type":{"const":"computer_screenshot","title":"Type","type":"string"},"file_id":{"title":"File Id","type":"string"},"image_url":{"title":"Image Url","type":"string"}},"required":["type"],"title":"ResponseComputerToolCallOutputScreenshotParam","type":"object"},"ResponseComputerToolCallParam":{"description":"A tool call to a computer use tool.\n\nSee the\n[computer use guide](https://platform.openai.com/docs/guides/tools-computer-use) for more information.","properties":{"id":{"title":"Id","type":"string"},"call_id":{"title":"Call Id","type":"string"},"pending_safety_checks":{"items":{"$ref":"#/components/schemas/PendingSafetyCheck"},"title":"Pending Safety Checks","type":"array"},"status":{"enum":["in_progress","completed","incomplete"],"title":"Status","type":"string"},"type":{"const":"computer_call","title":"Type","type":"string"},"action":{"anyOf":[{"$ref":"#/components/schemas/ActionClick"},{"$ref":"#/components/schemas/ResponsesAPIRequestParams_ActionDoubleClick"},{"$ref":"#/components/schemas/ActionDrag"},{"$ref":"#/components/schemas/ActionKeypress"},{"$ref":"#/components/schemas/ActionMove"},{"$ref":"#/components/schemas/ActionScreenshot"},{"$ref":"#/components/schemas/ActionScroll"},{"$ref":"#/components/schemas/ActionType"},{"$ref":"#/components/schemas/ActionWait"}],"title":"Action"},"actions":{"items":{"anyOf":[{"$ref":"#/components/schemas/Click"},{"$ref":"#/components/schemas/ResponsesAPIRequestParams_DoubleClick"},{"$ref":"#/components/schemas/Drag"},{"$ref":"#/components/schemas/Keypress"},{"$ref":"#/components/schemas/Move"},{"$ref":"#/components/schemas/Screenshot"},{"$ref":"#/components/schemas/Scroll"},{"$ref":"#/components/schemas/Type"},{"$ref":"#/components/schemas/Wait"}]},"title":"Actions","type":"array"}},"required":["id","call_id","pending_safety_checks","status","type"],"title":"ResponseComputerToolCallParam","type":"object"},"ResponseCustomToolCallOutputParam":{"description":"The output of a custom tool call from your code, being sent back to the model.","properties":{"call_id":{"title":"Call Id","type":"string"},"output":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseInputTextParam"},{"$ref":"#/components/schemas/ResponseInputImageParam"},{"$ref":"#/components/schemas/ResponseInputFileParam"}]},"type":"array"}],"title":"Output"},"type":{"const":"custom_tool_call_output","title":"Type","type":"string"},"id":{"title":"Id","type":"string"}},"required":["call_id","output","type"],"title":"ResponseCustomToolCallOutputParam","type":"object"},"ResponseCustomToolCallParam":{"description":"A call to a custom tool created by the model.","properties":{"call_id":{"title":"Call Id","type":"string"},"input":{"title":"Input","type":"string"},"name":{"title":"Name","type":"string"},"type":{"const":"custom_tool_call","title":"Type","type":"string"},"id":{"title":"Id","type":"string"},"namespace":{"title":"Namespace","type":"string"}},"required":["call_id","input","name","type"],"title":"ResponseCustomToolCallParam","type":"object"},"ResponseFileSearchToolCallParam":{"description":"The results of a file search tool call.\n\nSee the\n[file search guide](https://platform.openai.com/docs/guides/tools-file-search) for more information.","properties":{"id":{"title":"Id","type":"string"},"queries":{"items":{"type":"string"},"title":"Queries","type":"array"},"status":{"enum":["in_progress","searching","completed","incomplete","failed"],"title":"Status","type":"string"},"type":{"const":"file_search_call","title":"Type","type":"string"},"results":{"anyOf":[{"items":{"$ref":"#/components/schemas/Result"},"type":"array"},{"type":"null"}],"title":"Results"}},"required":["id","queries","status","type"],"title":"ResponseFileSearchToolCallParam","type":"object"},"ResponseFunctionShellCallOutputContentParam":{"description":"Captured stdout and stderr for a portion of a shell tool call output.","properties":{"outcome":{"anyOf":[{"$ref":"#/components/schemas/OutcomeTimeout"},{"$ref":"#/components/schemas/OutcomeExit"}],"title":"Outcome"},"stderr":{"title":"Stderr","type":"string"},"stdout":{"title":"Stdout","type":"string"}},"required":["outcome","stderr","stdout"],"title":"ResponseFunctionShellCallOutputContentParam","type":"object"},"ResponseFunctionToolCallParam":{"description":"A tool call to run a function.\n\nSee the\n[function calling guide](https://platform.openai.com/docs/guides/function-calling) for more information.","properties":{"arguments":{"title":"Arguments","type":"string"},"call_id":{"title":"Call Id","type":"string"},"name":{"title":"Name","type":"string"},"type":{"const":"function_call","title":"Type","type":"string"},"id":{"title":"Id","type":"string"},"namespace":{"title":"Namespace","type":"string"},"status":{"enum":["in_progress","completed","incomplete"],"title":"Status","type":"string"}},"required":["arguments","call_id","name","type"],"title":"ResponseFunctionToolCallParam","type":"object"},"ResponseFunctionWebSearchParam":{"description":"The results of a web search tool call.\n\nSee the\n[web search guide](https://platform.openai.com/docs/guides/tools-web-search) for more information.","properties":{"id":{"title":"Id","type":"string"},"action":{"anyOf":[{"$ref":"#/components/schemas/ActionSearch"},{"$ref":"#/components/schemas/ActionOpenPage"},{"$ref":"#/components/schemas/ActionFind"}],"title":"Action"},"status":{"enum":["in_progress","searching","completed","failed"],"title":"Status","type":"string"},"type":{"const":"web_search_call","title":"Type","type":"string"}},"required":["id","action","status","type"],"title":"ResponseFunctionWebSearchParam","type":"object"},"ResponseInputFileContentParam":{"description":"A file input to the model.","properties":{"type":{"const":"input_file","title":"Type","type":"string"},"detail":{"enum":["low","high"],"title":"Detail","type":"string"},"file_data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Data"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"file_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Url"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"}},"required":["type"],"title":"ResponseInputFileContentParam","type":"object"},"ResponseInputFileParam":{"description":"A file input to the model.","properties":{"type":{"const":"input_file","title":"Type","type":"string"},"detail":{"enum":["low","high"],"title":"Detail","type":"string"},"file_data":{"title":"File Data","type":"string"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"file_url":{"title":"File Url","type":"string"},"filename":{"title":"Filename","type":"string"}},"required":["type"],"title":"ResponseInputFileParam","type":"object"},"ResponseInputImageContentParam":{"description":"An image input to the model.\n\nLearn about [image inputs](https://platform.openai.com/docs/guides/vision)","properties":{"type":{"const":"input_image","title":"Type","type":"string"},"detail":{"anyOf":[{"enum":["low","high","auto","original"],"type":"string"},{"type":"null"}],"title":"Detail"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"}},"required":["type"],"title":"ResponseInputImageContentParam","type":"object"},"ResponseInputImageParam":{"description":"An image input to the model.\n\nLearn about [image inputs](https://platform.openai.com/docs/guides/vision).","properties":{"detail":{"enum":["low","high","auto","original"],"title":"Detail","type":"string"},"type":{"const":"input_image","title":"Type","type":"string"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"}},"required":["detail","type"],"title":"ResponseInputImageParam","type":"object"},"ResponseInputTextContentParam":{"description":"A text input to the model.","properties":{"text":{"title":"Text","type":"string"},"type":{"const":"input_text","title":"Type","type":"string"}},"required":["text","type"],"title":"ResponseInputTextContentParam","type":"object"},"ResponseInputTextParam":{"description":"A text input to the model.","properties":{"text":{"title":"Text","type":"string"},"type":{"const":"input_text","title":"Type","type":"string"}},"required":["text","type"],"title":"ResponseInputTextParam","type":"object"},"ResponseOutputMessageParam":{"description":"An output message from the model.","properties":{"id":{"title":"Id","type":"string"},"content":{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseOutputTextParam"},{"$ref":"#/components/schemas/ResponseOutputRefusalParam"}]},"title":"Content","type":"array"},"role":{"const":"assistant","title":"Role","type":"string"},"status":{"enum":["in_progress","completed","incomplete"],"title":"Status","type":"string"},"type":{"const":"message","title":"Type","type":"string"},"phase":{"anyOf":[{"enum":["commentary","final_answer"],"type":"string"},{"type":"null"}],"title":"Phase"}},"required":["id","content","role","status","type"],"title":"ResponseOutputMessageParam","type":"object"},"ResponseOutputRefusalParam":{"description":"A refusal from the model.","properties":{"refusal":{"title":"Refusal","type":"string"},"type":{"const":"refusal","title":"Type","type":"string"}},"required":["refusal","type"],"title":"ResponseOutputRefusalParam","type":"object"},"ResponseOutputTextParam":{"description":"A text output from the model.","properties":{"annotations":{"items":{"anyOf":[{"$ref":"#/components/schemas/AnnotationFileCitation"},{"$ref":"#/components/schemas/AnnotationURLCitation"},{"$ref":"#/components/schemas/AnnotationContainerFileCitation"},{"$ref":"#/components/schemas/AnnotationFilePath"}]},"title":"Annotations","type":"array"},"text":{"title":"Text","type":"string"},"type":{"const":"output_text","title":"Type","type":"string"},"logprobs":{"items":{"$ref":"#/components/schemas/Logprob"},"title":"Logprobs","type":"array"}},"required":["annotations","text","type"],"title":"ResponseOutputTextParam","type":"object"},"ResponseReasoningItemParam":{"description":"A description of the chain of thought used by a reasoning model while generating\na response. Be sure to include these items in your `input` to the Responses API\nfor subsequent turns of a conversation if you are manually\n[managing context](https://platform.openai.com/docs/guides/conversation-state).","properties":{"id":{"title":"Id","type":"string"},"summary":{"items":{"$ref":"#/components/schemas/Summary"},"title":"Summary","type":"array"},"type":{"const":"reasoning","title":"Type","type":"string"},"content":{"items":{"$ref":"#/components/schemas/Content"},"title":"Content","type":"array"},"encrypted_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Content"},"status":{"enum":["in_progress","completed","incomplete"],"title":"Status","type":"string"}},"required":["id","summary","type"],"title":"ResponseReasoningItemParam","type":"object"},"ResponseToolSearchOutputItemParamParam":{"properties":{"tools":{"items":{"anyOf":[{"$ref":"#/components/schemas/FunctionToolParam"},{"$ref":"#/components/schemas/FileSearchToolParam"},{"$ref":"#/components/schemas/openai__types__responses__computer_tool_param__ComputerToolParam"},{"$ref":"#/components/schemas/ComputerUsePreviewToolParam"},{"$ref":"#/components/schemas/WebSearchToolParam"},{"$ref":"#/components/schemas/Mcp"},{"$ref":"#/components/schemas/CodeInterpreter"},{"$ref":"#/components/schemas/ImageGeneration"},{"$ref":"#/components/schemas/LocalShell"},{"$ref":"#/components/schemas/FunctionShellToolParam"},{"$ref":"#/components/schemas/CustomToolParam"},{"$ref":"#/components/schemas/NamespaceToolParam"},{"$ref":"#/components/schemas/ToolSearchToolParam"},{"$ref":"#/components/schemas/WebSearchPreviewToolParam"},{"$ref":"#/components/schemas/ApplyPatchToolParam"}]},"title":"Tools","type":"array"},"type":{"const":"tool_search_output","title":"Type","type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"},"execution":{"enum":["server","client"],"title":"Execution","type":"string"},"status":{"anyOf":[{"enum":["in_progress","completed","incomplete"],"type":"string"},{"type":"null"}],"title":"Status"}},"required":["tools","type"],"title":"ResponseToolSearchOutputItemParamParam","type":"object"},"ResponsesAPIStreamOptions":{"properties":{"include_obfuscation":{"title":"Include Obfuscation","type":"boolean"}},"title":"ResponsesAPIStreamOptions","type":"object"},"ShellCall":{"description":"A tool representing a request to execute one or more shell commands.","properties":{"action":{"$ref":"#/components/schemas/ShellCallAction"},"call_id":{"title":"Call Id","type":"string"},"type":{"const":"shell_call","title":"Type","type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"environment":{"anyOf":[{"$ref":"#/components/schemas/LocalEnvironmentParam"},{"$ref":"#/components/schemas/ContainerReferenceParam"},{"type":"null"}],"title":"Environment"},"status":{"anyOf":[{"enum":["in_progress","completed","incomplete"],"type":"string"},{"type":"null"}],"title":"Status"}},"required":["action","call_id","type"],"title":"ShellCall","type":"object"},"ShellCallAction":{"description":"The shell commands and limits that describe how to run the tool call.","properties":{"commands":{"items":{"type":"string"},"title":"Commands","type":"array"},"max_output_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Length"},"timeout_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout Ms"}},"required":["commands"],"title":"ShellCallAction","type":"object"},"ShellCallOutput":{"description":"The streamed output items emitted by a shell tool call.","properties":{"call_id":{"title":"Call Id","type":"string"},"output":{"items":{"$ref":"#/components/schemas/ResponseFunctionShellCallOutputContentParam"},"title":"Output","type":"array"},"type":{"const":"shell_call_output","title":"Type","type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"max_output_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Length"},"status":{"anyOf":[{"enum":["in_progress","completed","incomplete"],"type":"string"},{"type":"null"}],"title":"Status"}},"required":["call_id","output","type"],"title":"ShellCallOutput","type":"object"},"ShellToolParam":{"description":"Shell tool for Responses API: run commands in hosted containers or local runtime.\nSee https://developers.openai.com/api/docs/guides/tools-shell.","properties":{"type":{"anyOf":[{"const":"shell","type":"string"},{"type":"string"}],"title":"Type"},"environment":{"additionalProperties":true,"title":"Environment","type":"object"}},"required":["type","environment"],"title":"ShellToolParam","type":"object"},"SkillReferenceParam":{"properties":{"skill_id":{"title":"Skill Id","type":"string"},"type":{"const":"skill_reference","title":"Type","type":"string"},"version":{"title":"Version","type":"string"}},"required":["skill_id","type"],"title":"SkillReferenceParam","type":"object"},"ToolSearchCall":{"properties":{"arguments":{"title":"Arguments"},"type":{"const":"tool_search_call","title":"Type","type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"},"execution":{"enum":["server","client"],"title":"Execution","type":"string"},"status":{"anyOf":[{"enum":["in_progress","completed","incomplete"],"type":"string"},{"type":"null"}],"title":"Status"}},"required":["arguments","type"],"title":"ToolSearchCall","type":"object"},"ToolSearchToolParam":{"description":"Hosted or BYOT tool search configuration for deferred tools.","properties":{"type":{"const":"tool_search","title":"Type","type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"execution":{"enum":["server","client"],"title":"Execution","type":"string"},"parameters":{"anyOf":[{},{"type":"null"}],"title":"Parameters"}},"required":["type"],"title":"ToolSearchToolParam","type":"object"},"WebSearchPreviewToolParam":{"description":"This tool searches the web for relevant results to use in a response.\n\nLearn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).","properties":{"type":{"enum":["web_search_preview","web_search_preview_2025_03_11"],"title":"Type","type":"string"},"search_content_types":{"items":{"enum":["text","image"],"type":"string"},"title":"Search Content Types","type":"array"},"search_context_size":{"enum":["low","medium","high"],"title":"Search Context Size","type":"string"},"user_location":{"anyOf":[{"$ref":"#/components/schemas/openai__types__responses__web_search_preview_tool_param__UserLocation"},{"type":"null"}]}},"required":["type"],"title":"WebSearchPreviewToolParam","type":"object"},"WebSearchToolParam":{"description":"Search the Internet for sources related to the prompt.\n\nLearn more about the\n[web search tool](https://platform.openai.com/docs/guides/tools-web-search).","properties":{"type":{"enum":["web_search","web_search_2025_08_26"],"title":"Type","type":"string"},"filters":{"anyOf":[{"$ref":"#/components/schemas/Filters"},{"type":"null"}]},"search_context_size":{"enum":["low","medium","high"],"title":"Search Context Size","type":"string"},"user_location":{"anyOf":[{"$ref":"#/components/schemas/openai__types__responses__web_search_tool_param__UserLocation"},{"type":"null"}]}},"required":["type"],"title":"WebSearchToolParam","type":"object"},"litellm__types__llms__openai__ComputerToolParam":{"properties":{"display_height":{"title":"Display Height","type":"number"},"display_width":{"title":"Display Width","type":"number"},"environment":{"anyOf":[{"enum":["mac","windows","ubuntu","browser"],"type":"string"},{"type":"string"}],"title":"Environment"},"type":{"anyOf":[{"const":"computer_use_preview","type":"string"},{"type":"string"}],"title":"Type"}},"required":["display_height","display_width","environment","type"],"title":"ComputerToolParam","type":"object"},"openai__types__responses__computer_tool_param__ComputerToolParam":{"description":"A tool that controls a virtual computer.\n\nLearn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).","properties":{"type":{"const":"computer","title":"Type","type":"string"}},"required":["type"],"title":"ComputerToolParam","type":"object"},"openai__types__responses__web_search_preview_tool_param__UserLocation":{"description":"The user's location.","properties":{"type":{"const":"approximate","title":"Type","type":"string"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"}},"required":["type"],"title":"UserLocation","type":"object"},"openai__types__responses__web_search_tool_param__UserLocation":{"description":"The approximate location of the user.","properties":{"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"type":{"const":"approximate","title":"Type","type":"string"}},"title":"UserLocation","type":"object"},"ResponsesAPIRequestParams":{"description":"TypedDict for request parameters supported by the responses API.","properties":{"include":{"anyOf":[{"items":{"enum":["file_search_call.results","web_search_call.results","web_search_call.action.sources","message.input_image.image_url","computer_call_output.output.image_url","code_interpreter_call.outputs","reasoning.encrypted_content","message.output_text.logprobs"],"type":"string"},"type":"array"},{"type":"null"}],"title":"Include"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls"},"previous_response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Response Id"},"reasoning":{"anyOf":[{"$ref":"#/components/schemas/Reasoning"},{"type":"null"}]},"store":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Store"},"background":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Background"},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"text":{"anyOf":[{"$ref":"#/components/schemas/ResponseTextConfigParam"},{"type":"null"}]},"tool_choice":{"anyOf":[{"enum":["none","auto","required"],"type":"string"},{"$ref":"#/components/schemas/ToolChoiceAllowedParam"},{"$ref":"#/components/schemas/ToolChoiceTypesParam"},{"$ref":"#/components/schemas/ToolChoiceFunctionParam"},{"$ref":"#/components/schemas/ToolChoiceMcpParam"},{"$ref":"#/components/schemas/ToolChoiceCustomParam"},{"$ref":"#/components/schemas/ToolChoiceApplyPatchParam"},{"$ref":"#/components/schemas/ToolChoiceShellParam"},{"type":"null"}],"title":"Tool Choice"},"tools":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/FunctionToolParam"},{"$ref":"#/components/schemas/FileSearchToolParam"},{"$ref":"#/components/schemas/openai__types__responses__computer_tool_param__ComputerToolParam"},{"$ref":"#/components/schemas/ComputerUsePreviewToolParam"},{"$ref":"#/components/schemas/WebSearchToolParam"},{"$ref":"#/components/schemas/Mcp"},{"$ref":"#/components/schemas/CodeInterpreter"},{"$ref":"#/components/schemas/ImageGeneration"},{"$ref":"#/components/schemas/LocalShell"},{"$ref":"#/components/schemas/FunctionShellToolParam"},{"$ref":"#/components/schemas/CustomToolParam"},{"$ref":"#/components/schemas/NamespaceToolParam"},{"$ref":"#/components/schemas/ToolSearchToolParam"},{"$ref":"#/components/schemas/WebSearchPreviewToolParam"},{"$ref":"#/components/schemas/ApplyPatchToolParam"},{"$ref":"#/components/schemas/litellm__types__llms__openai__ComputerToolParam"},{"$ref":"#/components/schemas/ShellToolParam"}]},"type":"array"},{"type":"null"}],"title":"Tools"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"truncation":{"anyOf":[{"enum":["auto","disabled"],"type":"string"},{"type":"null"}],"title":"Truncation"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"},"service_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Tier"},"safety_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Safety Identifier"},"prompt":{"anyOf":[{"$ref":"#/components/schemas/PromptObject"},{"type":"null"}]},"max_tool_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tool Calls"},"prompt_cache_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cache Key"},"prompt_cache_retention":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cache Retention"},"prompt_cache_options":{"anyOf":[{"$ref":"#/components/schemas/PromptCacheOptions"},{"type":"null"}]},"stream_options":{"anyOf":[{"$ref":"#/components/schemas/ResponsesAPIStreamOptions"},{"type":"null"}]},"top_logprobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top Logprobs"},"partial_images":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Partial Images"},"context_management":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContextManagementEntry"},"type":"array"},{"type":"null"}],"title":"Context Management"},"input":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/EasyInputMessageParam"},{"$ref":"#/components/schemas/Message"},{"$ref":"#/components/schemas/ResponseOutputMessageParam"},{"$ref":"#/components/schemas/ResponseFileSearchToolCallParam"},{"$ref":"#/components/schemas/ResponseComputerToolCallParam"},{"$ref":"#/components/schemas/ComputerCallOutput"},{"$ref":"#/components/schemas/ResponseFunctionWebSearchParam"},{"$ref":"#/components/schemas/ResponseFunctionToolCallParam"},{"$ref":"#/components/schemas/FunctionCallOutput"},{"$ref":"#/components/schemas/ToolSearchCall"},{"$ref":"#/components/schemas/ResponseToolSearchOutputItemParamParam"},{"$ref":"#/components/schemas/ResponseReasoningItemParam"},{"$ref":"#/components/schemas/ResponseCompactionItemParamParam"},{"$ref":"#/components/schemas/ResponsesAPIRequestParams_ImageGenerationCall"},{"$ref":"#/components/schemas/ResponseCodeInterpreterToolCallParam"},{"$ref":"#/components/schemas/LocalShellCall"},{"$ref":"#/components/schemas/LocalShellCallOutput"},{"$ref":"#/components/schemas/ShellCall"},{"$ref":"#/components/schemas/ShellCallOutput"},{"$ref":"#/components/schemas/ApplyPatchCall"},{"$ref":"#/components/schemas/ApplyPatchCallOutput"},{"$ref":"#/components/schemas/McpListTools"},{"$ref":"#/components/schemas/McpApprovalRequest"},{"$ref":"#/components/schemas/ResponsesAPIRequestParams_McpApprovalResponse"},{"$ref":"#/components/schemas/McpCall"},{"$ref":"#/components/schemas/ResponseCustomToolCallOutputParam"},{"$ref":"#/components/schemas/ResponseCustomToolCallParam"},{"$ref":"#/components/schemas/ItemReference"}]},"type":"array"}],"title":"Input"},"model":{"title":"Model","type":"string"}},"required":["input","model"],"title":"ResponsesAPIRequestParams","type":"object"}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","description":"Bearer token","in":"header","name":"x-litellm-api-key"}}}}