Skip to content
Merged
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
13 changes: 7 additions & 6 deletions src/google/adk/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,13 @@ def _validate_runner_params(
Raises:
ValueError: If parameters are invalid.
"""
if plugins is not None:
warnings.warn(
'The `plugins` argument is deprecated. Please use the `app` argument'
' to provide plugins instead.',
DeprecationWarning,
)

if app:
if app_name:
raise ValueError(
Expand All @@ -234,12 +241,6 @@ def _validate_runner_params(
context_cache_config = None
resumability_config = None

if plugins:
warnings.warn(
'The `plugins` argument is deprecated. Please use the `app` argument'
' to provide plugins instead.',
DeprecationWarning,
)
return app_name, agent, context_cache_config, resumability_config, plugins

def _infer_agent_origin(
Expand Down
Loading