Returns a copy of the invocation context with the proxy session.
(self)
| 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, |