ART Framework API Docs
    Preparing search index...

    Function createArtInstance

    The main factory function to create and initialize a complete ART framework instance. This is the recommended starting point for all users. It simplifies setup by assembling all necessary components based on the provided configuration.

    The configuration object for the ART instance.

    A promise that resolves to a ready-to-use ART instance.

    ArtInstanceConfig for configuration options.

    • High-level factory function to create and initialize a complete ART framework instance. This simplifies the setup process by handling the instantiation and wiring of all necessary components based on the provided configuration.

      Parameters

      • config: ArtInstanceConfig

        The configuration object specifying storage, reasoning, tools, etc.

      Returns Promise<ArtInstance>

      A promise that resolves to a ready-to-use ArtInstance object, providing access to the core process method and essential managers/systems.

      If initialization fails (e.g., invalid config, storage connection error).

      const art = await createArtInstance({
      storage: { type: 'indexedDB', dbName: 'myAgentDb' },
      reasoning: { provider: 'openai', apiKey: '...' },
      tools: [new CalculatorTool()]
      });
      const response = await art.process({ query: "Calculate 5*5", threadId: "thread1" });