AzureToolHelper

org.llm4s.toolapi.AzureToolHelper

Helper class to convert ToolRegistry to Azure OpenAI format

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def addToolsToOptions(toolRegistry: ToolRegistry, chatOptions: ChatCompletionsOptions): ChatCompletionsOptions

Adds tools from a ToolRegistry to a ChatCompletionsOptions

Adds tools from a ToolRegistry to a ChatCompletionsOptions

Value parameters

chatOptions

The chat options to add the tools to

toolRegistry

The tool registry containing the tools

Attributes

Returns

The updated chat options

def convertToolRegistryToAzureTools(toolRegistry: ToolRegistry): List[ChatCompletionsToolDefinition]

Converts a ToolRegistry to a list of Azure OpenAI tools

Converts a ToolRegistry to a list of Azure OpenAI tools

Value parameters

toolRegistry

The tool registry to convert

Attributes

Returns

A list of Azure OpenAI tools