SmartAgentPrompt
Wisej.AI.SmartAgentPrompt
Namespace: Wisej.AI
Assembly: Wisej.AI (3.5.0.0)
TODO:
public class SmartAgentPrompt : SmartPrompt
Constructors
SmartAgentPrompt(text)

Initializes a new instance of the SmartAgentPrompt class with optional text.
Name
Type
Description
Methods
RunAgentAsync(adapter, message)

Executes the agent request asynchronously with the specified sender and message.
Parameter
Type
Description
Returns: Task<Message>. A task representing the asynchronous operation, with a Message as the result.
Throws:
InvalidOperationException Thrown when the SmartAdapter is busy.
ArgumentNullException Thrown when the sender is null.
Subscribe(adapter)

Subscribes the agent to the specified adapter.
Parameter
Type
Description
Throws:
ArgumentNullException Thrown when the adapter is null.
Unsubscribe(adapter)

Unsubscribes the agent from the specified adapter.
Parameter
Type
Description
Throws:
ArgumentNullException Thrown when the adapter is null.
Implements
Name
Description
Represents a provider that supplies tools.
Last updated