File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 20
20
from google .genai import types
21
21
from pydantic import BaseModel
22
22
from pydantic import ConfigDict
23
+ from pydantic import Field
24
+ from pydantic import PrivateAttr
23
25
24
26
from ..artifacts .base_artifact_service import BaseArtifactService
25
27
from ..auth .credential_service .base_credential_service import BaseCredentialService
@@ -154,10 +156,12 @@ class InvocationContext(BaseModel):
154
156
run_config : Optional [RunConfig ] = None
155
157
"""Configurations for live agents under this invocation."""
156
158
157
- plugin_manager : PluginManager = PluginManager ( )
159
+ plugin_manager : PluginManager = Field ( default_factory = PluginManager )
158
160
"""The manager for keeping track of plugins in this invocation."""
159
161
160
- _invocation_cost_manager : _InvocationCostManager = _InvocationCostManager ()
162
+ _invocation_cost_manager : _InvocationCostManager = PrivateAttr (
163
+ default_factory = _InvocationCostManager
164
+ )
161
165
"""A container to keep track of different kinds of costs incurred as a part
162
166
of this invocation.
163
167
"""
You can’t perform that action at this time.
0 commit comments