@vellumai/plugin-api 0.11.5-dev.202608251714.ee401f4 → 0.11.5-dev.202608251857.ea09afb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +27 -5
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -673,6 +673,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
673
673
  profile: z.ZodString;
674
674
  weight: z.ZodNumber;
675
675
  }, z.core.$strip>>>;
676
+ fallbackProfile: z.ZodOptional<z.ZodString>;
676
677
  }, z.core.$strip>>>;
677
678
  profileOrder: z.ZodDefault<z.ZodArray<z.ZodString>>;
678
679
  callSites: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
@@ -4550,11 +4551,11 @@ export declare function getDocument(documentId: string): Promise<IndexedDocument
4550
4551
  export declare function getMessages(conversationId: string): Promise<MessageRow[]>;
4551
4552
 
4552
4553
  /**
4553
- * List the workspace inference profiles a plugin can route to, in the order the
4554
- * `/model` picker presents them (`llm.profileOrder` first, then the rest
4555
- * alphabetically). Metadata-only entries without a provider, model, or mix are
4556
- * not routing targets, so plugins never see them. Disabled profiles are
4557
- * included and flagged via
4554
+ * List the workspace inference profiles a plugin can route to, in the order a
4555
+ * user-facing model picker presents them (`llm.profileOrder` first, then the
4556
+ * rest alphabetically). Managed backup routes are internal and omitted.
4557
+ * Metadata-only entries without a provider, model, or mix are not routing
4558
+ * targets, so plugins never see them. Disabled profiles are included and flagged via
4558
4559
  * {@link ModelProfileInfo.isDisabled}; weighted "mix" profiles are included and
4559
4560
  * flagged via {@link ModelProfileInfo.isMix}, since a mix is itself a valid
4560
4561
  * routing target (it resolves to one constituent per conversation).
@@ -5942,6 +5943,15 @@ export declare interface ProviderResponse {
5942
5943
  model: string;
5943
5944
  /** Provider that actually produced this response, which may differ from a wrapper provider name. */
5944
5945
  actualProvider?: string;
5946
+ /**
5947
+ * Inference profile key that actually governed this response when a
5948
+ * wrapper re-routed the request away from the caller's own resolution
5949
+ * (`RetryProvider`'s fallback-route escalation). `UsageTrackingProvider`
5950
+ * prefers this over re-resolving from the original request options, so a
5951
+ * successful fallback serve is attributed to the backup profile rather
5952
+ * than the failed primary's. Absent on the normal (non-rerouted) path.
5953
+ */
5954
+ actualInferenceProfile?: string;
5945
5955
  /**
5946
5956
  * Base URL the provider's HTTP client actually resolved to for this request,
5947
5957
  * read from the live SDK client instance rather than re-derived from config.
@@ -6462,6 +6472,18 @@ export declare interface SendMessageConfig {
6462
6472
  * request.
6463
6473
  */
6464
6474
  forceOverrideProfile?: boolean;
6475
+ /**
6476
+ * True when the caller appended {@link NATIVE_WEB_SEARCH_TOOL_NAME} purely
6477
+ * to activate the route's provider-native web search, rather than passing an
6478
+ * app-executed search tool of the same name (which is what runs when a
6479
+ * search backend like Brave or the platform search proxy is configured).
6480
+ * Only the caller can tell those apart, and a route change after that
6481
+ * decision has to: `RetryProvider` drops the tool on a backup that runs no
6482
+ * native search, and must not touch it when the daemon executes it itself.
6483
+ * A resolution/routing-time concern only; stripped before any provider wire
6484
+ * request.
6485
+ */
6486
+ nativeWebSearchSentinel?: boolean;
6465
6487
  /**
6466
6488
  * Per-conversation seed for deterministic `mix`-profile expansion. The agent
6467
6489
  * loop sets this to the conversation id so every resolver call this send
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.11.5-dev.202608251714.ee401f4",
3
+ "version": "0.11.5-dev.202608251857.ea09afb",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",