@roll-agent/smart-reply-agent 1.3.1 → 1.3.2

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/SKILL.md CHANGED
@@ -32,7 +32,7 @@ npm 包名:`@roll-agent/smart-reply-agent`
32
32
 
33
33
  完整 inputSchema 可通过 `roll agent tools smart-reply-agent`(或 `--json`)查询。
34
34
 
35
- - `generate_reply(candidateMessage, conversationHistory?, candidateInfo?, preferredBrand?, channelType?, defaultWechatId?, industryVoiceId?, turnIndex?, modelConfig?, target)`
35
+ - `generate_reply(candidateMessage, conversationHistory?, candidateInfo?, preferredBrand?, preferredBrandId?, channelType?, defaultWechatId?, industryVoiceId?, turnIndex?, modelConfig?, target)`
36
36
  调用 Reply Authority Service 的 `POST /generate-signed-reply`,返回 `suggestedReply`、`signedEnvelope`、`envelopeExp`、`confidence`、`stage` 和可选 `diagnostics`。`target` 为必填,至少包含 `platform=zhipin`、`conversationId`、`candidateId`,以及以下两种 recruiter 绑定方式之一:
37
37
  1. 直接传完整绑定:`tenantId + recruiterBinding`
38
38
  2. 便利代理模式:`recruiterUsername`(smart-reply 会先调用 `POST /resolve-recruiter-binding` 解析出 `tenantId + recruiterBinding`)
@@ -54,8 +54,8 @@ npm 包名:`@roll-agent/smart-reply-agent`
54
54
 
55
55
  - 调用前应先尝试从页面读取 `candidateInfo.communicationPosition`、`candidateInfo.expectedLocation`、`candidateInfo.expectedPosition`
56
56
  - 能读到就如实透传;读不到就省略该字段
57
- - `preferredBrand` 为可选页面信号:若 `browser-use-agent` 提取到的 `communicationPosition` 含连字符类分隔符(`-` / `-` / `—` / `–`),则取第一段透传;没有分隔符就省略该字段
58
- - 严禁把通用岗位名(如“餐饮兼职服务员”“门店服务员”)或候选人现/前雇主公司名塞进 `preferredBrand`
57
+ - `preferredBrand` / `preferredBrandId` 为可选页面信号,只能原样透传 `browser-use-agent` `zhipin_get_candidate_info` 的输出字段:沟通职位带 `[品牌ID]` 尾缀(如 `咖啡早班店员-接受小白-免费咖啡[10027]`)时工具会输出 `preferredBrandId`,只透传它;老格式 `品牌名-职位` 时工具输出 `preferredBrand`,只透传它;都读不到就都省略
58
+ - 不要自行从 `communicationPosition` 解析品牌(服务端会以 `candidateInfo.communicationPosition` 为权威自行提取品牌 ID 并对账);严禁把通用岗位名(如“餐饮兼职服务员”“门店服务员”)、候选人现/前雇主公司名或新格式的第一段塞进 `preferredBrand`
59
59
 
60
60
  Minimal valid input 示例(代理模式):
61
61
 
@@ -136,7 +136,7 @@ npm 包名:`@roll-agent/smart-reply-agent`
136
136
  - `candidateInfo.communicationPosition`
137
137
  - `candidateInfo.expectedLocation`
138
138
  - `candidateInfo.expectedPosition`
139
- - `preferredBrand`:若 `browser-use-agent` 从 `communicationPosition` 里识别到“品牌-职位”格式,则透传第一段;否则保持缺省
139
+ - `preferredBrand` / `preferredBrandId`:原样透传 `zhipin_get_candidate_info` 的输出字段(新命名 `…[品牌ID]` 给 `preferredBrandId`,老命名“品牌-职位”给 `preferredBrand`,互斥);否则保持缺省
140
140
  - 如果读不到,保持缺省;不要用通用岗位名或候选人公司名冒充品牌
141
141
  4. 调用 `smart-reply-agent.generate_reply(..., target)`:
142
142
  - 直接模式:传 `target.tenantId + target.recruiterBinding`
@@ -40,6 +40,7 @@ export declare const generateReply: import("@roll-agent/sdk").ToolDefinition<{
40
40
  intent?: "nearby_store" | "store_address" | "expected_area" | undefined;
41
41
  }[] | undefined;
42
42
  preferredBrand?: string | undefined;
43
+ preferredBrandId?: number | undefined;
43
44
  channelType?: "public" | "private" | undefined;
44
45
  defaultWechatId?: string | undefined;
45
46
  industryVoiceId?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roll-agent/smart-reply-agent",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,8 +41,8 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "zod": "^3.25.76",
44
- "@roll-agent/sdk": "0.2.0",
45
- "@roll-agent/reply-authority-client": "0.3.0"
44
+ "@roll-agent/reply-authority-client": "0.4.0",
45
+ "@roll-agent/sdk": "0.2.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^22.0.0"