@roll-agent/smart-reply-agent 1.2.2 → 1.2.4

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
@@ -37,6 +37,12 @@ npm 包名:`@roll-agent/smart-reply-agent`
37
37
  1. 直接传完整绑定:`tenantId + recruiterBinding`
38
38
  2. 便利代理模式:`recruiterUsername`(smart-reply 会先调用 `POST /resolve-recruiter-binding` 解析出 `tenantId + recruiterBinding`)
39
39
 
40
+ `target.conversationId` / `target.candidateId` 的来源约束:
41
+
42
+ - 应直接复用 `browser-use-agent.zhipin_read_messages`、`browser-use-agent.zhipin_open_chat` 或 `browser-use-agent.zhipin_get_candidate_info` 的真实输出
43
+ - 不要由 orchestrator 根据 `candidateName` 或左侧列表 `index` 自行重建
44
+ - 不要跨轮次缓存 `index` 再推断 target;BOSS 左侧消息列表会实时重排,`index` 不是稳定主键
45
+
40
46
  招聘场景调用约束:
41
47
 
42
48
  - 调用前应先尝试从页面读取 `candidateInfo.communicationPosition`、`candidateInfo.expectedLocation`、`candidateInfo.expectedPosition`
@@ -96,6 +102,7 @@ npm 包名:`@roll-agent/smart-reply-agent`
96
102
 
97
103
  1. `browser-use-agent.zhipin_get_username()` → 获取当前 BOSS 账号 `username`
98
104
  2. `browser-use-agent` 读取候选人资料、聊天记录或当前页面上下文,并从 `zhipin_read_messages` / `zhipin_get_candidate_info` 获取 `conversationId + candidateId`
105
+ - 一旦拿到这两个 ID,后续整个链路都应原样复用,不要再退回 `index`
99
106
  3. 调用前先尝试补齐页面信号:
100
107
  - `candidateInfo.communicationPosition`
101
108
  - `candidateInfo.expectedLocation`
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{defineAgent as e}from"@roll-agent/sdk";import{defineTool as t}from"@roll-agent/sdk";import{z as r}from"zod";import{createHash as n}from"node:crypto";import{z as i}from"zod";var o=["REPLY_AUTHORITY_URL","REPLY_AUTHORITY_BEARER_TOKEN","REPLY_AUTHORITY_TIMEOUT_MS"],a=/^[0-9a-f]{8}$/,s=i.object({present:i.boolean(),fingerprint:i.string().regex(a).optional()}),c=i.record(s);function u(e,t=process.env){return Object.fromEntries(e.map(e=>{const r=t[e];return"string"==typeof r&&r.length>0?[e,{present:!0,fingerprint:d(r)}]:[e,{present:!1}]}))}function d(e){return n("sha256").update(e).digest("hex").slice(0,8)}var g=r.object({effectiveEnvSources:c}),l=t({name:"diagnostic_status",description:"返回 smart-reply 运行态进程中已声明环境变量的存在状态与短指纹",input:r.object({}),output:g,execute:async(e,t)=>(t.logger.info("Querying smart-reply diagnostic status"),{effectiveEnvSources:u(o)})});import{defineTool as p}from"@roll-agent/sdk";import{randomUUID as m}from"node:crypto";import{z as f}from"zod";import{z as I}from"zod";var y=I.object({name:I.string(),baseURL:I.string(),description:I.string()}),b=I.record(I.string(),y),h=I.object({chatModel:I.string().optional(),classifyModel:I.string().optional(),replyModel:I.string().optional(),providerConfigs:b.optional()});import{z as v}from"zod";var R=["trust_building","private_channel","qualify_candidate","job_consultation","interview_scheduling","onboard_followup"],w=v.enum(R);import{z as E}from"zod";var S=E.object({name:E.string().optional(),position:E.string().optional(),expectedPosition:E.string().optional(),communicationPosition:E.string().optional(),age:E.string().optional(),gender:E.string().optional(),experience:E.string().optional(),education:E.string().optional(),expectedSalary:E.string().optional(),expectedLocation:E.string().optional(),jobAddress:E.string().optional(),height:E.string().optional(),weight:E.string().optional(),healthCertificate:E.boolean().optional(),activeTime:E.string().optional(),info:E.array(E.string()).optional(),fullText:E.string().optional()}),T=f.object({platform:f.literal("zhipin"),username:f.string().min(1),accountId:f.string().min(1).optional()}),A=f.object({platform:f.literal("zhipin"),tenantId:f.string().min(1).optional(),conversationId:f.string().min(1),candidateId:f.string().min(1)}),_=A.extend({recruiterBinding:T.optional(),recruiterUsername:f.string().min(1).optional()}).superRefine((e,t)=>{const r=void 0!==e.recruiterBinding,n=void 0!==e.recruiterUsername;r||n||t.addIssue({code:f.ZodIssueCode.custom,message:"target.recruiterBinding 或 target.recruiterUsername 至少需要提供一个。",path:["recruiterBinding"]}),r&&!n&&void 0===e.tenantId&&t.addIssue({code:f.ZodIssueCode.custom,message:"直接传 target.recruiterBinding 时,target.tenantId 也必须显式提供。",path:["tenantId"]}),r&&n&&void 0!==e.recruiterBinding&&e.recruiterBinding.username!==e.recruiterUsername&&t.addIssue({code:f.ZodIssueCode.custom,message:"target.recruiterUsername 必须与 target.recruiterBinding.username 一致。",path:["recruiterUsername"]})}),B=A.extend({tenantId:f.string().min(1),recruiterBinding:T}),U=f.object({candidateMessage:f.string().describe("候选人发送的消息"),conversationHistory:f.array(f.string()).optional().describe("对话历史(最近几轮)"),candidateInfo:S.optional().describe("候选人基本信息"),preferredBrand:f.string().optional().describe("偏好品牌"),channelType:f.enum(["public","private"]).optional().describe("渠道类型: public(BOSS直聘) 或 private(微信)"),defaultWechatId:f.string().optional().describe("默认微信号"),industryVoiceId:f.string().optional().describe("行业语调ID"),turnIndex:f.number().int().min(1).optional().describe("当前会话回复轮次"),modelConfig:h.optional().describe("模型配置覆盖"),target:_.describe("签名绑定目标:租户、会话和候选人标识")}),x=U.omit({target:!0}).extend({target:B,requestId:f.string().optional()}),j=f.object({suggestedReply:f.string(),signedEnvelope:f.string().describe("Reply Authority Service v2 紧凑签名信封"),envelopeExp:f.number().int(),confidence:f.number(),stage:w,replyPolicySource:f.enum(["file","default"]),latencyMs:f.number().optional(),shouldExchangeWechat:f.boolean().optional(),error:f.string().optional(),diagnostics:f.record(f.unknown()).optional()}),q=f.object({platform:f.literal("zhipin"),username:f.string().min(1),accountId:f.string().min(1).optional()}),$=f.object({tenantId:f.string().min(1),recruiterBinding:T}),O=f.object({statusCode:f.number().int(),error:f.string(),message:f.string()}),z=3e4;function M(){const e=process.env.REPLY_AUTHORITY_TIMEOUT_MS?.trim();if(!e)return z;const t=Number.parseInt(e,10);return!Number.isInteger(t)||t<=0||String(t)!==e?z:t}var P=class extends Error{meta;constructor(e,t){super(`${e} (${N(t.meta)})`,{cause:t.cause}),this.name="ReplyAuthorityRequestError",this.meta=t.meta}};function Y(e){const t=process.env[e]?.trim();if(!t)throw new Error(`${e} 未配置,smart-reply-agent 无法调用 Reply Authority Service。`);return t}function L(){return{baseUrl:Y("REPLY_AUTHORITY_URL"),bearerToken:Y("REPLY_AUTHORITY_BEARER_TOKEN")}}function C(e,t){const r=e.endsWith("/")?e:`${e}/`;return new URL(t,r).toString()}function k(e,t){return{"Content-Type":"application/json",Authorization:`Bearer ${e.bearerToken}`,"x-request-id":t.requestId}}function H(e,t){const r=O.safeParse(t);return r.success?`Reply Authority Service 请求失败 (${e}): ${r.data.message}`:`Reply Authority Service 请求失败 (${e})`}function N(e){const t=[`url=${e.url}`,`timeoutMs=${String(e.timeoutMs)}`];return void 0!==e.requestId&&t.push(`requestId=${e.requestId}`),t.join(", ")}function J(e,t,r){return{url:C(e.baseUrl,t),timeoutMs:r.timeoutMs,requestId:r.requestId}}function W(e,t){return e instanceof P?e:e instanceof Error&&"AbortError"===e.name?new P("Reply Authority Service 请求超时。",{cause:e,meta:t}):e instanceof Error?new P(e.message,{cause:e,meta:t}):new P("Reply Authority Service 请求失败。",{cause:e,meta:t})}function Z(e,t,r,n){const i=e.safeParse(t);if(i.success)return i.data;throw new P(`${n} 响应校验失败。`,{cause:i.error,meta:r})}async function K(e){const t=await e.text();if(0===t.trim().length)return null;try{return JSON.parse(t)}catch{throw new Error("Reply Authority Service 返回了非 JSON 响应。")}}async function D(e,t,r,n){const i=J(e,t,n);try{const t=await fetch(i.url,{method:"POST",headers:k(e,n),body:JSON.stringify(r),signal:n.signal}),o=await K(t);if(!t.ok)throw new Error(H(t.status,o));return o}catch(e){throw W(e,i)}}function F(e){return q.parse({platform:e.platform,username:e.recruiterUsername})}async function Q(e,t,r){const n=F(t),i=await D(e,"resolve-recruiter-binding",n,r);return Z($,i,J(e,"resolve-recruiter-binding",r),"Reply Authority Service recruiter 解析")}function V(e,t,r){if(void 0!==t.tenantId&&t.tenantId!==e.tenantId)throw new P(`Reply Authority Service recruiter 解析结果与 target.tenantId 不一致:${e.tenantId}`,{meta:r});return{tenantId:e.tenantId,recruiterBinding:e.recruiterBinding}}async function G(e,t,r){if(void 0!==e.target.recruiterBinding&&void 0!==e.target.tenantId)return x.parse({...e,target:{platform:e.target.platform,tenantId:e.target.tenantId,conversationId:e.target.conversationId,candidateId:e.target.candidateId,recruiterBinding:e.target.recruiterBinding},requestId:r.requestId});const n=V(await Q(t,e.target,r),e.target,J(t,"resolve-recruiter-binding",r));return x.parse({...e,target:{platform:e.target.platform,tenantId:n.tenantId,conversationId:e.target.conversationId,candidateId:e.target.candidateId,recruiterBinding:n.recruiterBinding},requestId:r.requestId})}async function X(e){const t=U.parse(e),r=x.safeParse(t),n=L(),i=M(),o=new AbortController,a={signal:o.signal,timeoutMs:i,requestId:m()},s=setTimeout(()=>o.abort(),i);try{const e=r.success?x.parse({...r.data,requestId:r.data.requestId??a.requestId}):await G(t,n,a),i=await D(n,"generate-signed-reply",e,a);return Z(j,i,J(n,"generate-signed-reply",a),"Reply Authority Service 签名回复")}finally{clearTimeout(s)}}var ee=p({name:"generate_reply",description:"根据候选人消息生成智能招聘回复,并向 Reply Authority Service 请求签名信封;调用方必须提供 target 以绑定会话和招聘者身份,可直接传 tenantId+recruiterBinding,或只传 recruiterUsername 交给 smart-reply 代理解析。",input:U,output:j,execute:async(e,t)=>{t.logger.info(`Processing message: ${e.candidateMessage.slice(0,50)}...`);const r=await X(e);return t.logger.info(`Signed reply generated. Stage: ${r.stage}, Confidence: ${r.confidence}`),r}}),te=e({name:"smart-reply-agent",tools:[ee,l]});te.listen().catch(e=>{console.error("Fatal error:",e),process.exit(1)});
1
+ import{defineAgent as e}from"@roll-agent/sdk";import{defineTool as r}from"@roll-agent/sdk";import{z as t}from"zod";import{createHash as o}from"node:crypto";import{z as n}from"zod";var i=["REPLY_AUTHORITY_URL","REPLY_AUTHORITY_BEARER_TOKEN","REPLY_AUTHORITY_TIMEOUT_MS"],a=/^[0-9a-f]{8}$/,s=n.object({present:n.boolean(),fingerprint:n.string().regex(a).optional()}),c=n.record(s);function p(e,r=process.env){return Object.fromEntries(e.map(e=>{const t=r[e];return"string"==typeof t&&t.length>0?[e,{present:!0,fingerprint:l(t)}]:[e,{present:!1}]}))}function l(e){return o("sha256").update(e).digest("hex").slice(0,8)}var g=t.object({effectiveEnvSources:c}),m=r({name:"diagnostic_status",description:"返回 smart-reply 运行态进程中已声明环境变量的存在状态与短指纹",input:t.object({}),output:g,execute:async(e,r)=>(r.logger.info("Querying smart-reply diagnostic status"),{effectiveEnvSources:p(i)})});import{defineTool as f}from"@roll-agent/sdk";import{generateSignedReply as u,ReplyAuthorityRequestError as d}from"@roll-agent/reply-authority-client";import{CandidateInfoSchema as y,FunnelStageSchema as E,FunnelStageValues as R,GenerateReplyToolInputSchema as T,GenerateSignedReplyRequestSchema as _,GenerateSignedReplyResponseSchema as v,ModelConfigSchema as h,ProviderConfigSchema as O,ProviderConfigsSchema as S,RecruiterBindingSchema as U,ReplyAuthorityErrorResponseSchema as Y,ReplyAuthorityTargetSchema as b,ResolvedReplyAuthorityTargetSchema as x,ResolveRecruiterBindingRequestSchema as A,ResolveRecruiterBindingResponseSchema as I}from"@roll-agent/reply-authority-client";var j=f({name:"generate_reply",description:"根据候选人消息生成智能招聘回复,并向 Reply Authority Service 请求签名信封;调用方必须提供 target 以绑定会话和招聘者身份,可直接传 tenantId+recruiterBinding,或只传 recruiterUsername 交给 smart-reply 代理解析。",input:T,output:v,execute:async(e,r)=>{r.logger.info(`Processing message: ${e.candidateMessage.slice(0,50)}...`);const t=await u(e);return r.logger.info(`Signed reply generated. Stage: ${t.stage}, Confidence: ${t.confidence}`),t}}),L=e({name:"smart-reply-agent",tools:[j,m]});L.listen().catch(e=>{console.error("Fatal error:",e),process.exit(1)});
@@ -1,15 +1 @@
1
- import { type GenerateReplyToolInput, type GenerateSignedReplyResponse } from "../types/reply-authority.ts";
2
- interface ReplyAuthorityRequestMeta {
3
- readonly url: string;
4
- readonly timeoutMs: number;
5
- readonly requestId?: string;
6
- }
7
- interface ReplyAuthorityRequestErrorOptions extends ErrorOptions {
8
- readonly meta: ReplyAuthorityRequestMeta;
9
- }
10
- export declare class ReplyAuthorityRequestError extends Error {
11
- readonly meta: ReplyAuthorityRequestMeta;
12
- constructor(message: string, options: ReplyAuthorityRequestErrorOptions);
13
- }
14
- export declare function generateSignedReply(input: GenerateReplyToolInput): Promise<GenerateSignedReplyResponse>;
15
- export {};
1
+ export { generateSignedReply, ReplyAuthorityRequestError, } from "@roll-agent/reply-authority-client";
@@ -1,57 +1,2 @@
1
- import { z } from "zod";
2
- export declare const CandidateInfoSchema: z.ZodObject<{
3
- name: z.ZodOptional<z.ZodString>;
4
- position: z.ZodOptional<z.ZodString>;
5
- expectedPosition: z.ZodOptional<z.ZodString>;
6
- communicationPosition: z.ZodOptional<z.ZodString>;
7
- age: z.ZodOptional<z.ZodString>;
8
- gender: z.ZodOptional<z.ZodString>;
9
- experience: z.ZodOptional<z.ZodString>;
10
- education: z.ZodOptional<z.ZodString>;
11
- expectedSalary: z.ZodOptional<z.ZodString>;
12
- expectedLocation: z.ZodOptional<z.ZodString>;
13
- jobAddress: z.ZodOptional<z.ZodString>;
14
- height: z.ZodOptional<z.ZodString>;
15
- weight: z.ZodOptional<z.ZodString>;
16
- healthCertificate: z.ZodOptional<z.ZodBoolean>;
17
- activeTime: z.ZodOptional<z.ZodString>;
18
- info: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19
- fullText: z.ZodOptional<z.ZodString>;
20
- }, "strip", z.ZodTypeAny, {
21
- info?: string[] | undefined;
22
- name?: string | undefined;
23
- position?: string | undefined;
24
- expectedPosition?: string | undefined;
25
- communicationPosition?: string | undefined;
26
- age?: string | undefined;
27
- gender?: string | undefined;
28
- experience?: string | undefined;
29
- education?: string | undefined;
30
- expectedSalary?: string | undefined;
31
- expectedLocation?: string | undefined;
32
- jobAddress?: string | undefined;
33
- height?: string | undefined;
34
- weight?: string | undefined;
35
- healthCertificate?: boolean | undefined;
36
- activeTime?: string | undefined;
37
- fullText?: string | undefined;
38
- }, {
39
- info?: string[] | undefined;
40
- name?: string | undefined;
41
- position?: string | undefined;
42
- expectedPosition?: string | undefined;
43
- communicationPosition?: string | undefined;
44
- age?: string | undefined;
45
- gender?: string | undefined;
46
- experience?: string | undefined;
47
- education?: string | undefined;
48
- expectedSalary?: string | undefined;
49
- expectedLocation?: string | undefined;
50
- jobAddress?: string | undefined;
51
- height?: string | undefined;
52
- weight?: string | undefined;
53
- healthCertificate?: boolean | undefined;
54
- activeTime?: string | undefined;
55
- fullText?: string | undefined;
56
- }>;
57
- export type CandidateInfo = z.infer<typeof CandidateInfoSchema>;
1
+ export { CandidateInfoSchema } from "@roll-agent/reply-authority-client";
2
+ export type { CandidateInfo } from "@roll-agent/reply-authority-client";
@@ -1,4 +1,2 @@
1
- import { z } from "zod";
2
- export declare const FunnelStageValues: readonly ["trust_building", "private_channel", "qualify_candidate", "job_consultation", "interview_scheduling", "onboard_followup"];
3
- export declare const FunnelStageSchema: z.ZodEnum<["trust_building", "private_channel", "qualify_candidate", "job_consultation", "interview_scheduling", "onboard_followup"]>;
4
- export type FunnelStage = z.infer<typeof FunnelStageSchema>;
1
+ export { FunnelStageSchema, FunnelStageValues } from "@roll-agent/reply-authority-client";
2
+ export type { FunnelStage } from "@roll-agent/reply-authority-client";
@@ -1,66 +1,2 @@
1
- import { z } from "zod";
2
- export declare const ProviderConfigSchema: z.ZodObject<{
3
- name: z.ZodString;
4
- baseURL: z.ZodString;
5
- description: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- description: string;
8
- name: string;
9
- baseURL: string;
10
- }, {
11
- description: string;
12
- name: string;
13
- baseURL: string;
14
- }>;
15
- export declare const ProviderConfigsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
16
- name: z.ZodString;
17
- baseURL: z.ZodString;
18
- description: z.ZodString;
19
- }, "strip", z.ZodTypeAny, {
20
- description: string;
21
- name: string;
22
- baseURL: string;
23
- }, {
24
- description: string;
25
- name: string;
26
- baseURL: string;
27
- }>>;
28
- export declare const ModelConfigSchema: z.ZodObject<{
29
- chatModel: z.ZodOptional<z.ZodString>;
30
- classifyModel: z.ZodOptional<z.ZodString>;
31
- replyModel: z.ZodOptional<z.ZodString>;
32
- providerConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
33
- name: z.ZodString;
34
- baseURL: z.ZodString;
35
- description: z.ZodString;
36
- }, "strip", z.ZodTypeAny, {
37
- description: string;
38
- name: string;
39
- baseURL: string;
40
- }, {
41
- description: string;
42
- name: string;
43
- baseURL: string;
44
- }>>>;
45
- }, "strip", z.ZodTypeAny, {
46
- chatModel?: string | undefined;
47
- classifyModel?: string | undefined;
48
- replyModel?: string | undefined;
49
- providerConfigs?: Record<string, {
50
- description: string;
51
- name: string;
52
- baseURL: string;
53
- }> | undefined;
54
- }, {
55
- chatModel?: string | undefined;
56
- classifyModel?: string | undefined;
57
- replyModel?: string | undefined;
58
- providerConfigs?: Record<string, {
59
- description: string;
60
- name: string;
61
- baseURL: string;
62
- }> | undefined;
63
- }>;
64
- export type ProviderConfig = z.infer<typeof ProviderConfigSchema>;
65
- export type ProviderConfigs = z.infer<typeof ProviderConfigsSchema>;
66
- export type ModelConfig = z.infer<typeof ModelConfigSchema>;
1
+ export { ModelConfigSchema, ProviderConfigSchema, ProviderConfigsSchema, } from "@roll-agent/reply-authority-client";
2
+ export type { ModelConfig, ProviderConfig, ProviderConfigs, } from "@roll-agent/reply-authority-client";
@@ -1,785 +1,2 @@
1
- import { z } from "zod";
2
- export declare const RecruiterBindingSchema: z.ZodObject<{
3
- platform: z.ZodLiteral<"zhipin">;
4
- username: z.ZodString;
5
- accountId: z.ZodOptional<z.ZodString>;
6
- }, "strip", z.ZodTypeAny, {
7
- platform: "zhipin";
8
- username: string;
9
- accountId?: string | undefined;
10
- }, {
11
- platform: "zhipin";
12
- username: string;
13
- accountId?: string | undefined;
14
- }>;
15
- export declare const ReplyAuthorityTargetSchema: z.ZodEffects<z.ZodObject<{
16
- platform: z.ZodLiteral<"zhipin">;
17
- tenantId: z.ZodOptional<z.ZodString>;
18
- conversationId: z.ZodString;
19
- candidateId: z.ZodString;
20
- } & {
21
- recruiterBinding: z.ZodOptional<z.ZodObject<{
22
- platform: z.ZodLiteral<"zhipin">;
23
- username: z.ZodString;
24
- accountId: z.ZodOptional<z.ZodString>;
25
- }, "strip", z.ZodTypeAny, {
26
- platform: "zhipin";
27
- username: string;
28
- accountId?: string | undefined;
29
- }, {
30
- platform: "zhipin";
31
- username: string;
32
- accountId?: string | undefined;
33
- }>>;
34
- recruiterUsername: z.ZodOptional<z.ZodString>;
35
- }, "strip", z.ZodTypeAny, {
36
- platform: "zhipin";
37
- conversationId: string;
38
- candidateId: string;
39
- tenantId?: string | undefined;
40
- recruiterBinding?: {
41
- platform: "zhipin";
42
- username: string;
43
- accountId?: string | undefined;
44
- } | undefined;
45
- recruiterUsername?: string | undefined;
46
- }, {
47
- platform: "zhipin";
48
- conversationId: string;
49
- candidateId: string;
50
- tenantId?: string | undefined;
51
- recruiterBinding?: {
52
- platform: "zhipin";
53
- username: string;
54
- accountId?: string | undefined;
55
- } | undefined;
56
- recruiterUsername?: string | undefined;
57
- }>, {
58
- platform: "zhipin";
59
- conversationId: string;
60
- candidateId: string;
61
- tenantId?: string | undefined;
62
- recruiterBinding?: {
63
- platform: "zhipin";
64
- username: string;
65
- accountId?: string | undefined;
66
- } | undefined;
67
- recruiterUsername?: string | undefined;
68
- }, {
69
- platform: "zhipin";
70
- conversationId: string;
71
- candidateId: string;
72
- tenantId?: string | undefined;
73
- recruiterBinding?: {
74
- platform: "zhipin";
75
- username: string;
76
- accountId?: string | undefined;
77
- } | undefined;
78
- recruiterUsername?: string | undefined;
79
- }>;
80
- export declare const ResolvedReplyAuthorityTargetSchema: z.ZodObject<{
81
- platform: z.ZodLiteral<"zhipin">;
82
- conversationId: z.ZodString;
83
- candidateId: z.ZodString;
84
- } & {
85
- tenantId: z.ZodString;
86
- recruiterBinding: z.ZodObject<{
87
- platform: z.ZodLiteral<"zhipin">;
88
- username: z.ZodString;
89
- accountId: z.ZodOptional<z.ZodString>;
90
- }, "strip", z.ZodTypeAny, {
91
- platform: "zhipin";
92
- username: string;
93
- accountId?: string | undefined;
94
- }, {
95
- platform: "zhipin";
96
- username: string;
97
- accountId?: string | undefined;
98
- }>;
99
- }, "strip", z.ZodTypeAny, {
100
- platform: "zhipin";
101
- tenantId: string;
102
- conversationId: string;
103
- candidateId: string;
104
- recruiterBinding: {
105
- platform: "zhipin";
106
- username: string;
107
- accountId?: string | undefined;
108
- };
109
- }, {
110
- platform: "zhipin";
111
- tenantId: string;
112
- conversationId: string;
113
- candidateId: string;
114
- recruiterBinding: {
115
- platform: "zhipin";
116
- username: string;
117
- accountId?: string | undefined;
118
- };
119
- }>;
120
- export declare const GenerateReplyToolInputSchema: z.ZodObject<{
121
- candidateMessage: z.ZodString;
122
- conversationHistory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
123
- candidateInfo: z.ZodOptional<z.ZodObject<{
124
- name: z.ZodOptional<z.ZodString>;
125
- position: z.ZodOptional<z.ZodString>;
126
- expectedPosition: z.ZodOptional<z.ZodString>;
127
- communicationPosition: z.ZodOptional<z.ZodString>;
128
- age: z.ZodOptional<z.ZodString>;
129
- gender: z.ZodOptional<z.ZodString>;
130
- experience: z.ZodOptional<z.ZodString>;
131
- education: z.ZodOptional<z.ZodString>;
132
- expectedSalary: z.ZodOptional<z.ZodString>;
133
- expectedLocation: z.ZodOptional<z.ZodString>;
134
- jobAddress: z.ZodOptional<z.ZodString>;
135
- height: z.ZodOptional<z.ZodString>;
136
- weight: z.ZodOptional<z.ZodString>;
137
- healthCertificate: z.ZodOptional<z.ZodBoolean>;
138
- activeTime: z.ZodOptional<z.ZodString>;
139
- info: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
140
- fullText: z.ZodOptional<z.ZodString>;
141
- }, "strip", z.ZodTypeAny, {
142
- info?: string[] | undefined;
143
- name?: string | undefined;
144
- position?: string | undefined;
145
- expectedPosition?: string | undefined;
146
- communicationPosition?: string | undefined;
147
- age?: string | undefined;
148
- gender?: string | undefined;
149
- experience?: string | undefined;
150
- education?: string | undefined;
151
- expectedSalary?: string | undefined;
152
- expectedLocation?: string | undefined;
153
- jobAddress?: string | undefined;
154
- height?: string | undefined;
155
- weight?: string | undefined;
156
- healthCertificate?: boolean | undefined;
157
- activeTime?: string | undefined;
158
- fullText?: string | undefined;
159
- }, {
160
- info?: string[] | undefined;
161
- name?: string | undefined;
162
- position?: string | undefined;
163
- expectedPosition?: string | undefined;
164
- communicationPosition?: string | undefined;
165
- age?: string | undefined;
166
- gender?: string | undefined;
167
- experience?: string | undefined;
168
- education?: string | undefined;
169
- expectedSalary?: string | undefined;
170
- expectedLocation?: string | undefined;
171
- jobAddress?: string | undefined;
172
- height?: string | undefined;
173
- weight?: string | undefined;
174
- healthCertificate?: boolean | undefined;
175
- activeTime?: string | undefined;
176
- fullText?: string | undefined;
177
- }>>;
178
- preferredBrand: z.ZodOptional<z.ZodString>;
179
- channelType: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
180
- defaultWechatId: z.ZodOptional<z.ZodString>;
181
- industryVoiceId: z.ZodOptional<z.ZodString>;
182
- turnIndex: z.ZodOptional<z.ZodNumber>;
183
- modelConfig: z.ZodOptional<z.ZodObject<{
184
- chatModel: z.ZodOptional<z.ZodString>;
185
- classifyModel: z.ZodOptional<z.ZodString>;
186
- replyModel: z.ZodOptional<z.ZodString>;
187
- providerConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
188
- name: z.ZodString;
189
- baseURL: z.ZodString;
190
- description: z.ZodString;
191
- }, "strip", z.ZodTypeAny, {
192
- description: string;
193
- name: string;
194
- baseURL: string;
195
- }, {
196
- description: string;
197
- name: string;
198
- baseURL: string;
199
- }>>>;
200
- }, "strip", z.ZodTypeAny, {
201
- chatModel?: string | undefined;
202
- classifyModel?: string | undefined;
203
- replyModel?: string | undefined;
204
- providerConfigs?: Record<string, {
205
- description: string;
206
- name: string;
207
- baseURL: string;
208
- }> | undefined;
209
- }, {
210
- chatModel?: string | undefined;
211
- classifyModel?: string | undefined;
212
- replyModel?: string | undefined;
213
- providerConfigs?: Record<string, {
214
- description: string;
215
- name: string;
216
- baseURL: string;
217
- }> | undefined;
218
- }>>;
219
- target: z.ZodEffects<z.ZodObject<{
220
- platform: z.ZodLiteral<"zhipin">;
221
- tenantId: z.ZodOptional<z.ZodString>;
222
- conversationId: z.ZodString;
223
- candidateId: z.ZodString;
224
- } & {
225
- recruiterBinding: z.ZodOptional<z.ZodObject<{
226
- platform: z.ZodLiteral<"zhipin">;
227
- username: z.ZodString;
228
- accountId: z.ZodOptional<z.ZodString>;
229
- }, "strip", z.ZodTypeAny, {
230
- platform: "zhipin";
231
- username: string;
232
- accountId?: string | undefined;
233
- }, {
234
- platform: "zhipin";
235
- username: string;
236
- accountId?: string | undefined;
237
- }>>;
238
- recruiterUsername: z.ZodOptional<z.ZodString>;
239
- }, "strip", z.ZodTypeAny, {
240
- platform: "zhipin";
241
- conversationId: string;
242
- candidateId: string;
243
- tenantId?: string | undefined;
244
- recruiterBinding?: {
245
- platform: "zhipin";
246
- username: string;
247
- accountId?: string | undefined;
248
- } | undefined;
249
- recruiterUsername?: string | undefined;
250
- }, {
251
- platform: "zhipin";
252
- conversationId: string;
253
- candidateId: string;
254
- tenantId?: string | undefined;
255
- recruiterBinding?: {
256
- platform: "zhipin";
257
- username: string;
258
- accountId?: string | undefined;
259
- } | undefined;
260
- recruiterUsername?: string | undefined;
261
- }>, {
262
- platform: "zhipin";
263
- conversationId: string;
264
- candidateId: string;
265
- tenantId?: string | undefined;
266
- recruiterBinding?: {
267
- platform: "zhipin";
268
- username: string;
269
- accountId?: string | undefined;
270
- } | undefined;
271
- recruiterUsername?: string | undefined;
272
- }, {
273
- platform: "zhipin";
274
- conversationId: string;
275
- candidateId: string;
276
- tenantId?: string | undefined;
277
- recruiterBinding?: {
278
- platform: "zhipin";
279
- username: string;
280
- accountId?: string | undefined;
281
- } | undefined;
282
- recruiterUsername?: string | undefined;
283
- }>;
284
- }, "strip", z.ZodTypeAny, {
285
- candidateMessage: string;
286
- target: {
287
- platform: "zhipin";
288
- conversationId: string;
289
- candidateId: string;
290
- tenantId?: string | undefined;
291
- recruiterBinding?: {
292
- platform: "zhipin";
293
- username: string;
294
- accountId?: string | undefined;
295
- } | undefined;
296
- recruiterUsername?: string | undefined;
297
- };
298
- conversationHistory?: string[] | undefined;
299
- candidateInfo?: {
300
- info?: string[] | undefined;
301
- name?: string | undefined;
302
- position?: string | undefined;
303
- expectedPosition?: string | undefined;
304
- communicationPosition?: string | undefined;
305
- age?: string | undefined;
306
- gender?: string | undefined;
307
- experience?: string | undefined;
308
- education?: string | undefined;
309
- expectedSalary?: string | undefined;
310
- expectedLocation?: string | undefined;
311
- jobAddress?: string | undefined;
312
- height?: string | undefined;
313
- weight?: string | undefined;
314
- healthCertificate?: boolean | undefined;
315
- activeTime?: string | undefined;
316
- fullText?: string | undefined;
317
- } | undefined;
318
- preferredBrand?: string | undefined;
319
- channelType?: "public" | "private" | undefined;
320
- defaultWechatId?: string | undefined;
321
- industryVoiceId?: string | undefined;
322
- turnIndex?: number | undefined;
323
- modelConfig?: {
324
- chatModel?: string | undefined;
325
- classifyModel?: string | undefined;
326
- replyModel?: string | undefined;
327
- providerConfigs?: Record<string, {
328
- description: string;
329
- name: string;
330
- baseURL: string;
331
- }> | undefined;
332
- } | undefined;
333
- }, {
334
- candidateMessage: string;
335
- target: {
336
- platform: "zhipin";
337
- conversationId: string;
338
- candidateId: string;
339
- tenantId?: string | undefined;
340
- recruiterBinding?: {
341
- platform: "zhipin";
342
- username: string;
343
- accountId?: string | undefined;
344
- } | undefined;
345
- recruiterUsername?: string | undefined;
346
- };
347
- conversationHistory?: string[] | undefined;
348
- candidateInfo?: {
349
- info?: string[] | undefined;
350
- name?: string | undefined;
351
- position?: string | undefined;
352
- expectedPosition?: string | undefined;
353
- communicationPosition?: string | undefined;
354
- age?: string | undefined;
355
- gender?: string | undefined;
356
- experience?: string | undefined;
357
- education?: string | undefined;
358
- expectedSalary?: string | undefined;
359
- expectedLocation?: string | undefined;
360
- jobAddress?: string | undefined;
361
- height?: string | undefined;
362
- weight?: string | undefined;
363
- healthCertificate?: boolean | undefined;
364
- activeTime?: string | undefined;
365
- fullText?: string | undefined;
366
- } | undefined;
367
- preferredBrand?: string | undefined;
368
- channelType?: "public" | "private" | undefined;
369
- defaultWechatId?: string | undefined;
370
- industryVoiceId?: string | undefined;
371
- turnIndex?: number | undefined;
372
- modelConfig?: {
373
- chatModel?: string | undefined;
374
- classifyModel?: string | undefined;
375
- replyModel?: string | undefined;
376
- providerConfigs?: Record<string, {
377
- description: string;
378
- name: string;
379
- baseURL: string;
380
- }> | undefined;
381
- } | undefined;
382
- }>;
383
- export declare const GenerateSignedReplyRequestSchema: z.ZodObject<Omit<{
384
- candidateMessage: z.ZodString;
385
- conversationHistory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
386
- candidateInfo: z.ZodOptional<z.ZodObject<{
387
- name: z.ZodOptional<z.ZodString>;
388
- position: z.ZodOptional<z.ZodString>;
389
- expectedPosition: z.ZodOptional<z.ZodString>;
390
- communicationPosition: z.ZodOptional<z.ZodString>;
391
- age: z.ZodOptional<z.ZodString>;
392
- gender: z.ZodOptional<z.ZodString>;
393
- experience: z.ZodOptional<z.ZodString>;
394
- education: z.ZodOptional<z.ZodString>;
395
- expectedSalary: z.ZodOptional<z.ZodString>;
396
- expectedLocation: z.ZodOptional<z.ZodString>;
397
- jobAddress: z.ZodOptional<z.ZodString>;
398
- height: z.ZodOptional<z.ZodString>;
399
- weight: z.ZodOptional<z.ZodString>;
400
- healthCertificate: z.ZodOptional<z.ZodBoolean>;
401
- activeTime: z.ZodOptional<z.ZodString>;
402
- info: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
403
- fullText: z.ZodOptional<z.ZodString>;
404
- }, "strip", z.ZodTypeAny, {
405
- info?: string[] | undefined;
406
- name?: string | undefined;
407
- position?: string | undefined;
408
- expectedPosition?: string | undefined;
409
- communicationPosition?: string | undefined;
410
- age?: string | undefined;
411
- gender?: string | undefined;
412
- experience?: string | undefined;
413
- education?: string | undefined;
414
- expectedSalary?: string | undefined;
415
- expectedLocation?: string | undefined;
416
- jobAddress?: string | undefined;
417
- height?: string | undefined;
418
- weight?: string | undefined;
419
- healthCertificate?: boolean | undefined;
420
- activeTime?: string | undefined;
421
- fullText?: string | undefined;
422
- }, {
423
- info?: string[] | undefined;
424
- name?: string | undefined;
425
- position?: string | undefined;
426
- expectedPosition?: string | undefined;
427
- communicationPosition?: string | undefined;
428
- age?: string | undefined;
429
- gender?: string | undefined;
430
- experience?: string | undefined;
431
- education?: string | undefined;
432
- expectedSalary?: string | undefined;
433
- expectedLocation?: string | undefined;
434
- jobAddress?: string | undefined;
435
- height?: string | undefined;
436
- weight?: string | undefined;
437
- healthCertificate?: boolean | undefined;
438
- activeTime?: string | undefined;
439
- fullText?: string | undefined;
440
- }>>;
441
- preferredBrand: z.ZodOptional<z.ZodString>;
442
- channelType: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
443
- defaultWechatId: z.ZodOptional<z.ZodString>;
444
- industryVoiceId: z.ZodOptional<z.ZodString>;
445
- turnIndex: z.ZodOptional<z.ZodNumber>;
446
- modelConfig: z.ZodOptional<z.ZodObject<{
447
- chatModel: z.ZodOptional<z.ZodString>;
448
- classifyModel: z.ZodOptional<z.ZodString>;
449
- replyModel: z.ZodOptional<z.ZodString>;
450
- providerConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
451
- name: z.ZodString;
452
- baseURL: z.ZodString;
453
- description: z.ZodString;
454
- }, "strip", z.ZodTypeAny, {
455
- description: string;
456
- name: string;
457
- baseURL: string;
458
- }, {
459
- description: string;
460
- name: string;
461
- baseURL: string;
462
- }>>>;
463
- }, "strip", z.ZodTypeAny, {
464
- chatModel?: string | undefined;
465
- classifyModel?: string | undefined;
466
- replyModel?: string | undefined;
467
- providerConfigs?: Record<string, {
468
- description: string;
469
- name: string;
470
- baseURL: string;
471
- }> | undefined;
472
- }, {
473
- chatModel?: string | undefined;
474
- classifyModel?: string | undefined;
475
- replyModel?: string | undefined;
476
- providerConfigs?: Record<string, {
477
- description: string;
478
- name: string;
479
- baseURL: string;
480
- }> | undefined;
481
- }>>;
482
- target: z.ZodEffects<z.ZodObject<{
483
- platform: z.ZodLiteral<"zhipin">;
484
- tenantId: z.ZodOptional<z.ZodString>;
485
- conversationId: z.ZodString;
486
- candidateId: z.ZodString;
487
- } & {
488
- recruiterBinding: z.ZodOptional<z.ZodObject<{
489
- platform: z.ZodLiteral<"zhipin">;
490
- username: z.ZodString;
491
- accountId: z.ZodOptional<z.ZodString>;
492
- }, "strip", z.ZodTypeAny, {
493
- platform: "zhipin";
494
- username: string;
495
- accountId?: string | undefined;
496
- }, {
497
- platform: "zhipin";
498
- username: string;
499
- accountId?: string | undefined;
500
- }>>;
501
- recruiterUsername: z.ZodOptional<z.ZodString>;
502
- }, "strip", z.ZodTypeAny, {
503
- platform: "zhipin";
504
- conversationId: string;
505
- candidateId: string;
506
- tenantId?: string | undefined;
507
- recruiterBinding?: {
508
- platform: "zhipin";
509
- username: string;
510
- accountId?: string | undefined;
511
- } | undefined;
512
- recruiterUsername?: string | undefined;
513
- }, {
514
- platform: "zhipin";
515
- conversationId: string;
516
- candidateId: string;
517
- tenantId?: string | undefined;
518
- recruiterBinding?: {
519
- platform: "zhipin";
520
- username: string;
521
- accountId?: string | undefined;
522
- } | undefined;
523
- recruiterUsername?: string | undefined;
524
- }>, {
525
- platform: "zhipin";
526
- conversationId: string;
527
- candidateId: string;
528
- tenantId?: string | undefined;
529
- recruiterBinding?: {
530
- platform: "zhipin";
531
- username: string;
532
- accountId?: string | undefined;
533
- } | undefined;
534
- recruiterUsername?: string | undefined;
535
- }, {
536
- platform: "zhipin";
537
- conversationId: string;
538
- candidateId: string;
539
- tenantId?: string | undefined;
540
- recruiterBinding?: {
541
- platform: "zhipin";
542
- username: string;
543
- accountId?: string | undefined;
544
- } | undefined;
545
- recruiterUsername?: string | undefined;
546
- }>;
547
- }, "target"> & {
548
- target: z.ZodObject<{
549
- platform: z.ZodLiteral<"zhipin">;
550
- conversationId: z.ZodString;
551
- candidateId: z.ZodString;
552
- } & {
553
- tenantId: z.ZodString;
554
- recruiterBinding: z.ZodObject<{
555
- platform: z.ZodLiteral<"zhipin">;
556
- username: z.ZodString;
557
- accountId: z.ZodOptional<z.ZodString>;
558
- }, "strip", z.ZodTypeAny, {
559
- platform: "zhipin";
560
- username: string;
561
- accountId?: string | undefined;
562
- }, {
563
- platform: "zhipin";
564
- username: string;
565
- accountId?: string | undefined;
566
- }>;
567
- }, "strip", z.ZodTypeAny, {
568
- platform: "zhipin";
569
- tenantId: string;
570
- conversationId: string;
571
- candidateId: string;
572
- recruiterBinding: {
573
- platform: "zhipin";
574
- username: string;
575
- accountId?: string | undefined;
576
- };
577
- }, {
578
- platform: "zhipin";
579
- tenantId: string;
580
- conversationId: string;
581
- candidateId: string;
582
- recruiterBinding: {
583
- platform: "zhipin";
584
- username: string;
585
- accountId?: string | undefined;
586
- };
587
- }>;
588
- requestId: z.ZodOptional<z.ZodString>;
589
- }, "strip", z.ZodTypeAny, {
590
- candidateMessage: string;
591
- target: {
592
- platform: "zhipin";
593
- tenantId: string;
594
- conversationId: string;
595
- candidateId: string;
596
- recruiterBinding: {
597
- platform: "zhipin";
598
- username: string;
599
- accountId?: string | undefined;
600
- };
601
- };
602
- conversationHistory?: string[] | undefined;
603
- candidateInfo?: {
604
- info?: string[] | undefined;
605
- name?: string | undefined;
606
- position?: string | undefined;
607
- expectedPosition?: string | undefined;
608
- communicationPosition?: string | undefined;
609
- age?: string | undefined;
610
- gender?: string | undefined;
611
- experience?: string | undefined;
612
- education?: string | undefined;
613
- expectedSalary?: string | undefined;
614
- expectedLocation?: string | undefined;
615
- jobAddress?: string | undefined;
616
- height?: string | undefined;
617
- weight?: string | undefined;
618
- healthCertificate?: boolean | undefined;
619
- activeTime?: string | undefined;
620
- fullText?: string | undefined;
621
- } | undefined;
622
- preferredBrand?: string | undefined;
623
- channelType?: "public" | "private" | undefined;
624
- defaultWechatId?: string | undefined;
625
- industryVoiceId?: string | undefined;
626
- turnIndex?: number | undefined;
627
- modelConfig?: {
628
- chatModel?: string | undefined;
629
- classifyModel?: string | undefined;
630
- replyModel?: string | undefined;
631
- providerConfigs?: Record<string, {
632
- description: string;
633
- name: string;
634
- baseURL: string;
635
- }> | undefined;
636
- } | undefined;
637
- requestId?: string | undefined;
638
- }, {
639
- candidateMessage: string;
640
- target: {
641
- platform: "zhipin";
642
- tenantId: string;
643
- conversationId: string;
644
- candidateId: string;
645
- recruiterBinding: {
646
- platform: "zhipin";
647
- username: string;
648
- accountId?: string | undefined;
649
- };
650
- };
651
- conversationHistory?: string[] | undefined;
652
- candidateInfo?: {
653
- info?: string[] | undefined;
654
- name?: string | undefined;
655
- position?: string | undefined;
656
- expectedPosition?: string | undefined;
657
- communicationPosition?: string | undefined;
658
- age?: string | undefined;
659
- gender?: string | undefined;
660
- experience?: string | undefined;
661
- education?: string | undefined;
662
- expectedSalary?: string | undefined;
663
- expectedLocation?: string | undefined;
664
- jobAddress?: string | undefined;
665
- height?: string | undefined;
666
- weight?: string | undefined;
667
- healthCertificate?: boolean | undefined;
668
- activeTime?: string | undefined;
669
- fullText?: string | undefined;
670
- } | undefined;
671
- preferredBrand?: string | undefined;
672
- channelType?: "public" | "private" | undefined;
673
- defaultWechatId?: string | undefined;
674
- industryVoiceId?: string | undefined;
675
- turnIndex?: number | undefined;
676
- modelConfig?: {
677
- chatModel?: string | undefined;
678
- classifyModel?: string | undefined;
679
- replyModel?: string | undefined;
680
- providerConfigs?: Record<string, {
681
- description: string;
682
- name: string;
683
- baseURL: string;
684
- }> | undefined;
685
- } | undefined;
686
- requestId?: string | undefined;
687
- }>;
688
- export declare const GenerateSignedReplyResponseSchema: z.ZodObject<{
689
- suggestedReply: z.ZodString;
690
- signedEnvelope: z.ZodString;
691
- envelopeExp: z.ZodNumber;
692
- confidence: z.ZodNumber;
693
- stage: z.ZodEnum<["trust_building", "private_channel", "qualify_candidate", "job_consultation", "interview_scheduling", "onboard_followup"]>;
694
- replyPolicySource: z.ZodEnum<["file", "default"]>;
695
- latencyMs: z.ZodOptional<z.ZodNumber>;
696
- shouldExchangeWechat: z.ZodOptional<z.ZodBoolean>;
697
- error: z.ZodOptional<z.ZodString>;
698
- diagnostics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
699
- }, "strip", z.ZodTypeAny, {
700
- suggestedReply: string;
701
- signedEnvelope: string;
702
- envelopeExp: number;
703
- confidence: number;
704
- stage: "trust_building" | "private_channel" | "qualify_candidate" | "job_consultation" | "interview_scheduling" | "onboard_followup";
705
- replyPolicySource: "default" | "file";
706
- error?: string | undefined;
707
- latencyMs?: number | undefined;
708
- shouldExchangeWechat?: boolean | undefined;
709
- diagnostics?: Record<string, unknown> | undefined;
710
- }, {
711
- suggestedReply: string;
712
- signedEnvelope: string;
713
- envelopeExp: number;
714
- confidence: number;
715
- stage: "trust_building" | "private_channel" | "qualify_candidate" | "job_consultation" | "interview_scheduling" | "onboard_followup";
716
- replyPolicySource: "default" | "file";
717
- error?: string | undefined;
718
- latencyMs?: number | undefined;
719
- shouldExchangeWechat?: boolean | undefined;
720
- diagnostics?: Record<string, unknown> | undefined;
721
- }>;
722
- export declare const ResolveRecruiterBindingRequestSchema: z.ZodObject<{
723
- platform: z.ZodLiteral<"zhipin">;
724
- username: z.ZodString;
725
- accountId: z.ZodOptional<z.ZodString>;
726
- }, "strip", z.ZodTypeAny, {
727
- platform: "zhipin";
728
- username: string;
729
- accountId?: string | undefined;
730
- }, {
731
- platform: "zhipin";
732
- username: string;
733
- accountId?: string | undefined;
734
- }>;
735
- export declare const ResolveRecruiterBindingResponseSchema: z.ZodObject<{
736
- tenantId: z.ZodString;
737
- recruiterBinding: z.ZodObject<{
738
- platform: z.ZodLiteral<"zhipin">;
739
- username: z.ZodString;
740
- accountId: z.ZodOptional<z.ZodString>;
741
- }, "strip", z.ZodTypeAny, {
742
- platform: "zhipin";
743
- username: string;
744
- accountId?: string | undefined;
745
- }, {
746
- platform: "zhipin";
747
- username: string;
748
- accountId?: string | undefined;
749
- }>;
750
- }, "strip", z.ZodTypeAny, {
751
- tenantId: string;
752
- recruiterBinding: {
753
- platform: "zhipin";
754
- username: string;
755
- accountId?: string | undefined;
756
- };
757
- }, {
758
- tenantId: string;
759
- recruiterBinding: {
760
- platform: "zhipin";
761
- username: string;
762
- accountId?: string | undefined;
763
- };
764
- }>;
765
- export declare const ReplyAuthorityErrorResponseSchema: z.ZodObject<{
766
- statusCode: z.ZodNumber;
767
- error: z.ZodString;
768
- message: z.ZodString;
769
- }, "strip", z.ZodTypeAny, {
770
- error: string;
771
- message: string;
772
- statusCode: number;
773
- }, {
774
- error: string;
775
- message: string;
776
- statusCode: number;
777
- }>;
778
- export type RecruiterBinding = z.infer<typeof RecruiterBindingSchema>;
779
- export type ReplyAuthorityTarget = z.infer<typeof ReplyAuthorityTargetSchema>;
780
- export type ResolvedReplyAuthorityTarget = z.infer<typeof ResolvedReplyAuthorityTargetSchema>;
781
- export type GenerateReplyToolInput = z.infer<typeof GenerateReplyToolInputSchema>;
782
- export type GenerateSignedReplyRequest = z.infer<typeof GenerateSignedReplyRequestSchema>;
783
- export type GenerateSignedReplyResponse = z.infer<typeof GenerateSignedReplyResponseSchema>;
784
- export type ResolveRecruiterBindingRequest = z.infer<typeof ResolveRecruiterBindingRequestSchema>;
785
- export type ResolveRecruiterBindingResponse = z.infer<typeof ResolveRecruiterBindingResponseSchema>;
1
+ export { CandidateInfoSchema, FunnelStageSchema, FunnelStageValues, GenerateReplyToolInputSchema, GenerateSignedReplyRequestSchema, GenerateSignedReplyResponseSchema, ModelConfigSchema, ProviderConfigSchema, ProviderConfigsSchema, RecruiterBindingSchema, ReplyAuthorityErrorResponseSchema, ReplyAuthorityTargetSchema, ResolvedReplyAuthorityTargetSchema, ResolveRecruiterBindingRequestSchema, ResolveRecruiterBindingResponseSchema, } from "@roll-agent/reply-authority-client";
2
+ export type { CandidateInfo, FunnelStage, GenerateReplyToolInput, GenerateSignedReplyRequest, GenerateSignedReplyResponse, ModelConfig, ProviderConfig, ProviderConfigs, RecruiterBinding, ReplyAuthorityTarget, ResolvedReplyAuthorityTarget, ResolveRecruiterBindingRequest, ResolveRecruiterBindingResponse, } from "@roll-agent/reply-authority-client";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roll-agent/smart-reply-agent",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,8 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "zod": "^3.25.76",
44
- "@roll-agent/sdk": "0.1.5"
44
+ "@roll-agent/reply-authority-client": "0.1.1",
45
+ "@roll-agent/sdk": "0.1.6"
45
46
  },
46
47
  "devDependencies": {
47
48
  "@types/node": "^22.0.0"