Skip to content

Commit c485889

Browse files
GWealecopybara-github
authored andcommitted
fix: Update description for load_artifacts tool
The tool description now clarifies that `load_artifacts` should be called when a user uploads files, to make those artifacts accessible within the session. Co-authored-by: George Weale <gweale@google.com> PiperOrigin-RevId: 830469802
1 parent 0db2041 commit c485889

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/google/adk/tools/load_artifacts_tool.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ class LoadArtifactsTool(BaseTool):
3737
def __init__(self):
3838
super().__init__(
3939
name='load_artifacts',
40-
description='Loads the artifacts and adds them to the session.',
40+
description=("""Loads artifacts into the session for this request.
41+
42+
NOTE: Call when you need access to artifacts (for example, uploads saved by the
43+
web UI)."""),
4144
)
4245

4346
def _get_declaration(self) -> types.FunctionDeclaration | None:

0 commit comments

Comments
 (0)