Optional ReadonlydescriptionShort description of what this provider offers.
Optional ReadonlydisplayHuman-readable name shown when choosing between providers.
Optional ReadonlyiconSVG icon markup for this provider.
ReadonlyidUniquely identifies this provider when multiple providers are used.
OptionaladdCreates 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.
Optionaloptions: ExecuteOptionsOptional execution settings; see ExecuteOptions.
Returns all prompts currently available from this provider.
OptionalgetReturns 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.
OptionalgetReturns 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.
OptionalrenameRenames 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.
OptionalsetupPerforms whatever process-global setup this provider's tracing mechanism needs and returns the resulting TraceIngestor.
Optional — providers with no tracing support may omit it.
OptionalupdateApplies 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.
OptionalwatchRegisters 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 source of prompts that the playground can display and execute.
Implement this interface to add a custom prompt source — for example, prompts stored in a database or fetched from a remote API. If you simply need to support a file format other than TypeScript, use FilePromptProvider with a custom PromptFileType.