From 0479af4c29f9f38796474ac84834c183fc263588 Mon Sep 17 00:00:00 2001 From: Ivan Lopez Hernandez Date: Thu, 22 Oct 2026 16:28:54 -0700 Subject: [PATCH] feat: include Function in FunctionResultSubContent PiperOrigin-RevId: 1005139669 --- .../_gaos/types/interactions/functionresultsubcontent.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/google/genai/_gaos/types/interactions/functionresultsubcontent.py b/google/genai/_gaos/types/interactions/functionresultsubcontent.py index e49937d060..12e6abfc55 100644 --- a/google/genai/_gaos/types/interactions/functionresultsubcontent.py +++ b/google/genai/_gaos/types/interactions/functionresultsubcontent.py @@ -22,6 +22,7 @@ from ...utils.unions import parse_open_union from .audiocontent import AudioContent, AudioContentParam from .documentcontent import DocumentContent, DocumentContentParam +from .function import Function, FunctionParam from .imagecontent import ImageContent, ImageContentParam from .textcontent import TextContent, TextContentParam from .videocontent import VideoContent, VideoContentParam @@ -37,6 +38,7 @@ Union[ TextContentParam, DocumentContentParam, + FunctionParam, ImageContentParam, AudioContentParam, VideoContentParam, @@ -57,6 +59,7 @@ class UnknownFunctionResultSubcontent(BaseModel): _FUNCTION_RESULT_SUBCONTENT_VARIANTS: dict[str, Any] = { "audio": AudioContent, "document": DocumentContent, + "function": Function, "image": ImageContent, "text": TextContent, "video": VideoContent, @@ -67,6 +70,7 @@ class UnknownFunctionResultSubcontent(BaseModel): Union[ AudioContent, DocumentContent, + Function, ImageContent, TextContent, VideoContent,