Click or drag to resize

AIProviderHandleChatWithTools 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.2.0.0+da7797057e6d5ef3b02633ee3e36991921c726cb
Syntax
C#
public abstract 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