Skip to content

feat: No-op #2341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
3 changes: 3 additions & 0 deletions src/google/adk/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class Runner:
plugin_manager: The plugin manager for the runner.
session_service: The session service for the runner.
memory_service: The memory service for the runner.
credential_service: The credential service for the runner.
"""

app_name: str
Expand Down Expand Up @@ -104,9 +105,11 @@ def __init__(
Args:
app_name: The application name of the runner.
agent: The root agent to run.
plugins: A list of plugins for the runner.
artifact_service: The artifact service for the runner.
session_service: The session service for the runner.
memory_service: The memory service for the runner.
credential_service: The credential service for the runner.
"""
self.app_name = app_name
self.agent = agent
Expand Down
5 changes: 5 additions & 0 deletions src/google/adk/tools/base_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,15 @@ class BaseTool(ABC):
"""Whether the tool is a long running operation, which typically returns a
resource id first and finishes the operation later."""

metadata: dict[str, Any]
"""Metadata for the tool. Used as a container for storing and retrieving
tool-specific metadata, such as tool manifests, etc."""

def __init__(self, *, name, description, is_long_running: bool = False):
self.name = name
self.description = description
self.is_long_running = is_long_running
self.metadata = {}

def _get_declaration(self) -> Optional[types.FunctionDeclaration]:
"""Gets the OpenAPI specification of this tool in the form of a FunctionDeclaration.
Expand Down