convertPrompt

abstract fun convertPrompt(prompt: Prompt, tools: List<ToolDescriptor>): Prompt(source)

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

Return

A new Prompt instance with applied changes based on the provided tools.

Parameters

prompt

The original Prompt to be converted.

tools

The list of ToolDescriptor used to modify or adapt the Prompt.