Share via


IAgentThread Interface

Definition

Represents a thread that contains messages.

public interface IAgentThread
type IAgentThread = interface
Public Interface IAgentThread

Properties

EnableFunctionArgumentPassThrough

Allow the KernelArguments provided to InvokeAsync(IAgent, KernelArguments, CancellationToken) to be passed through to any function calling.

Id

The thread identifier (which can be referenced in API endpoints).

Methods

AddUserMessageAsync(String, IEnumerable<String>, CancellationToken)

Add a textual user message to the thread.

DeleteAsync(CancellationToken)

Delete current thread. Terminal state - Unable to perform any subsequent actions.

GetMessagesAsync(Nullable<Int32>, String, CancellationToken)

Retrieve thread messages in descending order (most recent first).

InvokeAsync(IAgent, KernelArguments, CancellationToken)

Advance the thread with the specified agent.

InvokeAsync(IAgent, String, KernelArguments, IEnumerable<String>, CancellationToken)

Advance the thread with the specified agent.

Applies to