Class AIProviderAbstract

Abstract base class for AI providers.

An AIProvider is a per-provider factory: it is instantiated once per provider package and is responsible for constructing focused runtime capability objects via createModel, createAgent, and createAgentGraph.

Provider packages subclass AIProvider and override the methods they support. The default implementations return undefined, mirroring Python's base-class behaviour, so providers only need to implement the modes they actually support.

Hierarchy

  • AIProvider

Constructors

Properties

Methods

Constructors

Properties

_logger?: LDLogger

Methods

  • Create a Runner for an agent AI Config.

    Override in provider subclasses to return a configured Runner. Default implementation returns undefined.

    Parameters

    Returns Promise<undefined | Runner>

    Promise resolving to a Runner, or undefined if this provider does not support agent creation.

  • Create a Runner for a completion or judge AI Config.

    Override in provider subclasses to return a configured Runner. Default implementation returns undefined.

    Parameters

    Returns Promise<undefined | Runner>

    Promise resolving to a Runner, or undefined if this provider does not support model creation.

Generated using TypeDoc