@vellumai/plugin-api 0.10.3-dev.202606290111.387e00c → 0.10.3-dev.202606290321.cb0d917
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 +17 -0
- package/index.js +1 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2266,6 +2266,23 @@ declare const INTERFACE_IDS: readonly ["macos", "ios", "cli", "telegram", "phone
|
|
|
2266
2266
|
|
|
2267
2267
|
declare type InterfaceId = (typeof INTERFACE_IDS)[number];
|
|
2268
2268
|
|
|
2269
|
+
/**
|
|
2270
|
+
* Provider stop-reason classification.
|
|
2271
|
+
*
|
|
2272
|
+
* Providers report an output-length cutoff under several normalized
|
|
2273
|
+
* finish-reason strings; {@link isMaxTokensStopReason} folds them into a single
|
|
2274
|
+
* "was this turn truncated at the token cap?" predicate.
|
|
2275
|
+
*
|
|
2276
|
+
* Kept dependency-free so it can be re-exported through `@vellumai/plugin-api`
|
|
2277
|
+
* without pulling the agent loop (its other caller) into the plugin API's
|
|
2278
|
+
* module graph.
|
|
2279
|
+
*/
|
|
2280
|
+
/**
|
|
2281
|
+
* Whether a provider stop reason denotes output truncated at the token cap.
|
|
2282
|
+
* Case- and whitespace-insensitive; a `null`/`undefined`/empty reason is false.
|
|
2283
|
+
*/
|
|
2284
|
+
export declare function isMaxTokensStopReason(stopReason: string | null | undefined): boolean;
|
|
2285
|
+
|
|
2269
2286
|
declare interface ListItem {
|
|
2270
2287
|
id: string;
|
|
2271
2288
|
title: string;
|
package/index.js
CHANGED
|
@@ -6,3 +6,4 @@ export const assistantEventHub = api.assistantEventHub;
|
|
|
6
6
|
export const doesSupportVision = api.doesSupportVision;
|
|
7
7
|
export const getConfiguredProvider = api.getConfiguredProvider;
|
|
8
8
|
export const getModelProfiles = api.getModelProfiles;
|
|
9
|
+
export const isMaxTokensStopReason = api.isMaxTokensStopReason;
|
package/package.json
CHANGED