ART Framework API Docs
    Preparing search index...

    Class AgentFactory

    Handles the instantiation and wiring of all core ART framework components based on provided configuration. This class performs the dependency injection needed to create a functional ArtInstance. It's typically used internally by the createArtInstance function.

    Index

    Constructors

    Methods

    • Creates an instance of the configured Agent Core (e.g., PESAgent) and injects all necessary initialized dependencies (managers, systems, etc.). Requires initialize() to have been successfully called beforehand.

      Returns IAgentCore

      An instance implementing the IAgentCore interface.

      If initialize() was not called or if essential components failed to initialize.

    • Gets the initialized State Manager instance.

      Returns null | StateManager

    • Gets the initialized Tool Registry instance.

      Returns null | ToolRegistry

    • Asynchronously initializes all core components based on the configuration. This includes setting up the storage adapter, repositories, managers, tool registry, reasoning engine, and UI system. This method MUST be called before createAgent().

      Returns Promise<void>

      A promise that resolves when initialization is complete.

      If configuration is invalid or initialization fails for a component.