Nestia A.I. chatbot agent.

Agentica is a facade class for the super A.I. chatbot agent which performs the user's conversation function with LLM (Large Language Model) function calling 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 A.I. chatbot.

    User talks to the A.I. chatbot with the content.

    When the user's conversation implies the A.I. chatbot to execute a function calling, the returned chat prompts will contain the function calling information like IAgenticaPromptJson.IExecute.

    Parameters

    • content: string

      The content to talk

    Returns Promise<AgenticaPrompt<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"
          | "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"
          | "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