ToolJsonFixProcessor
abstract class ToolJsonFixProcessor(toolRegistry: ToolRegistry, toolCallJsonConfig: ToolCallJsonConfig = ToolCallJsonConfig()) : ResponseProcessor(source)
Abstract class for processors that fix tool call json messages. Contains common logic for extracting relevant information from (possibly malformed) tool call json messages.
Inheritors
Constructors
Link copied to clipboard
constructor(toolRegistry: ToolRegistry, toolCallJsonConfig: ToolCallJsonConfig = ToolCallJsonConfig())
Functions
Link copied to clipboard
Chains two processors together.
Link copied to clipboard
suspend fun process(executor: PromptExecutor, prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>, response: Message.Response): Message.Response
Processes a single LLM response.
abstract suspend fun process(executor: PromptExecutor, prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>, responses: List<Message.Response>): List<Message.Response>