Table of Contents

Class AssistantChatbot

public class AssistantChatbot : ChatbotBase<Thread, ThreadMessage, ThreadMessageDelta>
Inheritance
object
AssistantChatbot
Inherited Members

Fields

onAssistantStatusChanged

public UnityEvent<AssistantStatus> onAssistantStatusChanged

Field Value

UnityEvent<AssistantStatus>

onRequiredAction

public UnityEvent<FunctionCall> onRequiredAction

Field Value

UnityEvent<FunctionCall>

onRequiredActionTimeout

public UnityEvent onRequiredActionTimeout

Field Value

UnityEvent

onRunStatusChanged

public UnityEvent<RunStatus> onRunStatusChanged

Field Value

UnityEvent<RunStatus>

Properties

Controller

public AssistantController Controller { get; }

Property Value

AssistantController

IsInitialized

Indicates whether the assistant is initialized and ready to process requests.
This property should be overridden by derived classes to provide specific initialization logic.

public override bool IsInitialized { get; }

Property Value

bool

Messages

The list of messages in the chatbot's conversation history.
This property should be set to the messages that the chatbot has processed, including user messages and responses.
It is used to maintain the context of the conversation and provide a history of interactions.

public override List<ChatMessage> Messages { get; }

Property Value

List<ChatMessage>

Model

The model used by the chatbot for processing requests and generating responses.
This property should be set to the model that provides the necessary capabilities for the chatbot.

public override Model Model { get; set; }

Property Value

Model

Name

The name of the chatbot.

public override string Name { get; set; }

Property Value

string

Profile

public override ChatbotProfile Profile { get; }

Property Value

ChatbotProfile

ThreadId

The unique identifier for the currently active assistant thread.
This ID is used to manage the conversation state and retrieve messages from the assistant.

public string ThreadId { get; }

Property Value

string

UtilityModel

The utility model used for resolving intents and processing requests.
This property should be set to the model that provides the necessary capabilities for the chatbot.

public override Model UtilityModel { get; set; }

Property Value

Model

Methods

CreateConversationAsyncINTERNAL()

protected override UniTask<Thread> CreateConversationAsyncINTERNAL()

Returns

UniTask<Thread>

DeleteConversationAsyncINTERNAL(string)

protected override UniTask<bool> DeleteConversationAsyncINTERNAL(string conversationId)

Parameters

conversationId string

Returns

UniTask<bool>

GetSavedThreads()

public List<Thread> GetSavedThreads()

Returns

List<Thread>

InitializeAsync()

public override UniTask InitializeAsync()

Returns

UniTask

LoadConversationAsyncINTERNAL(string)

protected override UniTask<Thread> LoadConversationAsyncINTERNAL(string conversationId)

Parameters

conversationId string

Returns

UniTask<Thread>

OnReceiveMessage(ChatMessage)

protected override void OnReceiveMessage(ChatMessage response)

Parameters

response ChatMessage

ProcessChatRequestAsyncINTERNAL(ChatMessage)

protected override UniTask<ChatMessage> ProcessChatRequestAsyncINTERNAL(ChatMessage inputMessage)

Parameters

inputMessage ChatMessage

Returns

UniTask<ChatMessage>