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

text

The text associated with the prompt. Default is null.

Methods

RunAgentAsync(adapter, message)

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

Parameter
Type
Description

adapter

The sender adapter initiating the request.

message

Message 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.

Parameter
Type
Description

adapter

The adapter to which the agent will be subscribed.

Throws:

Unsubscribe(adapter)

Unsubscribes the agent from the specified adapter.

Parameter
Type
Description

adapter

The adapter from which the agent will be unsubscribed.

Throws:

Implements

Name
Description

Represents a provider that supplies tools.

Last updated