Skip to content

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]

Fix mypy errors

Sameer Kankutec1e90ed300e9
diff --git a/litellm/types/llms/vertex_ai.py b/litellm/types/llms/vertex_ai.py
index 66c6ca436cf..c49fc96a65b 100644
--- a/litellm/types/llms/vertex_ai.py
+++ b/litellm/types/llms/vertex_ai.py
@@ -58,12 +58,26 @@ class HttpxBlobType(TypedDict, total=False):
data: str
+class HttpxServerSideToolCall(TypedDict, total=False):
+ toolType: str
+ id: str
+ args: dict
+
+
+class HttpxServerSideToolResponse(TypedDict, total=False):
+ toolType: str
+ id: str
+ response: Union[str, dict]
+
+
class HttpxPartType(TypedDict, total=False):
text: str
inlineData: HttpxBlobType
fileData: FileDataType
functionCall: HttpxFunctionCall
functionResponse: FunctionResponse
+ toolCall: HttpxServerSideToolCall
+ toolResponse: HttpxServerSideToolResponse
executableCode: HttpxExecutableCode
codeExecutionResult: HttpxCodeExecutionResult
thought: bool