Kind: Class
Source: atloria-monorepo/libs/agent-core/src/context/tool-result-manager.ts
Methods
| Method | Signature | Returns |
|---|---|---|
store | store(toolName: string, result: string, turn: number) | ToolResult |
getAll | getAll() | ReadonlyArray<ToolResult> |
getByTool | getByTool(toolName: string) | ToolResult[] |
getLatest | getLatest(toolName: string) | `ToolResult |
getTotalTokens | getTotalTokens() | number |
cleanup | cleanup(currentTurn: number) | void |
toContextString | toContextString() | string |
clear | clear() | void |
serialize | serialize() | string |
deserialize | deserialize(json: string, config: ToolResultManagerConfig) | ToolResultManager |
Where it refuses work
ToolResultManagerstops the work with an early return whenthis.results.length === 0.
Was this page helpful?