Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/google/adk/agents/callback_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@ def __init__(
delta=self._event_actions.state_delta,
)

@property
def invocation_context(self) -> InvocationContext:
"""The invocation context for this callback.

This property provides access to the invocation context for Agent Development
Kit plugins that need to interact with the underlying context. This is
intended for ADK plugin development and not for general user consumption.

Note: This property attempts to solve the TO DO (weisun) by making the invocation context public for ADK plugin development.

Returns:
The InvocationContext instance for this callback.
"""
return self._invocation_context

@property
@override
def state(self) -> State:
Expand Down