File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
pydantic_ai_slim/pydantic_ai/models Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,12 @@ class GoogleModelSettings(ModelSettings, total=False):
129
129
See <https://ai.google.dev/api/generate-content#MediaResolution> for more information.
130
130
"""
131
131
132
+ google_cached_content : str
133
+ """The name of the cached content to use for the model.
134
+
135
+ See <https://ai.google.dev/gemini-api/docs/caching> for more information.
136
+ """
137
+
132
138
133
139
@dataclass (init = False )
134
140
class GoogleModel (Model ):
@@ -377,6 +383,7 @@ async def _build_content_and_config(
377
383
thinking_config = model_settings .get ('google_thinking_config' ),
378
384
labels = model_settings .get ('google_labels' ),
379
385
media_resolution = model_settings .get ('google_video_resolution' ),
386
+ cached_content = model_settings .get ('google_cached_content' ),
380
387
tools = cast (ToolListUnionDict , tools ),
381
388
tool_config = tool_config ,
382
389
response_mime_type = response_mime_type ,
You can’t perform that action at this time.
0 commit comments