Skip to main content

SmartAgentPrompt

Namespace: Wisej.AI

Assembly: Wisej.AI

TODO:

public class SmartAgentPrompt : SmartPrompt

Constructors​

SmartAgentPrompt(text)​

Initializes a new instance of the SmartAgentPrompt class with optional text.

NameTypeDescription
textStringThe text associated with the prompt. Default is null.

Methods​

RunAgentAsync(adapter, message)​

Executes the agent request asynchronously with the specified sender and message.

ParameterTypeDescription
adapterSmartAdapterThe sender adapter initiating the request.
messageMessageMessage to send to the agent for processing.

Returns: Task<Message>. A task representing the asynchronous operation, with a Message as the result.

Throws:

Subscribe(adapter)​

Subscribes the agent to the specified adapter.

ParameterTypeDescription
adapterSmartAdapterThe adapter to which the agent will be subscribed.

Throws:

Unsubscribe(adapter)​

Unsubscribes the agent from the specified adapter.

ParameterTypeDescription
adapterSmartAdapterThe adapter from which the agent will be unsubscribed.

Throws:

Implements​

NameDescription
IToolProviderRepresents a provider that supplies tools.