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

Method get_invocation_context

src/google/adk/agents/context.py:400–409  ·  view source on GitHub ↗

Returns a copy of the invocation context with the proxy session.

(self)

Source from the content-addressed store, hash-verified

398 return self._telemetry_context
399
400 def get_invocation_context(self) -> InvocationContext:
401 """Returns a copy of the invocation context with the proxy session."""
402 ctx = self._invocation_context
403 ctx_with_proxy = ctx.model_copy(
404 update={
405 'session': self.session,
406 'isolation_scope': self.isolation_scope,
407 }
408 )
409 return ctx_with_proxy
410
411 async def run_node(
412 self,

Callers 4

_run_implMethod · 0.45
run_llm_agent_as_nodeFunction · 0.45
_run_implMethod · 0.45

Calls 1

model_copyMethod · 0.45