BaseFutureToolset

abstract class BaseFutureToolset : Toolset

Java-friendly base for implementing a Toolset -- a dynamically resolved group of tools. Both engine methods are suspend; a Java subclass returns CompletableFutures instead. Return each future promptly and do any blocking work inside it, not before returning it. processLlmRequest defaults to returning the request unchanged; override processLlmRequestAsync to rewrite it.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun close()

Performs cleanup and releases resources held by the toolset.

Link copied to clipboard
suspend override fun getTools(readonlyContext: ReadonlyContext? = null): List<BaseTool>

Return all tools in the toolset based on the provided context.

Link copied to clipboard
suspend override fun processLlmRequest(toolContext: ToolContext, llmRequest: LlmRequest): LlmRequest

Allows the toolset to process the LLM request.