Gaunt Sloth Assistant
    Preparing search index...

    Agent simplifies interaction with LLM and reduces it to calling a few methods GthAgentRunner#init and GthAgentRunner#processMessages.

    Index

    Constructors

    Methods

    • Init is split into a separate method. This may create a number of connections, and we'd better have an instance by that moment, for the case things will go wrong, so we can wrap init into try-catch and then call #cleanup within finally.

      Parameters

      • command: undefined | GthCommand
      • configIn: GthConfig
      • OptionalcheckpointSaver: BaseCheckpointSaver<number>

      Returns Promise<void>

    • processMessages deals with both streaming and non-streaming approaches.

      Parameters

      • messages: BaseMessage[]

      Returns Promise<string>