File tree Expand file tree Collapse file tree
src/strands/vended_plugins/context_offloader Expand file tree Collapse file tree Original file line number Diff line number Diff 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- "\n Only use retrieve_offloaded_content as a fallback"
278- " if the data cannot be accessed using your existing tools."
279- )
277+ guidance += "\n You 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 "
You can’t perform that action at this time.
0 commit comments