@ampcode/plugin 0.0.0-20260801003003-gaa1db58 → 0.0.0-20260803003115-g5ad8721
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 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -288,6 +288,9 @@ declare module '@ampcode/plugin' {
|
|
|
288
288
|
| 'xhigh'
|
|
289
289
|
| 'max'
|
|
290
290
|
|
|
291
|
+
/** Features that plugin agents can enable on threads they create. */
|
|
292
|
+
export type AgentFeature = 'fast' | 'pro' | string
|
|
293
|
+
|
|
291
294
|
/**
|
|
292
295
|
* Amp built-in agent modes available to plugins. The `smart`, `deep`, and
|
|
293
296
|
* `rush` modes are deprecated: existing threads in those modes keep working,
|
|
@@ -331,6 +334,14 @@ declare module '@ampcode/plugin' {
|
|
|
331
334
|
tools?: AgentToolSelection
|
|
332
335
|
/** Optional reasoning effort override for models that support it. */
|
|
333
336
|
reasoningEffort?: AgentReasoningEffort
|
|
337
|
+
/**
|
|
338
|
+
* Features required on threads created from this agent. Omit this field to inherit
|
|
339
|
+
* the creating thread's features when the caller also omits
|
|
340
|
+
* `Agent.createThread({ features })`. Set it to an empty array to use no inherited
|
|
341
|
+
* features. A non-empty list becomes the required baseline. Callers can add features
|
|
342
|
+
* to that baseline, but cannot remove them.
|
|
343
|
+
*/
|
|
344
|
+
features?: readonly AgentFeature[]
|
|
334
345
|
/**
|
|
335
346
|
* Display shown for threads running this agent. Travels with the agent
|
|
336
347
|
* definition, so threads created from it — including by other plugins via
|
|
@@ -393,10 +404,13 @@ declare module '@ampcode/plugin' {
|
|
|
393
404
|
/** Show the created thread and make it active in the client when supported. */
|
|
394
405
|
show?: boolean
|
|
395
406
|
/**
|
|
396
|
-
*
|
|
397
|
-
*
|
|
407
|
+
* Additional features for the new thread. If a custom agent declares `features`,
|
|
408
|
+
* that list is the required baseline, including an empty list meaning no inherited
|
|
409
|
+
* features. Values supplied here are added to that baseline and cannot remove its
|
|
410
|
+
* features. For a built-in agent or a custom agent that omits `features`, omit this
|
|
411
|
+
* field to inherit the creating thread's features, or pass an empty array to clear them.
|
|
398
412
|
*/
|
|
399
|
-
features?: readonly
|
|
413
|
+
features?: readonly AgentFeature[]
|
|
400
414
|
/**
|
|
401
415
|
* Enable multiplayer for this many seconds. Multiplayer threads must run in an
|
|
402
416
|
* Orb and belong to a workspace. Valid values range from 5 minutes to 7 days.
|