Header menu logo Nao

IAgent Type

Abstract interface for an agent. Agents process user input and can communicate with other agents via messages. Agents are stateless per call: callers thread prior conversation into the input, and continuity is owned by the store/event path.

Instance members

Instance member Description

this.HandleMessageAsync

Full Usage: this.HandleMessageAsync

Parameters:
Returns: Task<AgentMessage option>
Modifiers: abstract

Handle an inter-agent message and optionally reply

arg0 : AgentMessage
Returns: Task<AgentMessage option>

this.Id

Full Usage: this.Id

Returns: AgentId
Modifiers: abstract

Unique identifier for this agent

Returns: AgentId

this.RunAsync

Full Usage: this.RunAsync

Parameters:
    arg0 : string

Returns: Task<string>
Modifiers: abstract

Process a user input string and return a response

arg0 : string
Returns: Task<string>

Type something to start searching.