MCPcopy Create free account

hub / github.com/BerriAI/litellm / types & classes

Types & classes30,100 in github.com/BerriAI/litellm

↓ 6,290 callersClassUserAPIKeyAuth
Return the row in the db
litellm/types/proxy/auth/user_api_key_auth.py:139
↓ 2,951 callersClassOk
litellm/proxy/mcp_server/outbound_credentials/result.py:33
↓ 1,649 callersClassReply
tests/integration/_support/wire.py:68
↓ 1,601 callersClassRouter
What type checkers see: the constructor's parameters and the endpoints' return types. The endpoints are served by the core at run time (litell
litellm/router.py:269
↓ 1,500 callersClassDualCache
DualCache is a cache implementation that updates both Redis and an in-memory cache simultaneously. When data is updated or inserted, it is wr
litellm/caching/dual_cache.py:64
↓ 1,242 callersClassModelResponse
litellm/types/utils.py:2428
↓ 1,068 callersClassUsage
litellm/types/utils.py:2059
↓ 965 callersClassField
litellm/integrations/custom_logger_v2/enums.py:36
↓ 822 callersClassMCPServer
litellm/types/mcp_server/mcp_server_manager.py:103
↓ 816 callersClassError
litellm/proxy/mcp_server/outbound_credentials/result.py:44
↓ 767 callersClassGenericLiteLLMParams
LiteLLM Params without 'model' arg (used across completion / assistants api)
litellm/types/router.py:599
↓ 753 callersClassMCPServerManager
litellm/proxy/mcp_server/mcp_server_manager.py:2040
↓ 683 callersClassUserApiKeyCache
The proxy's auth objects (keys, users, teams, memberships, orgs, ...), always on the native ``AuthCacheStore``: memory only until ``enable_re
litellm/proxy/common_utils/user_api_key_cache.py:47
↓ 594 callersClassAsyncHTTPHandler
litellm/llms/custom_httpx/http_handler.py:763
↓ 534 callersClassRequest
tests/unit/proxy/auth/test_user_api_key_auth.py:393
↓ 514 callersClassLiteLLM_UserTable
litellm/models/user.py:22
↓ 498 callersClassProxyLogging
Logging/Custom Handlers for proxy. Implemented mainly to: - log successful/failed db read/writes - support the max parallel request
litellm/proxy/utils.py:2323
↓ 485 callersClassHTTPHandler
litellm/llms/custom_httpx/http_handler.py:1611
↓ 476 callersClassResponse
tests/unit/router_utils/test_add_retry_fallback_headers.py:269
↓ 449 callersClassLiteLLM_TeamTable
litellm/models/team.py:82
↓ 445 callersClassNumber
litellm/rust/crates/cost/src/money.rs:94
↓ 444 callersClassDelta
litellm/types/utils.py:1667
↓ 437 callersClassProxyConfig
Abstraction class on top of config loading/updating logic. Gives us one place to control all config updating logic.
litellm/proxy/proxy_server.py:5850
↓ 430 callersClassChoices
litellm/types/utils.py:1804
↓ 407 callersClassMessage
litellm/types/utils.py:1546
↓ 405 callersClassModelResponseStream
litellm/types/utils.py:2336
↓ 397 callersClassRoutingContext
What a routing plugin (strategy, pre-call check, sub-router) may use of the router. Plugins get one instead of the Router itself.
litellm/router_api.py:1784
↓ 363 callersClassStreamingChoices
litellm/types/utils.py:2224
↓ 346 callersClassLiteLLM_Params
LiteLLM Params with 'model' requirement - used for completions
litellm/types/router.py:778
↓ 345 callersClassLogging
litellm/litellm_core_utils/litellm_logging.py:1039
↓ 339 callersClassInternalUsageCache
litellm/proxy/utils.py:531
↓ 311 callersClassDeployment
litellm/types/router.py:921
↓ 309 callersClassAmazonConverseConfig
Reference - https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html #2 - https://docs.aws.amazon.com/bedrock/latest
litellm/llms/bedrock/chat/converse_transformation.py:382
↓ 304 callersClassAnthropicConfig
Reference: https://docs.anthropic.com/claude/reference/messages_post to pass metadata to anthropic, it's {"user_id": "any-relevant-informati
litellm/llms/anthropic/chat/transformation.py:724
↓ 304 callersClassProxyException
litellm/proxy/_types.py:4133
↓ 279 callersClassGenericGuardrailAPIInputs
litellm/types/utils.py:5565
↓ 278 callersClassOpenAIResponsesHandler
Handler for processing OpenAI Responses API with guardrails. This class provides methods to: 1. Process input (pre-call hook) 2. Pro
litellm/llms/openai/responses/guardrail_translation/handler.py:1266
↓ 265 callersClassModelInfo
litellm/types/router.py:301
↓ 263 callersClassProxyBaseLLMRequestProcessing
litellm/proxy/common_request_processing.py:2915
↓ 253 callersClassComplexityRouter
Complexity router that classifies requests and routes to appropriate models. By default, handles requests in <1ms with zero external API cal
litellm/router_strategy/complexity_router/complexity_router.py:1438
↓ 247 callersClassOpenTelemetry
litellm/integrations/opentelemetry.py:470
↓ 244 callersClassResponsesAPIResponse
litellm/types/llms/openai.py:1625
↓ 243 callersClassLiteLLM_ObjectPermissionTable
Represents a LiteLLM_ObjectPermissionTable record
litellm/models/object_permission.py:13
↓ 243 callersClassMember
tests/integration/authorization/test_team_member_permissions.py:80
↓ 232 callersClassPromptTokensDetailsWrapper
litellm/types/utils.py:1921
↓ 230 callersClassCustomStreamWrapper
litellm/litellm_core_utils/streaming_handler.py:527
↓ 225 callersClassLiteLLM_VerificationToken
litellm/models/verification_token.py:16
↓ 211 callersClassLiteLLMParamsBody
POST /model/new litellm_params: `model` is the only required field; `api_key` et al may be an `os.environ/FOO` reference the proxy resolves at cal
tests/e2e/models.py:1357
↓ 211 callersClassObject
litellm/rust/crates/config/src/value.rs:11
↓ 206 callersClassUpdateKeyRequest
litellm/types/proxy/management_endpoints/key_requests.py:104
↓ 193 callersClassInMemoryCache
litellm/caching/in_memory_cache.py:32
↓ 192 callersClassImageResponse
litellm/types/utils.py:2918
↓ 189 callersClassChangeSet
Runtime changes for ``apply``. Applied in this order: ``assign``, ``settings``, ``upsert``, ``delete``, ``redis_cache``. - ``assign``: r
litellm/router_api.py:1658
↓ 187 callersClassLiteLLMAnthropicMessagesAdapter
litellm/llms/anthropic/messages/adapters/transformation.py:478
↓ 187 callersClassVertexGeminiConfig
Reference: https://cloud.google.com/vertex-ai/docs/generative-ai/chat/test-chat-prompts Reference: https://cloud.google.com/vertex-ai/generat
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:1022
↓ 180 callersClassCache
litellm/caching/caching.py:296
↓ 177 callersClassGenerateKeyRequest
litellm/types/proxy/management_endpoints/key_requests.py:75
↓ 174 callersClassBaseLLMHTTPHandler
litellm/llms/custom_httpx/llm_http_handler.py:951
↓ 174 callersClassDBSpendUpdateWriter
Module responsible for 1. Writing spend increments to either in memory list of transactions or to redis 2. Reading increments from redis
litellm/proxy/db/db_spend_update_writer.py:856
↓ 173 callersClassOpenTelemetryV2Config
litellm/integrations/otel/model/config.py:154
↓ 170 callersClass_PROXY_MaxParallelRequestsHandler
litellm/proxy/hooks/parallel_request_limiter.py:79
↓ 168 callersClassEmbeddingResponse
litellm/types/utils.py:2544
↓ 168 callersClassLiteLLM_BudgetTable
Represents user-controllable params for a LiteLLM_BudgetTable record. Budget-write paths use `model_fields.keys()` on this class as an allowlist
litellm/models/budget.py:103
↓ 166 callersClassFunction
litellm/types/utils.py:1339
↓ 165 callersClassMCPTool
litellm/types/mcp_server/tool_registry.py:9
↓ 163 callersClassNotImplementedError
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 160 callersClassBedrockGuardrail
litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py:375
↓ 156 callersClassCredentialItem
litellm/models/credentials.py:25
↓ 156 callersClassupdateDeployment
litellm/types/router.py:817
↓ 155 callersClassBaseAWSLLM
litellm/llms/bedrock/base_aws_llm.py:159
↓ 154 callersClassLitellmParams
litellm/types/guardrails.py:1428
↓ 141 callersClassAnthropicMessagesHandler
Process Anthropic messages with guardrails. In-sequence system entries are untrusted client input. This handler scans and preserves them thro
litellm/llms/anthropic/chat/guardrail_translation/handler.py:642
↓ 140 callersClassChatMessage
tests/e2e/models.py:235
↓ 139 callersClassRealTimeStreaming
litellm/litellm_core_utils/realtime_streaming.py:480
↓ 139 callersClassResponseSpec
tests/test_litellm_rust/support/recording_server.py:24
↓ 133 callersClassLiteLLM_TeamTableCachedObj
litellm/models/team.py:132
↓ 131 callersClassPrometheusLogger
litellm/integrations/prometheus.py:631
↓ 127 callersClassWebSearchInterceptionLogger
CustomLogger that intercepts WebSearch tool calls for models that don't natively support web search. Implements agentic loop: 1. Det
litellm/integrations/websearch_interception/handler.py:303
↓ 126 callersClassTextContent
litellm/types/interactions/generated.py:379
↓ 124 callersClassCustomGuardrail
litellm/integrations/custom_guardrail.py:401
↓ 123 callersClassContentFilterGuardrail
Content filter guardrail that detects sensitive information using: - Prebuilt regex patterns (SSN, credit cards, API keys, etc.) - Custom
litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py:341
↓ 123 callersClassFakeSpendCounters
``redis`` is None for a worker without Redis, and ``redis_default`` answers reads of a key it lacks. ``fail`` makes every Redis call fail with ``f
tests/unit/redis/stores/spend_counters_double.py:70
↓ 123 callersClassHeaders
Base for header models. Subclasses may alias to hyphenated header names (e.g. ``x-litellm-api-key``); serialization uses by_alias.
tests/e2e/e2e_http.py:33
↓ 119 callersClassUnifiedLLMGuardrails
litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py:252
↓ 119 callersClassUpdateTeamRequest
UpdateTeamRequest, used by /team/update when you need to update a team team_id: str team_alias: Optional[str] = None organization_id
litellm/proxy/_types.py:2091
↓ 118 callersClassLiteLLMResponsesTransformationHandler
Handler for transforming /chat/completions api requests to litellm.responses requests
litellm/completion_extras/litellm_responses_transformation/transformation.py:1051
↓ 115 callersClassBedrockFilesConfig
Config for Bedrock Files - handles S3 uploads for Bedrock batch processing
litellm/llms/bedrock/files/transformation.py:652
↓ 115 callersClassVertexBase
litellm/llms/vertex_ai/vertex_llm_base.py:135
↓ 114 callersEnumFloat
litellm/rust/crates/python-compat/tests/stdlib.rs:32
↓ 113 callersClassPrismaClient
litellm/proxy/utils.py:6094
↓ 112 callersClassMcpCaller
One caller's view of the gateway through a specific entry point.
tests/integration/_support/mcp.py:688
↓ 112 callersClassOAuthToken
A user's OAuth credential: the bearer value, when it expires, and how to refresh it. ``expires_at`` is epoch seconds (``None`` means no known exp
litellm/proxy/mcp_server/outbound_credentials/oauth_token_store.py:26
↓ 111 callersClassChatCompletionMessageToolCall
litellm/types/utils.py:1444
↓ 108 callersClassChatBody
tests/e2e/models.py:353
↓ 104 callersInterfaceQuery
litellm/rust/crates/storage-clickhouse/src/read.rs:147
↓ 104 callersClassRedisCache
litellm/caching/redis_cache.py:596
↓ 103 callersClassGeminiRealtimeConfig
litellm/llms/gemini/realtime/transformation.py:230
↓ 101 callersClassAmazonAnthropicClaudeMessagesConfig
Call Claude model family in the /v1/messages API spec Supports anthropic_beta parameter for beta features.
litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude_transformation.py:73
↓ 100 callersClassBedrockError
litellm/llms/bedrock/common_utils.py:133
↓ 99 callersClassFireworksAIConfig
Reference: https://docs.fireworks.ai/api-reference/post-chatcompletions The class `FireworksAIConfig` provides configuration for the Firewor
litellm/llms/fireworks_ai/chat/transformation.py:166
next →1–100 of 30,100, ranked by callers