Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions src/google/adk/a2a/executor/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
from .executor_context import ExecutorContext



@dataclasses.dataclass
class ExecuteInterceptor:
"""Interceptor for the A2aAgentExecutor."""
Expand Down
7 changes: 7 additions & 0 deletions src/google/adk/cli/fast_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,10 @@ async def get_agent_builder(
from a2a.utils.constants import AGENT_CARD_WELL_KNOWN_PATH

from ..a2a.executor.a2a_agent_executor import A2aAgentExecutor
from ..a2a.executor.config import A2aAgentExecutorConfig
from ..a2a.executor.interceptors.include_artifacts_in_a2a_event import (
include_artifacts_in_a2a_event_interceptor,
)

# locate all a2a agent apps in the agents directory
base_path = Path.cwd() / agents_dir
Expand Down Expand Up @@ -618,6 +622,9 @@ async def _get_a2a_runner_async() -> Runner:
try:
agent_executor = A2aAgentExecutor(
runner=create_a2a_runner_loader(app_name),
config=A2aAgentExecutorConfig(
execute_interceptors=[include_artifacts_in_a2a_event_interceptor],
),
)

push_config_store = InMemoryPushNotificationConfigStore()
Expand Down