MCPcopy Create free account
hub / github.com/google/adk-python / _create_invocation_context

Method _create_invocation_context

src/google/adk/agents/base_agent.py:429–434  ·  view source on GitHub ↗

Creates a new invocation context for this agent.

(
      self, parent_context: InvocationContext
  )

Source from the content-addressed store, hash-verified

427 return None
428
429 def _create_invocation_context(
430 self, parent_context: InvocationContext
431 ) -> InvocationContext:
432 """Creates a new invocation context for this agent."""
433 invocation_context = parent_context.model_copy(update={'agent': self})
434 return invocation_context
435
436 @property
437 def canonical_before_agent_callbacks(self) -> list[_SingleAgentCallback]:

Callers 2

run_asyncMethod · 0.95
run_liveMethod · 0.95

Calls 1

model_copyMethod · 0.45

Tested by

no test coverage detected