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

  • Conversate with the AI chatbot.

    User talks to the AI chatbot with the given content.

    When the user's conversation implies the AI chatbot to execute a function calling, the returned chat prompts will contain the function calling information like AgenticaExecuteHistory.

    Parameters

    • content: string

      The content to talk

    Returns Promise<AgenticaHistory<Model>[]>

    List of newly created chat prompts

  • Erase an event listener.

    Erase an event listener to stop calling the callback function.

    Type Parameters

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

    Parameters

    Returns this

  • Add an event listener.

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

    Type Parameters

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

    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