Agentica AI chatbot agent.

Agentica is a facade class for the super AI chatbot agent which performs LLM (Large Language Model) function calling from the user's conversation, and manages the prompt histories.

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

Samchon

Type Parameters

  • Model extends ILlmSchema.Model

Constructors

Methods

  • Erase an event listener.

    Erase an event listener to stop calling the callback function.

    Type Parameters

    • Type extends
          | "cancel"
          | "execute"
          | "describe"
          | "select"
          | "userMessage"
          | "assistantMessage"
          | "initialize"
          | "call"
          | "request"
          | "response"
          | "validate"
          | "jsonParseError"

    Parameters

    Returns this

  • Add an event listener.

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

    Type Parameters

    • Type extends
          | "cancel"
          | "execute"
          | "describe"
          | "select"
          | "userMessage"
          | "assistantMessage"
          | "initialize"
          | "call"
          | "request"
          | "response"
          | "validate"
          | "jsonParseError"

    Parameters

    • type: Type

      Type of event

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

      Callback function to be called whenever the event is emitted

    Returns this