AI Config and tracker.

Hierarchy

  • LDAIConfig

Properties

enabled: boolean

Whether the configuration is enabled.

messages?: LDMessage[]

Optional prompt data.

Optional model configuration.

provider?: LDProviderConfig

Optional configuration for the provider.

toVercelAISDK: (<TMod>(provider, options?) => VercelAISDKConfig<TMod>)

Type declaration

    • <TMod>(provider, options?): VercelAISDKConfig<TMod>
    • Maps this AI config to a format usable direcly in Vercel AI SDK generateText() and streamText() methods.

      WARNING: this method can throw an exception if a Vercel AI SDK model cannot be determined.

      Type Parameters

      • TMod

      Parameters

      Returns VercelAISDKConfig<TMod>

      A configuration directly usable in Vercel AI SDK generateText() and streamText()

      Throws

      if a Vercel AI SDK model cannot be determined from the given provider parameter.

A tracker which can be used to generate analytics.

Generated using TypeDoc