PreloadMemoryTool
A tool that preloads the memory for the current user.
This tool will be automatically executed for each llm_request, and it won't be called by the model.
NOTE: Currently this tool only uses text part from the memory.
Properties
Link copied to clipboard
The custom metadata of the tool.
Link copied to clipboard
The description of the tool.
Link copied to clipboard
Whether the tool's final result will be delivered out-of-band. When true, the framework marks the call as long-running and uses the tool's return value as the function-response payload (or suppresses the response entirely if the tool returns Unit).
Functions
Link copied to clipboard
Returns the underlying function declaration.
Link copied to clipboard
open suspend override fun processLlmRequest(toolContext: ToolContext, llmRequest: LlmRequest): LlmRequest
Processes the LLM request before it is sent.