Base未来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.
函数
Link copied to clipboard
根据所提供的上下文,返回工具集中的所有工具。
Link copied to clipboard
suspend override fun processLlmRequest(toolContext: ToolContext, llmRequest: LlmRequest): LlmRequest
该功能允许工具集处理来自大型语言模型(LLM)的请求。