Abstract
Optional
logger: LDLoggerOptional
Protected
Optional
Readonly
loggerAbstract
invokeInvoke the chat model with an array of messages. This method should convert messages to provider format, invoke the model, and return a ChatResponse with the result and metrics.
Array of LDMessage objects representing the conversation
Promise that resolves to a ChatResponse containing the model's response
Static
createStatic method that constructs an instance of the provider. Each provider implementation must provide their own static create method that accepts an AIConfig and returns a configured instance.
The LaunchDarkly AI configuration
Optional
logger: LDLoggerOptional logger for the provider
Optional
Promise that resolves to a configured provider instance
Generated using TypeDoc
Abstract base class for AI providers that implement chat model functionality. This class provides the contract that all provider implementations must follow to integrate with LaunchDarkly's tracking and configuration capabilities.
Following the AICHAT spec recommendation to use base classes with non-abstract methods for better extensibility and backwards compatibility.