Click or drag to resize

AIAgentLoadFromFile Method

Loads a conversation from a JSON file and returns both the agent and the embedded session metadata. The agent is built from the configuration whose Name matches the Name info key; falls back to the default configuration when not found.

Namespace: Seal.AI
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntax
C#
public static (AIAgent agent, ChatSessionFile session) LoadFromFile(
	string path
)

Parameters

path  String
Full file-system path to the file.

Return Value

ValueTupleAIAgent, ChatSessionFile
A tuple of the restored agent and the raw session file.
See Also