evalution
    Preparing search index...

    Class VercelAISDK

    SDKAdapter implementation for the Vercel AI SDK.

    • getModelParameters reads CallSettings from the SDK's .d.ts bundle and surfaces parameters with simple types that can be edited in the UI.
    • executeConfig delegates to generateText.

    Implements

    Index

    Constructors

    Properties

    promptsHelperImport: "@evalution/vercel-ai-sdk" = PROMPTS_HELPER_CALL.import.from

    The package that exports the prompts() helper used in new prompt files (e.g. '@evalution/vercel-ai-sdk'). Used by PromptFileType.newPromptSkeleton.

    Methods

    • Returns model catalog information: the set of known providers and a curated list of popular models for this SDK.

      Returns Promise<
          {
              groups: {
                  Anthropic: { customValueTemplates: { function: ModelPropValue } };
                  Google: { customValueTemplates: { function: ModelPropValue } };
                  OpenAI: { customValueTemplates: { function: ModelPropValue } };
              };
              models: ModelInfo[];
              modelValueTypes: {
                  function: { description: string; label: string };
                  string: { description: string; label: string };
              };
          },
      >

    • Called once, during server startup, before any prompt config is built, to perform whatever setup this SDK's tracing mechanism needs (e.g. registering a native telemetry integration, or standing up an OpenTelemetry pipeline).

      If this SDK's tracing is built on OpenTelemetry, its implementation of this method should call setupGlobalOTelPipeline, which ensures the global pipeline is only set up once, even if other SDK adapters also call it.

      Optional — adapters with no tracing support may omit it.

      Returns Promise<TraceIngestor | undefined>

      An ingestor to which TraceSinks should be added, or undefined if tracing cannot be set up.