ReadonlydescriptionShort description of what this provider offers.
ReadonlydisplayHuman-readable name shown when choosing between providers.
ReadonlyiconSVG icon markup for this provider.
ReadonlyidUniquely identifies this provider when multiple providers are used.
Creates a new prompt from the given partial, or returns an AddPromptContext describing what additional inputs are needed.
When partial contains enough information the provider creates the
prompt and returns the full NormalizedPrompt. Otherwise it returns
an AddPromptContext whose fields describe the form the UI
should present to the user.
Optional — providers that do not support creating prompts may omit it.
Partially filled prompt data.
Executes a prompt.
ID of the prompt to run.
Positional arguments forwarded to the prompt function.
Optional execution settings; see ExecuteOptions.
Returns all prompts currently available from this provider.
Returns the model catalog (known providers and popular models) for this provider's underlying SDK.
Optional — providers that do not expose model info may omit it.
Returns the list of editable model parameters exposed by this provider's
underlying SDK (e.g. temperature, maxTokens).
Optional — providers that do not expose model parameters may omit it.
Returns the prompt with the given ID, or null if not found.
The prompt's unique identifier.
Renames a prompt and returns the updated prompt with its new ID.
Optional — providers that do not support renaming may omit it.
ID of the prompt to rename.
The new name for the prompt.
Performs whatever process-global setup this provider's tracing mechanism needs and returns the resulting TraceIngestor.
Optional — providers with no tracing support may omit it.
Applies normalized updates to a prompt's source and returns the fresh
prompt. Setting any field of updates to null removes the corresponding
property from the underlying source.
This method is optional; providers that do not support in-place editing may omit it.
ID of the prompt to update.
Updates expressed in the normalized vocabulary.
Registers a callback that is invoked whenever a prompt changes. Returns a cleanup function that stops the watcher when called.
Optional — providers that cannot detect live changes may omit it.
Invoked with a PromptChangeEvent for each change.
A no-argument function that unregisters the watcher.
A PromptProvider that discovers and serves prompts from files on the local file system (or any FileProvider).
Out of the box it scans for
**/*.prompt.tsfiles and parses them with TSPromptFileType. Pass a FilePromptProviderOptions to the constructor to customize this behavior. You must specify at least FilePromptProviderOptions.sdk.Example