@faapi/faapi 6.13.0 → 6.14.0
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.
|
@@ -86,6 +86,15 @@ interface AgentCore {
|
|
|
86
86
|
model?: string;
|
|
87
87
|
/** 最大对话轮数(config 块字面量提取),未声明时为 `undefined`;声明了但非数字字面量在构建期抛错 */
|
|
88
88
|
maxTurns?: number;
|
|
89
|
+
/**
|
|
90
|
+
* agent-as-tool 派发交接单说明(config 块字面量提取),未声明时为 `undefined`;
|
|
91
|
+
* 声明了但非字面量在构建期抛错
|
|
92
|
+
*
|
|
93
|
+
* 该 agent 被其他 agent 当 tool 派发时(`agents` 列表引用),工具 `input` 字段的
|
|
94
|
+
* schema description——告诉主控 LLM 该传什么样的交接单;未声明时 `@faapi/agent`
|
|
95
|
+
* 的 `buildToolDefinitions` 用框架默认文案
|
|
96
|
+
*/
|
|
97
|
+
inputDescription?: string;
|
|
89
98
|
}
|
|
90
99
|
/**
|
|
91
100
|
* Agent 完整元数据(文件型 agent)
|
|
@@ -105,7 +114,7 @@ interface AgentCore {
|
|
|
105
114
|
* - `name` — `@agent` JSDoc 覆盖值,或 `pathMeta.name`(目录推导)
|
|
106
115
|
* - `filePath` / `hasRun` — 由 `pathMeta` 透传
|
|
107
116
|
* - `description` — JSDoc 注释块自由文本(对 LLM 可见)
|
|
108
|
-
* - `systemPrompt` / `tools` / `agents` / `model` / `maxTurns` — config 块字面量提取
|
|
117
|
+
* - `systemPrompt` / `tools` / `agents` / `model` / `maxTurns` / `inputDescription` — config 块字面量提取
|
|
109
118
|
*/
|
|
110
119
|
interface AgentMetadata extends AgentCore {
|
|
111
120
|
/** 源码相对路径(从 `pathMeta` 透传),`loadAgentModule` 据此加载 `handler.js` 提取 `run` */
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as FaapiContext, F as FaapiMiddleware, I as InjectorMap, R as RouteManifest, W as WsRouteManifest, C as CorsOptions, H as HelmetOptions } from './routeTypes-
|
|
1
|
+
import { a as FaapiContext, F as FaapiMiddleware, I as InjectorMap, R as RouteManifest, W as WsRouteManifest, C as CorsOptions, H as HelmetOptions } from './routeTypes-C7yHYxPg.js';
|
|
2
2
|
import { Server } from 'node:http';
|
|
3
3
|
import { WebSocket } from 'ws';
|
|
4
4
|
|