@ampcode/plugin 0.0.0-20260816001043-ge65dd2b → 0.0.0-20260817001132-gbee24f5
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 +13 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -341,7 +341,7 @@ declare module '@ampcode/plugin' {
|
|
|
341
341
|
* Run `amp plugins show-agent-options --json` for the public model IDs intended for
|
|
342
342
|
* plugin agents.
|
|
343
343
|
*/
|
|
344
|
-
model:
|
|
344
|
+
model: PluginAgentModel
|
|
345
345
|
/** Instructions appended to Amp's base agent prompt. */
|
|
346
346
|
instructions: string
|
|
347
347
|
/**
|
|
@@ -561,6 +561,12 @@ declare module '@ampcode/plugin' {
|
|
|
561
561
|
/** Model identifier in `provider/model` format, such as `openai/gpt-5.6-sol`. */
|
|
562
562
|
export type PluginAIModel = `${PluginAIModelProvider}/${string}`
|
|
563
563
|
|
|
564
|
+
/**
|
|
565
|
+
* Model identifier for a custom agent. Providers outside Amp's built-in set require a matching
|
|
566
|
+
* AI router configured for the account at inference time.
|
|
567
|
+
*/
|
|
568
|
+
export type PluginAgentModel = `${string}/${string}`
|
|
569
|
+
|
|
564
570
|
export type PluginAIFieldSchema = {
|
|
565
571
|
type: string | string[]
|
|
566
572
|
description?: string
|
|
@@ -1662,6 +1668,12 @@ declare module '@ampcode/plugin' {
|
|
|
1662
1668
|
/** Tool name (must match ^[a-zA-Z0-9_-]+$) */
|
|
1663
1669
|
name: string
|
|
1664
1670
|
|
|
1671
|
+
/**
|
|
1672
|
+
* Human-readable display title shown in Amp clients instead of the raw
|
|
1673
|
+
* tool name, e.g. `Tap screen` instead of `sim_tap`. Not sent to the LLM.
|
|
1674
|
+
*/
|
|
1675
|
+
title?: string
|
|
1676
|
+
|
|
1665
1677
|
/** Description shown to the LLM explaining what the tool does */
|
|
1666
1678
|
description: string
|
|
1667
1679
|
|