AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class Chatbot

    A full-featured chatbot component that integrates with the AIDevKit's chat system. This component allows you to send messages, receive responses, and manage chat sessions. It supports both streaming and non-streaming responses, and can handle function calls.

    Inheritance
    object
    AIDevKitComponent
    ChatbotComponent
    Chatbot
    ModularChatbot
    Implements
    IChatbot
    Inherited Members
    ChatbotComponent.functionManager
    ChatbotComponent.chatEventReceiver
    ChatbotComponent.toolEventReceiver
    ChatbotComponent.EnterChatAsync(ChatMessage)
    AIDevKitComponent.debugMode
    AIDevKitComponent.onError
    AIDevKitComponent.OnError(string)
    AIDevKitComponent.OnError(Exception)
    Namespace: Glitch9.AIDevKit.Components
    Assembly: .dll
    Syntax
    public class Chatbot : ChatbotComponent, IChatbot

    Fields

    chatSessionId

    Declaration
    protected string chatSessionId
    Field Value
    Type Description
    string

    streamReceiver

    Declaration
    protected ChatCompletionStreamReceiver streamReceiver
    Field Value
    Type Description
    ChatCompletionStreamReceiver

    toolCallReceiver

    Declaration
    protected ToolCallReceiver toolCallReceiver
    Field Value
    Type Description
    ToolCallReceiver

    Properties

    AutoSave

    Declaration
    public bool AutoSave { get; }
    Property Value
    Type Description
    bool

    ChatSessionId

    Declaration
    public string ChatSessionId { get; }
    Property Value
    Type Description
    string

    IsInitialized

    Declaration
    public bool IsInitialized { get; }
    Property Value
    Type Description
    bool

    Messages

    Declaration
    public override List<ChatMessage> Messages { get; }
    Property Value
    Type Description
    List<ChatMessage>
    Overrides
    ChatbotComponent.Messages

    Model

    Declaration
    public override Model Model { get; }
    Property Value
    Type Description
    Model
    Overrides
    ChatbotComponent.Model

    Name

    Declaration
    public override string Name { get; }
    Property Value
    Type Description
    string
    Overrides
    ChatbotComponent.Name

    Session

    Declaration
    public ChatSession Session { get; }
    Property Value
    Type Description
    ChatSession

    StartingMessage

    Declaration
    public string StartingMessage { get; }
    Property Value
    Type Description
    string

    Stream

    Declaration
    public override bool Stream { get; }
    Property Value
    Type Description
    bool
    Overrides
    ChatbotComponent.Stream

    SystemInstruction

    Declaration
    public string SystemInstruction { get; }
    Property Value
    Type Description
    string

    Methods

    SendMessageAsyncINTERNAL(ChatMessage)

    Declaration
    protected override UniTask<ChatMessage> SendMessageAsyncINTERNAL(ChatMessage inputMessage)
    Parameters
    Type Name Description
    ChatMessage inputMessage
    Returns
    Type Description
    UniTask<ChatMessage>
    Overrides
    ChatbotComponent.SendMessageAsyncINTERNAL(ChatMessage)

    Implements

    IChatbot
    In this article
    Back to top Generated by DocFX