The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
types add GuardrailConfigBlock
Ishaan Jaff3eaa1fa217be
diff --git a/litellm/types/llms/bedrock.py b/litellm/types/llms/bedrock.pyindex 95ebc97429f..cf0a4a84bee 100644--- a/litellm/types/llms/bedrock.py+++ b/litellm/types/llms/bedrock.py@@ -1,16 +1,18 @@-from typing import TypedDict, Any, Union, Optional, Literal, Listimport json-from .openai import ChatCompletionToolCallChunk+from typing import Any, List, Literal, Optional, TypedDict, Union+from typing_extensions import (- Self,Protocol,+ Required,+ Self,TypeGuard,- override,get_origin,+ override,runtime_checkable,- Required,)+from .openai import ChatCompletionToolCallChunk+class SystemContentBlock(TypedDict):text: str@@ -108,6 +110,12 @@ class ToolConfigBlock(TypedDict, total=False):toolChoice: Union[str, ToolChoiceValuesBlock]+class GuardrailConfigBlock(TypedDict, total=False):+ guardrailIdentifier: str+ guardrailVersion: str+ trace: Literal["enabled", "disabled"]++class InferenceConfig(TypedDict, total=False):maxTokens: intstopSequences: List[str]@@ -144,6 +152,7 @@ class RequestObject(TypedDict, total=False):messages: Required[List[MessageBlock]]system: List[SystemContentBlock]toolConfig: ToolConfigBlock+ guardrailConfig: Optional[GuardrailConfigBlock]class GenericStreamingChunk(TypedDict):