@vellumai/plugin-api 0.12.2-dev.202609182314.c515b72 → 0.12.2-dev.202609190043.ee5ba34
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.
- package/index.d.ts +16 -0
- package/index.js +1 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -11254,6 +11254,14 @@ export declare function doesSupportVision(modelOrProfile: ModelProfileInfo | Res
|
|
|
11254
11254
|
|
|
11255
11255
|
declare type DrizzleDb = ReturnType<typeof drizzle<typeof schema>>;
|
|
11256
11256
|
|
|
11257
|
+
export declare interface EffectiveContextWindowInfo {
|
|
11258
|
+
provider: string;
|
|
11259
|
+
model: string;
|
|
11260
|
+
maxInputTokens: number;
|
|
11261
|
+
}
|
|
11262
|
+
|
|
11263
|
+
export declare type EffectiveContextWindowOptions = Pick<ResolveCallSiteOpts, "overrideProfile" | "forceOverrideProfile" | "selectionSeed">;
|
|
11264
|
+
|
|
11257
11265
|
/**
|
|
11258
11266
|
* Embed an input and return the raw dense vector (provider, model, and
|
|
11259
11267
|
* dimensions included), with no persistence.
|
|
@@ -11824,6 +11832,14 @@ export declare function getConversationToolSurface(conversationId: string): Prom
|
|
|
11824
11832
|
/** Fetch one document from the calling plugin's index, or null. */
|
|
11825
11833
|
export declare function getDocument(documentId: string): Promise<IndexedDocument | null>;
|
|
11826
11834
|
|
|
11835
|
+
/**
|
|
11836
|
+
* Resolve the provider, model, and effective input limit for one configured
|
|
11837
|
+
* call site. The result applies both the workspace override and the selected
|
|
11838
|
+
* model's catalog limit, using the same profile-selection options accepted by
|
|
11839
|
+
* {@link getConfiguredProvider}.
|
|
11840
|
+
*/
|
|
11841
|
+
export declare function getEffectiveContextWindow(callSite: LLMCallSite, options?: EffectiveContextWindowOptions): EffectiveContextWindowInfo;
|
|
11842
|
+
|
|
11827
11843
|
/** All messages of a conversation in insertion order. */
|
|
11828
11844
|
export declare function getMessages(conversationId: string): Promise<MessageRow[]>;
|
|
11829
11845
|
|
package/index.js
CHANGED
|
@@ -28,6 +28,7 @@ export const getConversationDirPath = api.getConversationDirPath;
|
|
|
28
28
|
export const getConversationProcessingStartedAt = api.getConversationProcessingStartedAt;
|
|
29
29
|
export const getConversationToolSurface = api.getConversationToolSurface;
|
|
30
30
|
export const getDocument = api.getDocument;
|
|
31
|
+
export const getEffectiveContextWindow = api.getEffectiveContextWindow;
|
|
31
32
|
export const getMessages = api.getMessages;
|
|
32
33
|
export const getModelProfiles = api.getModelProfiles;
|
|
33
34
|
export const getRecordedConversationToolSurface = api.getRecordedConversationToolSurface;
|
package/package.json
CHANGED