{
  "PolicyListDBResponse": {
    "properties": {
      "policies": {
        "items": {
          "$ref": "#/components/schemas/PolicyDBResponse"
        },
        "type": "array",
        "title": "Policies",
        "description": "List of policies."
      },
      "total_count": {
        "type": "integer",
        "title": "Total Count",
        "description": "Total number of policies.",
        "default": 0
      }
    },
    "type": "object",
    "title": "PolicyListDBResponse",
    "description": "Response for listing policies from the database."
  },
  "PolicyListResponse": {
    "properties": {
      "policies": {
        "additionalProperties": {
          "$ref": "#/components/schemas/PolicySummaryItem"
        },
        "type": "object",
        "title": "Policies"
      },
      "total_count": {
        "type": "integer",
        "title": "Total Count"
      }
    },
    "type": "object",
    "required": [
      "policies",
      "total_count"
    ],
    "title": "PolicyListResponse",
    "description": "Response for /policy/list endpoint."
  },
  "PolicyMatchContext": {
    "properties": {
      "team_alias": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Team Alias",
        "description": "Team alias from the request."
      },
      "key_alias": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Key Alias",
        "description": "API key alias from the request."
      },
      "model": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Model",
        "description": "Model name from the request."
      },
      "tags": {
        "anyOf": [
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Tags",
        "description": "Tags from key/team metadata."
      }
    },
    "additionalProperties": false,
    "type": "object",
    "title": "PolicyMatchContext",
    "description": "Context used to match a request against policies.\n\nContains the team alias, key alias, and model from the incoming request."
  },
  "PolicyMatchDetail": {
    "properties": {
      "policy_name": {
        "type": "string",
        "title": "Policy Name",
        "description": "Name of the matched policy."
      },
      "matched_via": {
        "type": "string",
        "title": "Matched Via",
        "description": "How the policy was matched (e.g., 'tag:healthcare', 'team:health-team', 'scope:*')."
      },
      "guardrails_added": {
        "items": {
          "type": "string"
        },
        "type": "array",
        "title": "Guardrails Added",
        "description": "Guardrails this policy contributes."
      }
    },
    "type": "object",
    "required": [
      "policy_name",
      "matched_via"
    ],
    "title": "PolicyMatchDetail",
    "description": "Details about why a specific policy matched."
  },
  "PolicyResolveRequest": {
    "properties": {
      "team_alias": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Team Alias",
        "description": "Team alias to resolve for."
      },
      "key_alias": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Key Alias",
        "description": "Key alias to resolve for."
      },
      "model": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Model",
        "description": "Model name to resolve for."
      },
      "tags": {
        "anyOf": [
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Tags",
        "description": "Tags to resolve for."
      }
    },
    "type": "object",
    "title": "PolicyResolveRequest",
    "description": "Request body for resolving effective policies/guardrails for a context."
  },
  "PolicyResolveResponse": {
    "properties": {
      "effective_guardrails": {
        "items": {
          "type": "string"
        },
        "type": "array",
        "title": "Effective Guardrails",
        "description": "Final list of guardrails that would be applied."
      },
      "matched_policies": {
        "items": {
          "$ref": "#/components/schemas/PolicyMatchDetail"
        },
        "type": "array",
        "title": "Matched Policies",
        "description": "Details about each matched policy and why it matched."
      }
    },
    "type": "object",
    "title": "PolicyResolveResponse",
    "description": "Response for resolving effective policies/guardrails for a context."
  },
  "PolicyScopeResponse": {
    "properties": {
      "teams": {
        "items": {
          "type": "string"
        },
        "type": "array",
        "title": "Teams"
      },
      "keys": {
        "items": {
          "type": "string"
        },
        "type": "array",
        "title": "Keys"
      },
      "models": {
        "items": {
          "type": "string"
        },
        "type": "array",
        "title": "Models"
      },
      "tags": {
        "items": {
          "type": "string"
        },
        "type": "array",
        "title": "Tags"
      }
    },
    "type": "object",
    "title": "PolicyScopeResponse",
    "description": "Scope configuration for a policy."
  },
  "PolicySummaryItem": {
    "properties": {
      "inherit": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Inherit"
      },
      "scope": {
        "$ref": "#/components/schemas/PolicyScopeResponse"
      },
      "guardrails": {
        "$ref": "#/components/schemas/PolicyGuardrailsResponse"
      },
      "resolved_guardrails": {
        "items": {
          "type": "string"
        },
        "type": "array",
        "title": "Resolved Guardrails"
      },
      "inheritance_chain": {
        "items": {
          "type": "string"
        },
        "type": "array",
        "title": "Inheritance Chain"
      }
    },
    "type": "object",
    "required": [
      "scope",
      "guardrails",
      "resolved_guardrails",
      "inheritance_chain"
    ],
    "title": "PolicySummaryItem",
    "description": "Summary of a single policy for list endpoint."
  },
  "PolicyTestResponse": {
    "properties": {
      "context": {
        "$ref": "#/components/schemas/PolicyMatchContext"
      },
      "matching_policies": {
        "items": {
          "type": "string"
        },
        "type": "array",
        "title": "Matching Policies"
      },
      "resolved_guardrails": {
        "items": {
          "type": "string"
        },
        "type": "array",
        "title": "Resolved Guardrails"
      },
      "message": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Message"
      }
    },
    "type": "object",
    "required": [
      "context",
      "matching_policies",
      "resolved_guardrails"
    ],
    "title": "PolicyTestResponse",
    "description": "Response for /policy/test endpoint."
  },
  "PolicyUpdateRequest": {
    "properties": {
      "policy_name": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Policy Name",
        "description": "New name for the policy."
      },
      "inherit": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Inherit",
        "description": "Name of parent policy to inherit from."
      },
      "description": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Description",
        "description": "Human-readable description of the policy."
      },
      "guardrails_add": {
        "anyOf": [
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Guardrails Add",
        "description": "List of guardrail names to add."
      },
      "guardrails_remove": {
        "anyOf": [
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Guardrails Remove",
        "description": "List of guardrail names to remove (from inherited)."
      },
      "condition": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/PolicyConditionRequest"
          },
          {
            "type": "null"
          }
        ],
        "description": "Condition for when this policy applies."
      },
      "pipeline": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Pipeline",
        "description": "Optional guardrail pipeline for ordered execution. Contains 'mode' and 'steps'."
      }
    },
    "type": "object",
    "title": "PolicyUpdateRequest",
    "description": "Request body for updating a policy."
  },
  "PolicyValidateRequest": {
    "properties": {
      "policies": {
        "additionalProperties": true,
        "type": "object",
        "title": "Policies",
        "description": "Policy configuration to validate. Map of policy names to policy definitions."
      }
    },
    "additionalProperties": false,
    "type": "object",
    "required": [
      "policies"
    ],
    "title": "PolicyValidateRequest",
    "description": "Request body for the /policy/validate endpoint."
  },
  "PolicyValidationError": {
    "properties": {
      "policy_name": {
        "type": "string",
        "title": "Policy Name",
        "description": "Name of the policy with the issue."
      },
      "error_type": {
        "$ref": "#/components/schemas/PolicyValidationErrorType",
        "description": "Type of validation error."
      },
      "message": {
        "type": "string",
        "title": "Message",
        "description": "Human-readable error message."
      },
      "field": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Field",
        "description": "Specific field that caused the error (e.g., 'guardrails.add', 'scope.teams')."
      },
      "value": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Value",
        "description": "The invalid value that caused the error."
      }
    },
    "additionalProperties": false,
    "type": "object",
    "required": [
      "policy_name",
      "error_type",
      "message"
    ],
    "title": "PolicyValidationError",
    "description": "Represents a validation error or warning for a policy."
  },
  "PolicyValidationErrorType": {
    "type": "string",
    "enum": [
      "invalid_guardrail",
      "invalid_team",
      "invalid_key",
      "invalid_model",
      "invalid_inheritance",
      "circular_inheritance",
      "invalid_scope",
      "invalid_syntax"
    ],
    "title": "PolicyValidationErrorType",
    "description": "Types of validation errors that can occur."
  },
  "PolicyValidationResponse": {
    "properties": {
      "valid": {
        "type": "boolean",
        "title": "Valid",
        "description": "True if the policy configuration is valid."
      },
      "errors": {
        "items": {
          "$ref": "#/components/schemas/PolicyValidationError"
        },
        "type": "array",
        "title": "Errors",
        "description": "List of blocking validation errors."
      },
      "warnings": {
        "items": {
          "$ref": "#/components/schemas/PolicyValidationError"
        },
        "type": "array",
        "title": "Warnings",
        "description": "List of non-blocking validation warnings."
      }
    },
    "additionalProperties": false,
    "type": "object",
    "required": [
      "valid"
    ],
    "title": "PolicyValidationResponse",
    "description": "Response from policy validation.\n\n- `valid`: True if no blocking errors were found\n- `errors`: List of blocking errors (prevent policy from being applied)\n- `warnings`: List of non-blocking warnings (policy can still be applied)"
  },
  "PolicyVersionCompareResponse": {
    "properties": {
      "version_a": {
        "$ref": "#/components/schemas/PolicyDBResponse",
        "description": "First version."
      },
      "version_b": {
        "$ref": "#/components/schemas/PolicyDBResponse",
        "description": "Second version."
      },
      "field_diffs": {
        "additionalProperties": {
          "additionalProperties": true,
          "type": "object"
        },
        "type": "object",
        "title": "Field Diffs",
        "description": "Field name -> {version_a: val, version_b: val} for differing fields."
      }
    },
    "type": "object",
    "required": [
      "version_a",
      "version_b"
    ],
    "title": "PolicyVersionCompareResponse",
    "description": "Response for comparing two policy versions."
  },
  "PolicyVersionCreateRequest": {
    "properties": {
      "source_policy_id": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Source Policy Id",
        "description": "Policy ID to clone from. If None, clone from current production version."
      }
    },
    "type": "object",
    "title": "PolicyVersionCreateRequest",
    "description": "Request body for creating a new policy version (draft)."
  },
  "PolicyVersionListResponse": {
    "properties": {
      "policy_name": {
        "type": "string",
        "title": "Policy Name",
        "description": "Name of the policy."
      },
      "versions": {
        "items": {
          "$ref": "#/components/schemas/PolicyDBResponse"
        },
        "type": "array",
        "title": "Versions",
        "description": "All versions ordered by version_number desc."
      },
      "total_count": {
        "type": "integer",
        "title": "Total Count",
        "description": "Total number of versions.",
        "default": 0
      }
    },
    "type": "object",
    "required": [
      "policy_name"
    ],
    "title": "PolicyVersionListResponse",
    "description": "Response for listing all versions of a policy."
  },
  "PolicyVersionStatusUpdateRequest": {
    "properties": {
      "version_status": {
        "type": "string",
        "title": "Version Status",
        "description": "New status: 'published' or 'production'."
      }
    },
    "type": "object",
    "required": [
      "version_status"
    ],
    "title": "PolicyVersionStatusUpdateRequest",
    "description": "Request body for updating a policy version's status."
  },
  "Prompt": {
    "properties": {
      "prompt_id": {
        "type": "string",
        "title": "Prompt Id"
      },
      "litellm_params": {
        "$ref": "#/components/schemas/PromptLiteLLMParams"
      },
      "prompt_info": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/PromptInfo"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "type": "object",
    "required": [
      "prompt_id",
      "litellm_params"
    ],
    "title": "Prompt"
  },
  "PromptInfo": {
    "properties": {
      "prompt_type": {
        "type": "string",
        "enum": [
          "config",
          "db"
        ],
        "title": "Prompt Type"
      },
      "environment": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Environment",
        "default": "development"
      }
    },
    "additionalProperties": true,
    "type": "object",
    "required": [
      "prompt_type"
    ],
    "title": "PromptInfo"
  },
  "PromptInfoResponse": {
    "properties": {
      "prompt_spec": {
        "$ref": "#/components/schemas/PromptSpec"
      },
      "raw_prompt_template": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/PromptTemplateBase"
          },
          {
            "type": "null"
          }
        ]
      },
      "environments": {
        "anyOf": [
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Environments"
      }
    },
    "type": "object",
    "required": [
      "prompt_spec"
    ],
    "title": "PromptInfoResponse"
  },
  "PromptLiteLLMParams": {
    "properties": {
      "prompt_id": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Prompt Id"
      },
      "prompt_integration": {
        "type": "string",
        "title": "Prompt Integration"
      },
      "api_base": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Api Base"
      },
      "api_key": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Api Key"
      },
      "provider_specific_query_params": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Provider Specific Query Params"
      },
      "ignore_prompt_manager_model": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "null"
          }
        ],
        "title": "Ignore Prompt Manager Model",
        "default": false
      },
      "ignore_prompt_manager_optional_params": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "null"
          }
        ],
        "title": "Ignore Prompt Manager Optional Params",
        "default": false
      },
      "dotprompt_content": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Dotprompt Content"
      }
    },
    "additionalProperties": true,
    "type": "object",
    "required": [
      "prompt_integration"
    ],
    "title": "PromptLiteLLMParams"
  },
  "PromptSpec": {
    "properties": {
      "prompt_id": {
        "type": "string",
        "title": "Prompt Id"
      },
      "litellm_params": {
        "$ref": "#/components/schemas/PromptLiteLLMParams"
      },
      "prompt_info": {
        "$ref": "#/components/schemas/PromptInfo"
      },
      "created_at": {
        "anyOf": [
          {
            "type": "string",
            "format": "date-time"
          },
          {
            "type": "null"
          }
        ],
        "title": "Created At"
      },
      "updated_at": {
        "anyOf": [
          {
            "type": "string",
            "format": "date-time"
          },
          {
            "type": "null"
          }
        ],
        "title": "Updated At"
      },
      "version": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Version"
      },
      "environment": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Environment",
        "default": "development"
      },
      "created_by": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Created By"
      }
    },
    "type": "object",
    "required": [
      "prompt_id",
      "litellm_params",
      "prompt_info"
    ],
    "title": "PromptSpec"
  },
  "PromptTemplateBase": {
    "properties": {
      "litellm_prompt_id": {
        "type": "string",
        "title": "Litellm Prompt Id"
      },
      "content": {
        "type": "string",
        "title": "Content"
      },
      "metadata": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Metadata"
      }
    },
    "type": "object",
    "required": [
      "litellm_prompt_id",
      "content"
    ],
    "title": "PromptTemplateBase"
  },
  "PromptTokensDetails": {
    "properties": {
      "modality": {
        "type": "string",
        "enum": [
          "TEXT",
          "AUDIO",
          "IMAGE",
          "VIDEO"
        ],
        "title": "Modality"
      },
      "tokenCount": {
        "type": "integer",
        "title": "Tokencount"
      }
    },
    "type": "object",
    "required": [
      "modality",
      "tokenCount"
    ],
    "title": "PromptTokensDetails"
  },
  "ProviderBudgetResponse": {
    "properties": {
      "providers": {
        "additionalProperties": {
          "$ref": "#/components/schemas/ProviderBudgetResponseObject"
        },
        "type": "object",
        "title": "Providers",
        "default": {}
      }
    },
    "type": "object",
    "title": "ProviderBudgetResponse",
    "description": "Complete provider budget configuration and status.\nMaps provider names to their budget configs."
  },
  "ProviderBudgetResponseObject": {
    "properties": {
      "budget_limit": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Budget Limit"
      },
      "time_period": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Time Period"
      },
      "spend": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Spend",
        "default": 0.0
      },
      "budget_reset_at": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Budget Reset At"
      }
    },
    "type": "object",
    "required": [
      "budget_limit",
      "time_period"
    ],
    "title": "ProviderBudgetResponseObject",
    "description": "Configuration for a single provider's budget settings"
  },
  "ProviderCreateInfo": {
    "properties": {
      "provider": {
        "type": "string",
        "title": "Provider"
      },
      "provider_display_name": {
        "type": "string",
        "title": "Provider Display Name"
      },
      "litellm_provider": {
        "type": "string",
        "title": "Litellm Provider"
      },
      "credential_fields": {
        "items": {
          "$ref": "#/components/schemas/ProviderCredentialField"
        },
        "type": "array",
        "title": "Credential Fields"
      },
      "default_model_placeholder": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Default Model Placeholder"
      }
    },
    "type": "object",
    "required": [
      "provider",
      "provider_display_name",
      "litellm_provider",
      "credential_fields"
    ],
    "title": "ProviderCreateInfo"
  },
  "ProviderCredentialField": {
    "properties": {
      "key": {
        "type": "string",
        "title": "Key"
      },
      "label": {
        "type": "string",
        "title": "Label"
      },
      "placeholder": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Placeholder"
      },
      "tooltip": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Tooltip"
      },
      "required": {
        "type": "boolean",
        "title": "Required",
        "default": false
      },
      "field_type": {
        "type": "string",
        "enum": [
          "text",
          "password",
          "select",
          "upload",
          "textarea"
        ],
        "title": "Field Type",
        "default": "text"
      },
      "options": {
        "anyOf": [
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Options"
      },
      "default_value": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Default Value"
      }
    },
    "type": "object",
    "required": [
      "key",
      "label"
    ],
    "title": "ProviderCredentialField"
  },
  "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"
  },
  "PublicModelHubInfo": {
    "properties": {
      "docs_title": {
        "type": "string",
        "title": "Docs Title"
      },
      "custom_docs_description": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Custom Docs Description"
      },
      "litellm_version": {
        "type": "string",
        "title": "Litellm Version"
      },
      "useful_links": {
        "anyOf": [
          {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "additionalProperties": true,
                  "type": "object"
                }
              ]
            },
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Useful Links"
      }
    },
    "type": "object",
    "required": [
      "docs_title",
      "custom_docs_description",
      "litellm_version",
      "useful_links"
    ],
    "title": "PublicModelHubInfo"
  },
  "RawRequestTypedDict": {
    "properties": {
      "raw_request_api_base": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Raw Request Api Base"
      },
      "raw_request_body": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Raw Request Body"
      },
      "raw_request_headers": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Raw Request Headers"
      },
      "error": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Error"
      }
    },
    "type": "object",
    "title": "RawRequestTypedDict"
  },
  "RealtimeClientSecretResponse": {
    "properties": {
      "expires_at": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Expires At"
      },
      "value": {
        "type": "string",
        "title": "Value"
      },
      "session": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Session"
      }
    },
    "type": "object",
    "required": [
      "value"
    ],
    "title": "RealtimeClientSecretResponse",
    "description": "Response from POST /v1/realtime/client_secrets.\n\nBoth the top-level `value` and `session.client_secret.value`\nwill contain the encrypted token instead of the raw ephemeral key.\nThe `session` field is kept as a raw dict so unknown fields pass through."
  },
  "RegenerateKeyRequest": {
    "properties": {
      "key_alias": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Key Alias"
      },
      "duration": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Duration"
      },
      "models": {
        "anyOf": [
          {
            "items": {},
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Models",
        "default": []
      },
      "spend": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Spend"
      },
      "max_budget": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Max Budget"
      },
      "user_id": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "User Id"
      },
      "team_id": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Team Id"
      },
      "agent_id": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Agent Id"
      },
      "max_parallel_requests": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Max Parallel Requests"
      },
      "metadata": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Metadata"
      },
      "tpm_limit": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Tpm Limit"
      },
      "rpm_limit": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Rpm Limit"
      },
      "budget_duration": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Budget Duration"
      },
      "allowed_cache_controls": {
        "anyOf": [
          {
            "items": {},
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Allowed Cache Controls",
        "default": []
      },
      "config": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Config",
        "default": {}
      },
      "permissions": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Permissions",
        "default": {}
      },
      "model_max_budget": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Model Max Budget",
        "default": {}
      },
      "model_rpm_limit": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Model Rpm Limit"
      },
      "model_tpm_limit": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Model Tpm Limit"
      },
      "guardrails": {
        "anyOf": [
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Guardrails"
      },
      "policies": {
        "anyOf": [
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Policies"
      },
      "prompts": {
        "anyOf": [
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Prompts"
      },
      "blocked": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "null"
          }
        ],
        "title": "Blocked"
      },
      "aliases": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Aliases",
        "default": {}
      },
      "object_permission": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/LiteLLM_ObjectPermissionBase"
          },
          {
            "type": "null"
          }
        ]
      },
      "key": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Key"
      },
      "budget_id": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Budget Id"
      },
      "tags": {
        "anyOf": [
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Tags"
      },
      "enforced_params": {
        "anyOf": [
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Enforced Params"
      },
      "allowed_routes": {
        "anyOf": [
          {
            "items": {},
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Allowed Routes",
        "default": []
      },
      "allowed_passthrough_routes": {
        "anyOf": [
          {
            "items": {},
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Allowed Passthrough Routes"
      },
      "allowed_vector_store_indexes": {
        "anyOf": [
          {
            "items": {
              "$ref": "#/components/schemas/AllowedVectorStoreIndexItem"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Allowed Vector Store Indexes"
      },
      "rpm_limit_type": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "guaranteed_throughput",
              "best_effort_throughput",
              "dynamic"
            ]
          },
          {
            "type": "null"
          }
        ],
        "title": "Rpm Limit Type"
      },
      "tpm_limit_type": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "guaranteed_throughput",
              "best_effort_throughput",
              "dynamic"
            ]
          },
          {
            "type": "null"
          }
        ],
        "title": "Tpm Limit Type"
      },
      "router_settings": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/UpdateRouterConfig"
          },
          {
            "type": "null"
          }
        ]
      },
      "access_group_ids": {
        "anyOf": [
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Access Group Ids"
      },
      "soft_budget": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "title": "Soft Budget"
      },
      "send_invite_email": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "null"
          }
        ],
        "title": "Send Invite Email"
      },
      "key_type": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/LiteLLMKeyType"
          },
          {
            "type": "null"
          }
        ],
        "description": "Type of key that determines default allowed routes.",
        "default": "default"
      },
      "auto_rotate": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "null"
          }
        ],
        "title": "Auto Rotate",
        "description": "Whether this key should be automatically rotated",
        "default": false
      },
      "rotation_interval": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Rotation Interval",
        "description": "How often to rotate this key (e.g., '30d', '90d'). Required if auto_rotate=True"
      },
      "organization_id": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Organization Id"
      },
      "project_id": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Project Id"
      },
      "new_key": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "New Key"
      },
      "new_master_key": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "New Master Key"
      },
      "grace_period": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Grace Period"
      }
    },
    "type": "object",
    "title": "RegenerateKeyRequest"
  },
  "RegisterGuardrailRequest": {
    "properties": {
      "guardrail_name": {
        "type": "string",
        "title": "Guardrail Name"
      },
      "litellm_params": {
        "additionalProperties": true,
        "type": "object",
        "title": "Litellm Params"
      },
      "guardrail_info": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Guardrail Info"
      },
      "team_id": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Team Id"
      }
    },
    "type": "object",
    "required": [
      "guardrail_name",
      "litellm_params"
    ],
    "title": "RegisterGuardrailRequest",
    "description": "Request body for POST /guardrails/register. Follows Generic Guardrail API config."
  },
  "RegisterGuardrailResponse": {
    "properties": {
      "guardrail_id": {
        "type": "string",
        "title": "Guardrail Id"
      },
      "guardrail_name": {
        "type": "string",
        "title": "Guardrail Name"
      },
      "status": {
        "type": "string",
        "title": "Status"
      },
      "submitted_at": {
        "anyOf": [
          {
            "type": "string",
            "format": "date-time"
          },
          {
            "type": "null"
          }
        ],
        "title": "Submitted At"
      }
    },
    "type": "object",
    "required": [
      "guardrail_id",
      "guardrail_name",
      "status"
    ],
    "title": "RegisterGuardrailResponse"
  },
  "RegisterPluginRequest": {
    "properties": {
      "name": {
        "type": "string",
        "pattern": "^[a-z0-9-]+$",
        "title": "Name",
        "description": "Plugin name (kebab-case, e.g., 'my-plugin')"
      },
      "source": {
        "additionalProperties": {
          "type": "string"
        },
        "type": "object",
        "title": "Source",
        "description": "Git source reference. Supported formats:\n- GitHub: {'source': 'github', 'repo': 'org/repo'}\n- Git URL: {'source': 'url', 'url': 'https://github.com/org/repo.git'}\n- Git Subdir: {'source': 'git-subdir', 'url': 'https://github.com/org/repo.git', 'path': 'plugins/plugin-name'}"
      },
      "version": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Version",
        "description": "Semantic version",
        "default": "1.0.0"
      },
      "description": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Description",
        "description": "Plugin description"
      },
      "author": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/PluginAuthor"
          },
          {
            "type": "null"
          }
        ],
        "description": "Plugin author"
      },
      "homepage": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Homepage",
        "description": "Plugin homepage URL"
      },
      "keywords": {
        "anyOf": [
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Keywords",
        "description": "Search keywords"
      },
      "category": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Category",
        "description": "Plugin category"
      }
    },
    "type": "object",
    "required": [
      "name",
      "source"
    ],
    "title": "RegisterPluginRequest",
    "description": "Request body for registering a plugin in the marketplace.\n\nLiteLLM acts as a registry/discovery layer. Plugins are hosted on\nGitHub/GitLab/Bitbucket and referenced by their git source."
  },
  "RejectMCPServerRequest": {
    "properties": {
      "review_notes": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Review Notes"
      }
    },
    "type": "object",
    "title": "RejectMCPServerRequest"
  },
  "ResetSpendRequest": {
    "properties": {
      "reset_to": {
        "type": "number",
        "title": "Reset To"
      }
    },
    "type": "object",
    "required": [
      "reset_to"
    ],
    "title": "ResetSpendRequest"
  },
  "ResponseLiteLLM_ManagedVectorStore": {
    "properties": {
      "vector_store": {
        "$ref": "#/components/schemas/LiteLLM_ManagedVectorStoresTable"
      }
    },
    "type": "object",
    "title": "ResponseLiteLLM_ManagedVectorStore"
  },
  "ResultCounts": {
    "properties": {
      "total": {
        "type": "integer",
        "title": "Total"
      },
      "passed": {
        "type": "integer",
        "title": "Passed",
        "default": 0
      },
      "failed": {
        "type": "integer",
        "title": "Failed",
        "default": 0
      },
      "error": {
        "type": "integer",
        "title": "Error",
        "default": 0
      }
    },
    "type": "object",
    "required": [
      "total"
    ],
    "title": "ResultCounts",
    "description": "Result counts for a run"
  },
  "RoleMappings": {
    "properties": {
      "provider": {
        "type": "string",
        "title": "Provider",
        "description": "SSO Provider name (e.g., 'google', 'microsoft', 'generic')"
      },
      "group_claim": {
        "type": "string",
        "title": "Group Claim",
        "description": "The field name in the SSO token that contains the groups array (e.g., 'groups', 'roles')"
      },
      "default_role": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/LitellmUserRoles"
          },
          {
            "type": "null"
          }
        ],
        "description": "Default role to assign if user's groups don't match any role mappings. Must be a valid LitellmUserRoles value (e.g., 'proxy_admin', 'internal_user', 'proxy_admin_viewer')"
      },
      "roles": {
        "additionalProperties": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "propertyNames": {
          "$ref": "#/components/schemas/LitellmUserRoles"
        },
        "type": "object",
        "title": "Roles",
        "description": "Mapping of LiteLLM role names to arrays of SSO group names. Example: {'proxy_admin': ['group-1', 'group-2'], 'proxy_admin_viewer': ['group-3']}"
      }
    },
    "type": "object",
    "required": [
      "provider",
      "group_claim"
    ],
    "title": "RoleMappings",
    "description": "Configuration for mapping SSO groups to LiteLLM roles.\n\nThe system will look at the group_claim field in the SSO token to determine\nwhich role to assign the user based on the roles mapping."
  },
  "RouterFieldsResponse": {
    "properties": {
      "fields": {
        "items": {
          "$ref": "#/components/schemas/RouterSettingsField"
        },
        "type": "array",
        "title": "Fields",
        "description": "List of all configurable router settings with metadata (without field values)"
      },
      "routing_strategy_descriptions": {
        "additionalProperties": {
          "type": "string"
        },
        "type": "object",
        "title": "Routing Strategy Descriptions",
        "description": "Descriptions for each routing strategy option"
      }
    },
    "type": "object",
    "required": [
      "fields",
      "routing_strategy_descriptions"
    ],
    "title": "RouterFieldsResponse"
  },
  "RouterSettingsField": {
    "properties": {
      "field_name": {
        "type": "string",
        "title": "Field Name"
      },
      "field_type": {
        "type": "string",
        "title": "Field Type"
      },
      "field_value": {
        "title": "Field Value"
      },
      "field_description": {
        "type": "string",
        "title": "Field Description"
      },
      "field_default": {
        "title": "Field Default"
      },
      "options": {
        "anyOf": [
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Options"
      },
      "ui_field_name": {
        "type": "string",
        "title": "Ui Field Name"
      },
      "link": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Link"
      }
    },
    "type": "object",
    "required": [
      "field_name",
      "field_type",
      "field_value",
      "field_description",
      "ui_field_name"
    ],
    "title": "RouterSettingsField"
  },
  "RouterSettingsResponse": {
    "properties": {
      "fields": {
        "items": {
          "$ref": "#/components/schemas/RouterSettingsField"
        },
        "type": "array",
        "title": "Fields",
        "description": "List of all configurable router settings with metadata"
      },
      "current_values": {
        "additionalProperties": true,
        "type": "object",
        "title": "Current Values",
        "description": "Current values of router settings"
      },
      "routing_strategy_descriptions": {
        "additionalProperties": {
          "type": "string"
        },
        "type": "object",
        "title": "Routing Strategy Descriptions",
        "description": "Descriptions for each routing strategy option"
      }
    },
    "type": "object",
    "required": [
      "fields",
      "current_values",
      "routing_strategy_descriptions"
    ],
    "title": "RouterSettingsResponse"
  },
  "Run": {
    "properties": {
      "id": {
        "type": "string",
        "title": "Id"
      },
      "object": {
        "type": "string",
        "title": "Object",
        "default": "eval.run"
      },
      "created_at": {
        "type": "integer",
        "title": "Created At"
      },
      "status": {
        "type": "string",
        "enum": [
          "queued",
          "running",
          "completed",
          "failed",
          "cancelled"
        ],
        "title": "Status"
      },
      "data_source": {
        "additionalProperties": true,
        "type": "object",
        "title": "Data Source"
      },
      "eval_id": {
        "type": "string",
        "title": "Eval Id"
      },
      "name": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Name"
      },
      "started_at": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Started At"
      },
      "completed_at": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Completed At"
      },
      "model": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Model"
      },
      "per_model_usage": {
        "anyOf": [
          {},
          {
            "type": "null"
          }
        ],
        "title": "Per Model Usage"
      },
      "per_testing_criteria_results": {
        "anyOf": [
          {
            "items": {
              "$ref": "#/components/schemas/PerTestingCriteriaResult"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Per Testing Criteria Results"
      },
      "report_url": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Report Url"
      },
      "result_counts": {
        "anyOf": [
          {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Result Counts"
      },
      "shared_with_openai": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "null"
          }
        ],
        "title": "Shared With Openai"
      },
      "metadata": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Metadata"
      },
      "error": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Error"
      }
    },
    "type": "object",
    "required": [
      "id",
      "created_at",
      "status",
      "data_source",
      "eval_id"
    ],
    "title": "Run",
    "description": "Represents a run from the OpenAI Evals API"
  },
  "RunDeleteResponse": {
    "properties": {
      "run_id": {
        "type": "string",
        "title": "Run Id"
      },
      "object": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Object",
        "default": "eval.run.deleted"
      },
      "deleted": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "null"
          }
        ],
        "title": "Deleted",
        "default": true
      }
    },
    "type": "object",
    "required": [
      "run_id"
    ],
    "title": "RunDeleteResponse",
    "description": "Response from deleting a run"
  },
  "SCIMFeature": {
    "properties": {
      "supported": {
        "type": "boolean",
        "title": "Supported"
      },
      "maxOperations": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Maxoperations"
      },
      "maxPayloadSize": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Maxpayloadsize"
      },
      "maxResults": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Maxresults"
      }
    },
    "type": "object",
    "required": [
      "supported"
    ],
    "title": "SCIMFeature"
  },
  "SCIMGroup": {
    "properties": {
      "schemas": {
        "items": {
          "type": "string"
        },
        "type": "array",
        "title": "Schemas"
      },
      "id": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Id"
      },
      "externalId": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Externalid"
      },
      "meta": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "title": "Meta"
      },
      "displayName": {
        "type": "string",
        "title": "Displayname"
      },
      "members": {
        "anyOf": [
          {
            "items": {
              "$ref": "#/components/schemas/SCIMMember"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ],
        "title": "Members"
      }
    },
    "type": "object",
    "required": [
      "schemas",
      "displayName"
    ],
    "title": "SCIMGroup"
  },
  "SCIMListResponse": {
    "properties": {
      "schemas": {
        "items": {
          "type": "string"
        },
        "type": "array",
        "title": "Schemas",
        "default": [
          "urn:ietf:params:scim:api:messages:2.0:ListResponse"
        ]
      },
      "totalResults": {
        "type": "integer",
        "title": "Totalresults"
      },
      "startIndex": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Startindex",
        "default": 1
      },
      "itemsPerPage": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Itemsperpage",
        "default": 10
      },
      "Resources": {
        "anyOf": [
          {
            "items": {
              "$ref": "#/components/schemas/SCIMUser"
            },
            "type": "array"
          },
          {
            "items": {
              "$ref": "#/components/schemas/SCIMGroup"
            },
            "type": "array"
          }
        ],
        "title": "Resources"
      }
    },
    "type": "object",
    "required": [
      "totalResults",
      "Resources"
    ],
    "title": "SCIMListResponse"
  }
}