Missing

Replace only missing real tool call and response messages with their dumps to the specified format, and use them as plaintext messages. The tool calls whose definitions are not missing, will be left as real tool calls and responses.

Constructors

Link copied to clipboard
constructor(format: ToolCallDescriber)

Functions

Link copied to clipboard

Converts the given message by formatting specific types of tool-related messages (e.g., Message.Tool.Call and Message.Tool.Result) into descriptive messages. If the message is not a tool-related message, it remains unchanged.

Link copied to clipboard
open override fun convertPrompt(prompt: Prompt, tools: List<ToolDescriptor>): Prompt

Converts a given Prompt by applying modifications based on the provided list of ToolDescriptor.