Skip to content

Commit b895bc3

Browse files
committed
update tool spec
1 parent ff3a937 commit b895bc3

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

  • src/strands/vended_plugins/context_offloader

src/strands/vended_plugins/context_offloader/plugin.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ def retrieve_offloaded_content(
155155
"""Retrieve offloaded content by reference.
156156
157157
Use this tool when you see a placeholder with a reference (ref: ...)
158-
and need the full content.
158+
and need the full content. Only use this as a fallback if the data
159+
cannot be accessed using your existing tools.
159160
160161
Args:
161162
reference: The reference string from the offload placeholder.
@@ -273,10 +274,7 @@ async def _handle_tool_result(self, event: AfterToolCallEvent) -> None:
273274
"Use your available tools to selectively access the data you need."
274275
)
275276
if self._include_retrieval_tool:
276-
guidance += (
277-
"\nOnly use retrieve_offloaded_content as a fallback"
278-
" if the data cannot be accessed using your existing tools."
279-
)
277+
guidance += "\nYou can also use retrieve_offloaded_content with a reference to get the full content."
280278

281279
preview_text = (
282280
f"[Offloaded: {len(content)} blocks, ~{token_count:,} tokens]\n"

0 commit comments

Comments
 (0)