MCPcopy Index your code
hub / github.com/google/adk-python / model_copy

Method model_copy

src/google/adk/workflow/_node.py:177–188  ·  view source on GitHub ↗

Clones the node with updated fields.

(
      self, *, update: dict[str, Any] | None = None, deep: bool = False
  )

Source from the content-addressed store, hash-verified

175
176 @override
177 def model_copy(
178 self, *, update: dict[str, Any] | None = None, deep: bool = False
179 ) -> Any:
180 """Clones the node with updated fields."""
181 copied = super().model_copy(update=update, deep=deep)
182
183 if copied.parallel_worker:
184 worker_node = copied.model_copy(update={"parallel_worker": False})
185 copied._inner_node = parallel_worker_lib._ParallelWorker(node=worker_node)
186 copied.rerun_on_resume = copied._inner_node.rerun_on_resume
187
188 return copied
189
190 async def run_node_impl(
191 self, *, ctx: Context, node_input: Any

Callers 15

model_post_initMethod · 0.95
_consume_event_queueMethod · 0.45
_get_output_eventMethod · 0.45
_run_async_implMethod · 0.45
get_credential_keyMethod · 0.45
__init__Method · 0.45
_light_copyFunction · 0.45
_stable_model_digestFunction · 0.45
get_credential_keyMethod · 0.45
generate_auth_requestMethod · 0.45
generate_auth_uriMethod · 0.45

Calls

no outgoing calls