Optional logger: LDLoggerOptional Private _modelPrivate _parametersProtected Optional Readonly loggerStatic createStatic factory method to create a Vercel AIProvider from an AI configuration.
Optional logger: LDLoggerOptional Static createAIMetricsCreate AI metrics information from a Vercel AI response. This method extracts token usage information and success status from Vercel AI responses and returns a LaunchDarkly AIMetrics object. Supports both v4 and v5 field names for backward compatibility.
Static createCreate a Vercel AI model from an AI configuration. This method creates a Vercel AI model based on the provider configuration.
The LaunchDarkly AI configuration
A Promise that resolves to a configured Vercel AI model
Static mapGenerated using TypeDoc
Vercel AI implementation of AIProvider. This provider integrates Vercel AI SDK with LaunchDarkly's tracking capabilities.