Chain

Chains multiple response processors together.

Constructors

Link copied to clipboard
constructor(vararg processors: ResponseProcessor)

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.

open suspend override fun process(executor: PromptExecutor, prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>, responses: List<Message.Response>): List<Message.Response>

Processes the given LLM responses. These responses were received using executor, prompt, model, tools.