Click or drag to resize

AIAgentChat Method

Appends a user message to the conversation history, calls the AI using the tools scoped to this agent (via GetToolConfigurations) plus a built-in load_skill tool when the agent has skills (via GetSkillConfigurations), executes any tool calls the AI requests, and repeats until a plain reply is produced or maxIterations is reached. Falls back to a plain HandleChat(ListChatMessage) call when no tools and no skills are configured.

Namespace: Seal.AI
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntax
C#
public string Chat(
	string userMessage,
	ICancelOperation cancelOperation = null,
	ReportExecutionLog log = null,
	ReportExecutionLog toolsLog = null,
	int maxIterations = 10,
	Action<string> progress = null
)

Parameters

userMessage  String
 
cancelOperation  ICancelOperation  (Optional)
 
log  ReportExecutionLog  (Optional)
 
toolsLog  ReportExecutionLog  (Optional)
 
maxIterations  Int32  (Optional)
 
progress  ActionString  (Optional)
 

Return Value

String
Remarks
Skills use progressive disclosure: only each skill's name and description are exposed up front (in the load_skill tool's catalog). When the AI calls load_skill, the skill's full instructions are returned as the tool result and the skill's own tools are merged into the active tool set for the rest of the conversation.
See Also