mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
chore: make LlmRequest.LiveConnectConfig field default to a factory to avoid sharing a mutable instance
PiperOrigin-RevId: 790854215
This commit is contained in:
committed by
Copybara-Service
parent
e41dbccf7f
commit
74589a1db7
@@ -48,7 +48,9 @@ class LlmRequest(BaseModel):
|
||||
config: types.GenerateContentConfig = Field(
|
||||
default_factory=types.GenerateContentConfig
|
||||
)
|
||||
live_connect_config: types.LiveConnectConfig = types.LiveConnectConfig()
|
||||
live_connect_config: types.LiveConnectConfig = Field(
|
||||
default_factory=types.LiveConnectConfig
|
||||
)
|
||||
"""Additional config for the generate content request.
|
||||
|
||||
tools in generate_content_config should not be set.
|
||||
|
||||
Reference in New Issue
Block a user