Package io.agentscope.harness.agent.tool
Class MemoryGetTool
java.lang.Object
io.agentscope.harness.agent.tool.MemoryGetTool
Tool for reading specific lines from memory files, typically used after
MemorySearchTool to fetch surrounding context.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MemoryGetTool
-
-
Method Details
-
memoryGet
@Tool(name="memory_get", readOnly=true, description="Read specific lines from a memory file. Use after memory_search to pull full context around matched lines. Path is relative to workspace.") public String memoryGet(io.agentscope.core.agent.RuntimeContext runtimeContext, @ToolParam(name="path",description="Relative path to the memory file (e.g., MEMORY.md or memory/2026-04-01.md)") String path, @ToolParam(name="startLine",description="Start line number (1-based, inclusive)") int startLine, @ToolParam(name="endLine",description="End line number (1-based, inclusive)") int endLine)
-