Click or drag to resize

AzureProviderHandleChatWithTools Method

Sends messages together with available tools to the AI. If the model decides to invoke one or more tools the descriptors are placed in toolCalls and the method returns Empty; the agent message (with embedded tool-call data) is appended to messages automatically so the conversation can be continued after the caller executes the tools. If the model produces a text reply the reply is appended to messages and returned.

Namespace: Seal.AI
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntax
C#
public override string HandleChatWithTools(
	List<ChatMessage> messages,
	IList<AITool> tools,
	out IList<AIToolCall> toolCalls
)

Parameters

messages  ListChatMessage
 
tools  IListAITool
 
toolCalls  IListAIToolCall
 

Return Value

String

Implements

IAIProviderHandleChatWithTools(ListChatMessage, IListAITool, IListAIToolCall)
See Also