Creates a new invocation context for this agent.
(
self, parent_context: InvocationContext
)
| 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]: |
no test coverage detected