The package that exports the prompts() helper used in new prompt files
(e.g. '@evalution/vercel-ai-sdk'). Used by PromptFileType.newPromptSkeleton.
Convert NormalizedPromptUpdates (what the UI sends back) into the raw property-name-keyed updates that PromptFileType.updateProperty and friends operate on.
Updates expressed in the normalized vocabulary.
OptionalcurrentValues: Record<string, PropValue>A Record keyed by the SDK's actual property names. Values may
be null (to remove) or a PropValue.
Executes a prompt config object.
The config object returned by the prompt function.
Optionaloptions: ExecuteConfigOptionsOptional execution options (trace id, prompt identity).
Returns model catalog information: the set of known providers and a curated list of popular models for this SDK.
Returns the list of model parameters that can be edited in the playground
UI for projects rooted at rootDir. Typically extracted from the SDK's
published TypeScript type definitions.
Absolute path to the project root.
Convert a low-level ParsedPrompt produced by a PromptFileType into a NormalizedPrompt that the UI can consume without knowing the SDK's specific property names or message shape.
The raw parsed prompt.
OptionalsetupCalled 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.
An ingestor to which TraceSinks should be added, or
undefined if tracing cannot be set up.
Adapter that provides values and execution for a particular AI SDK.
Pass an instance of this to FilePromptProvider via the
sdkoption.Each
SDKAdapterimplementation should be paired with a companion package (named by SDKAdapter.promptsHelperImport) that exports apromptsfunction satisfying the PromptsHelper type. That function is the user-facing entry point for defining prompts that work with Evalution. It accepts a PromptsHelperOptions and a factory that can optionally receive SDK-specific parameters. The factory should return a record of prompt functions. Prompt functions should return a configuration that enables OpenTelemetry reporting, if possible, with the attributes returned by getPromptSpanAttributes.