Nestia A.I. chatbot agent.

NestiaChatAgent is a facade class for the super A.I. chatbot agent which performs the converstate user's conversation function with LLM (Large Language Model) function calling and manages the prompt histories.

To understand and compose the NestiaAgent class exactly, reference below types concentrating on the documentation comments please. Especially, you have to be careful about the INestiaAgentProps type which is used in the constructor function.

Jeongho Nam - https://github.com/samchon

Constructors

Methods

  • Erase an event listener.

    Erase an event listener to stop calling the callback function.

    Type Parameters

    • Type extends
          | "initialize"
          | "select"
          | "cancel"
          | "execute"
          | "describe"
          | "text"
          | "call"
          | "request"
          | "response"

    Parameters

    • type: Type

      Type of event

    • listener: (event: Mapper[Type]) => void | Promise<void>

      Callback function to erase

    Returns void

  • Add an event listener.

    Add an event listener to be called whenever the event is emitted.

    Type Parameters

    • Type extends
          | "initialize"
          | "select"
          | "cancel"
          | "execute"
          | "describe"
          | "text"
          | "call"
          | "request"
          | "response"

    Parameters

    • type: Type

      Type of event

    • listener: (event: Mapper[Type]) => void | Promise<void>

      Callback function to be called whenever the event is emitted

    Returns void