@anychat-ai/mcp 0.17.0 → 0.18.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.
- package/README.md +40 -3
- package/dist/tools/evaluations.d.ts +6 -0
- package/dist/tools/evaluations.js +520 -0
- package/dist/tools/evaluations.js.map +1 -0
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js +4 -2
- package/dist/tools/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ Flags: `--profile core|full` picks the tool set (default `full`, see [Profiles](
|
|
|
49
49
|
|
|
50
50
|
## Tools
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
166 tools, a 1:1 projection of the [Agent API](https://docs.anychat.ai/reference/agent-api/) grouped as the reference is (orient → Definition → Capabilities → Channels → People → Campaigns → Evaluations → Testers → Activity → Org → Docs). `npx -y @anychat-ai/mcp tools` prints the live table.
|
|
53
53
|
|
|
54
54
|
Every tool carries MCP annotations: `read` tools are `readOnlyHint`; `write` tools change configuration; `destructive` tools (deletes, outreach sends to real people, provisioning requests, imports over an existing agent, secret rotation) are `destructiveHint` so your host asks before running them.
|
|
55
55
|
|
|
@@ -57,7 +57,7 @@ Every tool carries MCP annotations: `read` tools are `readOnlyHint`; `write` too
|
|
|
57
57
|
|
|
58
58
|
Every tool definition (name, description, input schema) is sent to the model on every call, so a big table has a real per-turn cost. Two profiles trade breadth for weight:
|
|
59
59
|
|
|
60
|
-
- **`full`** (default) — all
|
|
60
|
+
- **`full`** (default) — all 166 tools.
|
|
61
61
|
- **`core`** — 62 tools, the everyday set: `whoami`; agents (list / get / create / update / export / import, apply template, catalogs); the whole Definition (identity, personality, objectives, guardrails, playbooks, message templates, `lint_agent`); the media library (list / add / update / delete); tool bindings (list / upsert); scheduling config; People field definitions; outreach config; product catalog (read); business info (read / replace); channels (list / get / request / bind); people (list / get / update, send outreach, list segments); testers (list); conversations / messages / logs / activity; org; docs. About half the tokens of `full`.
|
|
62
62
|
|
|
63
63
|
Pick one with `--profile core` on the CLI or `createServer({ profile: 'core' })` in code; the `Profile` column below shows which set each tool belongs to, and `npx -y @anychat-ai/mcp tools --profile core` lists just that set. Nothing else changes: `full` stays the default, and the `core` set only ever grows.
|
|
@@ -83,6 +83,8 @@ Pick one with `--profile core` on the CLI or `createServer({ profile: 'core' })`
|
|
|
83
83
|
| `apply_template_update` | destructive | `agents:write` | full | Apply a template update |
|
|
84
84
|
| `list_catalog_items` | read | `catalogs:read` | core | List a system catalog |
|
|
85
85
|
| `get_catalog_item` | read | `catalogs:read` | core | Get a catalog item |
|
|
86
|
+
| `set_agent_sandbox` | write | `agents:write` | full | Set sandbox mode |
|
|
87
|
+
| `create_synthetic_people` | write | `people:write` | full | Create synthetic people |
|
|
86
88
|
| `get_identity` | read | `agents:read` | core | Get agent identity |
|
|
87
89
|
| `update_identity` | write | `agents:write` | core | Update agent identity |
|
|
88
90
|
| `get_personality` | read | `agents:read` | core | Get agent personality |
|
|
@@ -174,13 +176,48 @@ Pick one with `--profile core` on the CLI or `createServer({ profile: 'core' })`
|
|
|
174
176
|
| `create_segment` | write | `people:write` | full | Create a people segment |
|
|
175
177
|
| `update_segment` | write | `people:write` | full | Replace a people segment |
|
|
176
178
|
| `delete_segment` | destructive | `people:write` | full | Delete a people segment |
|
|
179
|
+
| `create_campaign` | write | `agents:write` | full | Create campaign |
|
|
180
|
+
| `list_campaigns` | read | `agents:read` | full | List campaigns |
|
|
181
|
+
| `get_campaign` | read | `agents:read` | full | Get campaign |
|
|
182
|
+
| `update_campaign` | write | `agents:write` | full | Update campaign |
|
|
183
|
+
| `delete_campaign` | write | `agents:write` | full | Delete campaign |
|
|
184
|
+
| `stage_campaign` | write | `agents:write` | full | Stage campaign |
|
|
185
|
+
| `list_campaign_recipients` | read | `agents:read` | full | List campaign recipients |
|
|
186
|
+
| `start_campaign` | destructive | `agents:write` | full | Start campaign |
|
|
187
|
+
| `pause_campaign` | write | `agents:write` | full | Pause campaign |
|
|
188
|
+
| `resume_campaign` | write | `agents:write` | full | Resume campaign |
|
|
189
|
+
| `cancel_campaign` | destructive | `agents:write` | full | Cancel campaign |
|
|
190
|
+
| `get_campaign_report` | read | `agents:read` | full | Get campaign report |
|
|
191
|
+
| `preview_campaign_message` | read | `agents:read` | full | Preview campaign message |
|
|
192
|
+
| `list_evaluation_suites` | read | `agents:read` | full | List evaluation suites |
|
|
193
|
+
| `get_evaluation_suite` | read | `agents:read` | full | Get evaluation suite |
|
|
194
|
+
| `create_evaluation_suite` | write | `agents:write` | full | Create evaluation suite |
|
|
195
|
+
| `update_evaluation_suite` | write | `agents:write` | full | Update evaluation suite |
|
|
196
|
+
| `delete_evaluation_suite` | destructive | `agents:write` | full | Delete evaluation suite |
|
|
197
|
+
| `list_evaluation_cases` | read | `agents:read` | full | List evaluation cases |
|
|
198
|
+
| `get_evaluation_case` | read | `agents:read` | full | Get evaluation case |
|
|
199
|
+
| `create_evaluation_case` | write | `agents:write` | full | Create evaluation case |
|
|
200
|
+
| `update_evaluation_case` | write | `agents:write` | full | Update evaluation case |
|
|
201
|
+
| `delete_evaluation_case` | destructive | `agents:write` | full | Delete evaluation case |
|
|
202
|
+
| `preview_evaluation_case` | read | `agents:read` | full | Preview evaluation case |
|
|
203
|
+
| `start_evaluation_run` | write | `agents:write` | full | Start evaluation run |
|
|
204
|
+
| `pause_evaluation_run` | write | `agents:write` | full | Pause evaluation run |
|
|
205
|
+
| `resume_evaluation_run` | write | `agents:write` | full | Resume evaluation run |
|
|
206
|
+
| `cancel_evaluation_run` | write | `agents:write` | full | Cancel evaluation run |
|
|
207
|
+
| `pin_evaluation_run` | write | `agents:write` | full | Pin or unpin evaluation run |
|
|
208
|
+
| `list_evaluation_runs` | read | `agents:read` | full | List evaluation runs |
|
|
209
|
+
| `get_evaluation_run` | read | `agents:read` | full | Get evaluation run |
|
|
210
|
+
| `list_evaluation_results` | read | `agents:read` | full | List evaluation results |
|
|
211
|
+
| `get_evaluation_result` | read | `agents:read` | full | Get evaluation result |
|
|
212
|
+
| `get_evaluation_quota` | read | `agents:read` | full | Get evaluation quota |
|
|
213
|
+
| `get_evaluation_case_history` | read | `agents:read` | full | Get evaluation case history |
|
|
177
214
|
| `list_testers` | read | `agents:read` | core | List testers |
|
|
178
215
|
| `invite_tester` | destructive | `agents:write` | full | Invite tester |
|
|
179
216
|
| `set_tester_disabled` | write | `agents:write` | full | Disable or enable tester |
|
|
180
217
|
| `regenerate_tester_link` | destructive | `agents:write` | full | Regenerate tester sign-in link |
|
|
181
218
|
| `remove_tester` | destructive | `agents:write` | full | Remove tester |
|
|
182
219
|
| `list_messages` | read | `messages:read` | core | List messages |
|
|
183
|
-
| `
|
|
220
|
+
| `list_sessions` | read | `messages:read` | core | List sessions |
|
|
184
221
|
| `list_users` | read | `messages:read` | full | List users |
|
|
185
222
|
| `list_logs` | read | `messages:read` | core | List runtime logs |
|
|
186
223
|
| `list_turns` | read | `messages:read` | full | List turn traces |
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Evaluations — suites of authored cases run through the agent's real
|
|
3
|
+
* production pipeline against an ephemeral person, scored by deterministic
|
|
4
|
+
* checks and an LLM judge. Runs spend the agent's daily evaluation units.
|
|
5
|
+
*/
|
|
6
|
+
export declare const evaluationTools: import("../tool").AnyTool[];
|
|
@@ -0,0 +1,520 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.evaluationTools = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const tool_1 = require("../tool");
|
|
6
|
+
const evalPath = (agentId, sub = '') => `/agents/${encodeURIComponent(agentId)}/evaluations${sub}`;
|
|
7
|
+
const suitePath = (agentId, suiteId, sub = '') => evalPath(agentId, `/suites/${encodeURIComponent(suiteId)}${sub}`);
|
|
8
|
+
const casePath = (agentId, suiteId, caseId, sub = '') => suitePath(agentId, suiteId, `/cases/${encodeURIComponent(caseId)}${sub}`);
|
|
9
|
+
const runPath = (agentId, runId, sub = '') => evalPath(agentId, `/runs/${encodeURIComponent(runId)}${sub}`);
|
|
10
|
+
/*
|
|
11
|
+
* The case document — a hand-written zod mirror of the agent's
|
|
12
|
+
* `evaluation-case.schema.json` (draft-07). Closed objects are strict so a
|
|
13
|
+
* typo in a check key fails at the tool boundary, exactly as the API's lint
|
|
14
|
+
* would reject it.
|
|
15
|
+
*/
|
|
16
|
+
const systemEvent = zod_1.z.enum(['optOut', 'optIn', 'subscribed', 'unsubscribed']);
|
|
17
|
+
const fallback = zod_1.z
|
|
18
|
+
.string()
|
|
19
|
+
.max(4000)
|
|
20
|
+
.optional()
|
|
21
|
+
.describe('Text sent instead when the expected UI element is absent');
|
|
22
|
+
const personFixture = zod_1.z.strictObject({
|
|
23
|
+
fullName: zod_1.z.string().max(200).optional(),
|
|
24
|
+
firstName: zod_1.z.string().max(100).optional(),
|
|
25
|
+
lastName: zod_1.z.string().max(100).optional(),
|
|
26
|
+
email: zod_1.z.string().max(300).optional(),
|
|
27
|
+
phone: zod_1.z.string().max(50).optional(),
|
|
28
|
+
company: zod_1.z.string().max(200).optional(),
|
|
29
|
+
title: zod_1.z.string().max(200).optional(),
|
|
30
|
+
productInterest: zod_1.z.string().max(200).optional(),
|
|
31
|
+
status: zod_1.z.enum(['new', 'contacted', 'qualified', 'converted', 'lost']).optional(),
|
|
32
|
+
source: zod_1.z.string().max(200).optional(),
|
|
33
|
+
customFields: zod_1.z.record(zod_1.z.string(), zod_1.z.string().max(2000)).optional(),
|
|
34
|
+
assignedRepresentativeId: zod_1.z.string().max(200).optional(),
|
|
35
|
+
consent: zod_1.z
|
|
36
|
+
.strictObject({ status: zod_1.z.enum(['granted', 'denied', 'unknown']) })
|
|
37
|
+
.optional(),
|
|
38
|
+
tags: zod_1.z.array(zod_1.z.string().max(60)).optional(),
|
|
39
|
+
notes: zod_1.z.string().max(5000).optional(),
|
|
40
|
+
});
|
|
41
|
+
const scenarioSchema = zod_1.z
|
|
42
|
+
.strictObject({
|
|
43
|
+
channel: zod_1.z.enum(['rcs', 'sms', 'whatsapp', 'appleMessages', 'webchat']).optional(),
|
|
44
|
+
provider: zod_1.z.string().max(40).optional(),
|
|
45
|
+
person: personFixture
|
|
46
|
+
.nullable()
|
|
47
|
+
.optional()
|
|
48
|
+
.describe('The person the agent already knows (null = a stranger)'),
|
|
49
|
+
appointments: zod_1.z
|
|
50
|
+
.array(zod_1.z.strictObject({
|
|
51
|
+
startsIn: zod_1.z
|
|
52
|
+
.string()
|
|
53
|
+
.regex(/^-?P(?!$)(\d+D)?(T(\d+H)?(\d+M)?)?$/)
|
|
54
|
+
.describe('ISO-8601 duration from now, e.g. PT15M, P2D, -P1D'),
|
|
55
|
+
durationMinutes: zod_1.z.number().int().min(5).max(480).optional(),
|
|
56
|
+
representativeId: zod_1.z.string().max(200).optional(),
|
|
57
|
+
status: zod_1.z.enum(['scheduled', 'cancelled', 'completed']).optional(),
|
|
58
|
+
}))
|
|
59
|
+
.max(5)
|
|
60
|
+
.optional(),
|
|
61
|
+
start: zod_1.z
|
|
62
|
+
.strictObject({
|
|
63
|
+
inbound: zod_1.z.boolean().optional().describe('The person writes first (default)'),
|
|
64
|
+
outreach: zod_1.z
|
|
65
|
+
.strictObject({
|
|
66
|
+
playbookId: zod_1.z.string().max(200).optional(),
|
|
67
|
+
greetingTemplateId: zod_1.z.string().max(200).optional(),
|
|
68
|
+
formData: zod_1.z.record(zod_1.z.string(), zod_1.z.string().max(2000)).optional(),
|
|
69
|
+
campaign: zod_1.z.boolean().optional().describe('Template-only campaign opener'),
|
|
70
|
+
})
|
|
71
|
+
.optional()
|
|
72
|
+
.describe('Operator-originated opening'),
|
|
73
|
+
reminder: zod_1.z.boolean().optional().describe('Opens from an appointment reminder'),
|
|
74
|
+
resume: zod_1.z
|
|
75
|
+
.strictObject({ activePlaybook: zod_1.z.string().max(200) })
|
|
76
|
+
.optional()
|
|
77
|
+
.describe('Mid-conversation: prior history + this active playbook'),
|
|
78
|
+
})
|
|
79
|
+
.optional(),
|
|
80
|
+
history: zod_1.z
|
|
81
|
+
.array(zod_1.z.strictObject({
|
|
82
|
+
role: zod_1.z.enum(['user', 'assistant']),
|
|
83
|
+
content: zod_1.z.string().max(4000),
|
|
84
|
+
}))
|
|
85
|
+
.max(40)
|
|
86
|
+
.optional(),
|
|
87
|
+
clock: zod_1.z
|
|
88
|
+
.strictObject({
|
|
89
|
+
now: zod_1.z.string().optional().describe('Absolute ISO-8601 instant'),
|
|
90
|
+
weekday: zod_1.z
|
|
91
|
+
.enum([
|
|
92
|
+
'monday',
|
|
93
|
+
'tuesday',
|
|
94
|
+
'wednesday',
|
|
95
|
+
'thursday',
|
|
96
|
+
'friday',
|
|
97
|
+
'saturday',
|
|
98
|
+
'sunday',
|
|
99
|
+
])
|
|
100
|
+
.optional(),
|
|
101
|
+
time: zod_1.z
|
|
102
|
+
.string()
|
|
103
|
+
.regex(/^([01]\d|2[0-3]):[0-5]\d$/)
|
|
104
|
+
.optional()
|
|
105
|
+
.describe('HH:mm in timezone'),
|
|
106
|
+
timezone: zod_1.z.string().max(100).optional(),
|
|
107
|
+
})
|
|
108
|
+
.optional(),
|
|
109
|
+
stubs: zod_1.z
|
|
110
|
+
.record(zod_1.z.string(), zod_1.z.unknown())
|
|
111
|
+
.optional()
|
|
112
|
+
.describe('Stubbed custom-integration responses, keyed by tool id'),
|
|
113
|
+
})
|
|
114
|
+
.describe('The world the case runs in');
|
|
115
|
+
const turnSchema = zod_1.z.union([
|
|
116
|
+
zod_1.z.string().min(1).max(4000).describe('Free text the person sends'),
|
|
117
|
+
zod_1.z.strictObject({ chip: zod_1.z.string().max(200), fallback }),
|
|
118
|
+
zod_1.z.strictObject({ slot: zod_1.z.number().int().min(0).max(50), fallback }),
|
|
119
|
+
zod_1.z.strictObject({ confirm: zod_1.z.boolean(), fallback }),
|
|
120
|
+
zod_1.z.strictObject({ system: systemEvent }),
|
|
121
|
+
zod_1.z.strictObject({
|
|
122
|
+
action: zod_1.z.enum(['calendar', 'dial', 'url', 'viewLocation']),
|
|
123
|
+
label: zod_1.z.string().max(200).optional(),
|
|
124
|
+
}),
|
|
125
|
+
zod_1.z.strictObject({
|
|
126
|
+
media: zod_1.z.enum(['image', 'video']),
|
|
127
|
+
url: zod_1.z.string().max(2000),
|
|
128
|
+
text: zod_1.z.string().max(4000).optional(),
|
|
129
|
+
}),
|
|
130
|
+
zod_1.z.strictObject({
|
|
131
|
+
simulate: zod_1.z.strictObject({
|
|
132
|
+
goal: zod_1.z.string().max(2000),
|
|
133
|
+
persona: zod_1.z.string().max(2000).optional(),
|
|
134
|
+
knows: zod_1.z.array(zod_1.z.string().max(500)).max(20).optional(),
|
|
135
|
+
until: zod_1.z.string().max(1000).optional(),
|
|
136
|
+
maxTurns: zod_1.z.number().int().min(1).max(20).optional(),
|
|
137
|
+
}),
|
|
138
|
+
}),
|
|
139
|
+
]);
|
|
140
|
+
const checksSchema = zod_1.z.strictObject({
|
|
141
|
+
finalReplyNonEmpty: zod_1.z.boolean().optional(),
|
|
142
|
+
pickerShown: zod_1.z.boolean().optional(),
|
|
143
|
+
appointmentCreated: zod_1.z.boolean().optional(),
|
|
144
|
+
activeAppointments: zod_1.z.number().int().min(0).optional(),
|
|
145
|
+
outcomes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
146
|
+
activePlaybookAtEnd: zod_1.z.string().optional(),
|
|
147
|
+
personFields: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
148
|
+
chipsOnAnyTurn: zod_1.z.array(zod_1.z.string()).optional(),
|
|
149
|
+
chipsOnLastMessage: zod_1.z.boolean().optional(),
|
|
150
|
+
textIncludes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
151
|
+
textExcludes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
152
|
+
textMatches: zod_1.z.array(zod_1.z.string()).optional(),
|
|
153
|
+
toolsCalled: zod_1.z.record(zod_1.z.string(), zod_1.z.number().int().min(0)).optional(),
|
|
154
|
+
toolsNotCalled: zod_1.z.array(zod_1.z.string()).optional(),
|
|
155
|
+
noWarnings: zod_1.z.boolean().optional(),
|
|
156
|
+
maxModelCallsPerTurn: zod_1.z.number().int().min(1).optional(),
|
|
157
|
+
maxTurnsToOutcome: zod_1.z.number().int().min(1).optional(),
|
|
158
|
+
replyCount: zod_1.z
|
|
159
|
+
.strictObject({
|
|
160
|
+
min: zod_1.z.number().int().min(0).optional(),
|
|
161
|
+
max: zod_1.z.number().int().min(0).optional(),
|
|
162
|
+
})
|
|
163
|
+
.optional(),
|
|
164
|
+
noReplyTo: zod_1.z.array(systemEvent).optional(),
|
|
165
|
+
});
|
|
166
|
+
const dimensionScore = zod_1.z.number().int().min(1).max(5).optional();
|
|
167
|
+
const judgeSchema = zod_1.z.strictObject({
|
|
168
|
+
criteria: zod_1.z
|
|
169
|
+
.array(zod_1.z.strictObject({
|
|
170
|
+
id: zod_1.z.string().regex(/^[a-z0-9][a-z0-9-]{0,58}$/),
|
|
171
|
+
text: zod_1.z.string().min(1).max(1000),
|
|
172
|
+
}))
|
|
173
|
+
.max(20)
|
|
174
|
+
.optional()
|
|
175
|
+
.describe('Pass/fail statements about the transcript'),
|
|
176
|
+
dimensions: zod_1.z
|
|
177
|
+
.strictObject({
|
|
178
|
+
natural: dimensionScore,
|
|
179
|
+
responsive: dimensionScore,
|
|
180
|
+
concise: dimensionScore,
|
|
181
|
+
honest: dimensionScore,
|
|
182
|
+
coherent: dimensionScore,
|
|
183
|
+
})
|
|
184
|
+
.optional()
|
|
185
|
+
.describe('Minimum 1–5 score per dimension; omit = informational'),
|
|
186
|
+
model: zod_1.z.string().max(80).optional(),
|
|
187
|
+
});
|
|
188
|
+
/** The authored case document (ids live outside it). */
|
|
189
|
+
const caseDocumentShape = {
|
|
190
|
+
key: zod_1.z
|
|
191
|
+
.string()
|
|
192
|
+
.regex(/^[a-z0-9][a-z0-9-]{0,118}$/)
|
|
193
|
+
.optional()
|
|
194
|
+
.describe('Slug, unique within the suite'),
|
|
195
|
+
title: zod_1.z.string().min(1).max(300),
|
|
196
|
+
notes: zod_1.z.string().max(4000).optional(),
|
|
197
|
+
tags: zod_1.z.array(zod_1.z.string().max(60)).max(20).optional(),
|
|
198
|
+
scenario: scenarioSchema.optional(),
|
|
199
|
+
turns: zod_1.z.array(turnSchema).min(1).max(40).describe('The person’s side, one per turn'),
|
|
200
|
+
expect: zod_1.z
|
|
201
|
+
.strictObject({ checks: checksSchema.optional(), judge: judgeSchema.optional() })
|
|
202
|
+
.optional(),
|
|
203
|
+
samples: zod_1.z
|
|
204
|
+
.number()
|
|
205
|
+
.int()
|
|
206
|
+
.min(1)
|
|
207
|
+
.max(5)
|
|
208
|
+
.optional()
|
|
209
|
+
.describe('Repetitions per run; the case passes only if every sample passes'),
|
|
210
|
+
};
|
|
211
|
+
const caseDocumentSchema = zod_1.z.strictObject(caseDocumentShape);
|
|
212
|
+
const suiteDefaultsSchema = zod_1.z
|
|
213
|
+
.strictObject({
|
|
214
|
+
scenario: zod_1.z
|
|
215
|
+
.strictObject({
|
|
216
|
+
channel: zod_1.z
|
|
217
|
+
.enum(['rcs', 'sms', 'whatsapp', 'appleMessages', 'webchat'])
|
|
218
|
+
.optional(),
|
|
219
|
+
provider: zod_1.z.string().max(40).optional(),
|
|
220
|
+
})
|
|
221
|
+
.optional(),
|
|
222
|
+
samples: zod_1.z.number().int().min(1).max(5).optional(),
|
|
223
|
+
judge: zod_1.z.strictObject({ model: zod_1.z.string().max(80).optional() }).optional(),
|
|
224
|
+
simulate: zod_1.z.strictObject({ model: zod_1.z.string().max(80).optional() }).optional(),
|
|
225
|
+
})
|
|
226
|
+
.describe('Merged UNDER every case in the suite (the case always wins)');
|
|
227
|
+
/** What a model needs to author a case; carried once, on create_evaluation_case. */
|
|
228
|
+
const CASE_DOCUMENT_GUIDE = 'A case is one situation the agent must handle well, in three parts. ' +
|
|
229
|
+
'SCENARIO = the world it runs in: channel, the person the agent already knows (a People fixture, or null for a stranger), existing appointments (startsIn relative to now), how the conversation opens (start.inbound | start.outreach | start.reminder | start.resume), prior history, clock, and stubbed custom-integration responses. ' +
|
|
230
|
+
'TURNS = the person’s side, one directive per turn: a plain string; { chip } taps a suggestion (fallback text if absent); { slot } picks the Nth offered time slot; { confirm } answers yes/no; { system: optOut|optIn|subscribed|unsubscribed } raises a channel event; { action: calendar|dial|url|viewLocation } taps a rich action; { media: image|video, url } sends an attachment; { simulate: { goal, persona?, knows?, until?, maxTurns? } } hands the rest of the conversation to an LLM-played person. ' +
|
|
231
|
+
'EXPECT.CHECKS is a CLOSED vocabulary (unknown keys are rejected): finalReplyNonEmpty (last agent turn has text); pickerShown (a time-slot picker was offered); appointmentCreated; activeAppointments (count at end); outcomes (objective outcomes recorded); activePlaybookAtEnd; personFields (People fields set to these values); chipsOnAnyTurn (these suggestions offered at least once); chipsOnLastMessage; textIncludes / textExcludes (substrings across agent text); textMatches (regexes); toolsCalled (capability id → exact call count); toolsNotCalled; noWarnings (no runtime warnings); maxModelCallsPerTurn; maxTurnsToOutcome; replyCount { min, max } (agent messages per person turn); noReplyTo (the agent stays silent on these system events). ' +
|
|
232
|
+
'EXPECT.JUDGE = criteria [{ id, text }] an LLM judge scores pass/fail with quoted evidence, plus optional minimum 1–5 scores per standard dimension (natural, responsive, concise, honest, coherent). ' +
|
|
233
|
+
'samples (1–5) repeats the case; it passes only if every sample passes. Suite defaults (channel/provider, samples, judge model) merge under the document.';
|
|
234
|
+
/**
|
|
235
|
+
* Evaluations — suites of authored cases run through the agent's real
|
|
236
|
+
* production pipeline against an ephemeral person, scored by deterministic
|
|
237
|
+
* checks and an LLM judge. Runs spend the agent's daily evaluation units.
|
|
238
|
+
*/
|
|
239
|
+
exports.evaluationTools = [
|
|
240
|
+
(0, tool_1.defineTool)({
|
|
241
|
+
name: 'list_evaluation_suites',
|
|
242
|
+
title: 'List evaluation suites',
|
|
243
|
+
description: 'List an agent’s evaluation suites with caseCount and lastRun (status + pass/fail counts). Maps to GET /v1/orgs/{org}/agents/{agent}/evaluations/suites.',
|
|
244
|
+
kind: 'read',
|
|
245
|
+
scope: 'agents:read',
|
|
246
|
+
roleFloor: 'viewer',
|
|
247
|
+
input: { agentId: zod_1.z.string().describe('Agent id') },
|
|
248
|
+
run: async ({ client }, { agentId }) => client.get(await client.orgPath(evalPath(agentId, '/suites'))),
|
|
249
|
+
}),
|
|
250
|
+
(0, tool_1.defineTool)({
|
|
251
|
+
name: 'get_evaluation_suite',
|
|
252
|
+
title: 'Get evaluation suite',
|
|
253
|
+
description: 'Fetch one evaluation suite: name, description, defaults (merged under every case), tags. Maps to GET /v1/orgs/{org}/agents/{agent}/evaluations/suites/{suite}.',
|
|
254
|
+
kind: 'read',
|
|
255
|
+
scope: 'agents:read',
|
|
256
|
+
roleFloor: 'viewer',
|
|
257
|
+
input: { agentId: zod_1.z.string(), suiteId: zod_1.z.string() },
|
|
258
|
+
run: async ({ client }, { agentId, suiteId }) => client.get(await client.orgPath(suitePath(agentId, suiteId))),
|
|
259
|
+
}),
|
|
260
|
+
(0, tool_1.defineTool)({
|
|
261
|
+
name: 'create_evaluation_suite',
|
|
262
|
+
title: 'Create evaluation suite',
|
|
263
|
+
description: 'Create an evaluation suite, optionally seeded with case documents (same shape as create_evaluation_case; each returned case carries its lint findings). Maps to POST /v1/orgs/{org}/agents/{agent}/evaluations/suites.',
|
|
264
|
+
kind: 'write',
|
|
265
|
+
scope: 'agents:write',
|
|
266
|
+
roleFloor: 'editor',
|
|
267
|
+
input: {
|
|
268
|
+
agentId: zod_1.z.string(),
|
|
269
|
+
name: zod_1.z.string().min(1).max(120),
|
|
270
|
+
description: zod_1.z.string().max(2000).optional(),
|
|
271
|
+
defaults: suiteDefaultsSchema.optional(),
|
|
272
|
+
tags: zod_1.z.array(zod_1.z.string().max(60)).max(20).optional(),
|
|
273
|
+
cases: zod_1.z.array(caseDocumentSchema).optional(),
|
|
274
|
+
},
|
|
275
|
+
run: async ({ client }, { agentId, ...body }) => client.post(await client.orgPath(evalPath(agentId, '/suites')), body),
|
|
276
|
+
}),
|
|
277
|
+
(0, tool_1.defineTool)({
|
|
278
|
+
name: 'update_evaluation_suite',
|
|
279
|
+
title: 'Update evaluation suite',
|
|
280
|
+
description: 'Edit a suite’s name, description, defaults, or tags (fields omitted are unchanged; cases are managed with the case tools). Maps to PATCH /v1/orgs/{org}/agents/{agent}/evaluations/suites/{suite}.',
|
|
281
|
+
kind: 'write',
|
|
282
|
+
scope: 'agents:write',
|
|
283
|
+
roleFloor: 'editor',
|
|
284
|
+
input: {
|
|
285
|
+
agentId: zod_1.z.string(),
|
|
286
|
+
suiteId: zod_1.z.string(),
|
|
287
|
+
name: zod_1.z.string().min(1).max(120).optional(),
|
|
288
|
+
description: zod_1.z.string().max(2000).optional(),
|
|
289
|
+
defaults: suiteDefaultsSchema.optional(),
|
|
290
|
+
tags: zod_1.z.array(zod_1.z.string().max(60)).max(20).optional(),
|
|
291
|
+
},
|
|
292
|
+
run: async ({ client }, { agentId, suiteId, ...body }) => client.patch(await client.orgPath(suitePath(agentId, suiteId)), body),
|
|
293
|
+
}),
|
|
294
|
+
(0, tool_1.defineTool)({
|
|
295
|
+
name: 'delete_evaluation_suite',
|
|
296
|
+
title: 'Delete evaluation suite',
|
|
297
|
+
description: 'Delete a suite and every case in it. Past runs and results are kept for history. Maps to DELETE /v1/orgs/{org}/agents/{agent}/evaluations/suites/{suite}.',
|
|
298
|
+
kind: 'destructive',
|
|
299
|
+
scope: 'agents:write',
|
|
300
|
+
roleFloor: 'editor',
|
|
301
|
+
input: { agentId: zod_1.z.string(), suiteId: zod_1.z.string() },
|
|
302
|
+
run: async ({ client }, { agentId, suiteId }) => client.delete(await client.orgPath(suitePath(agentId, suiteId))),
|
|
303
|
+
}),
|
|
304
|
+
(0, tool_1.defineTool)({
|
|
305
|
+
name: 'list_evaluation_cases',
|
|
306
|
+
title: 'List evaluation cases',
|
|
307
|
+
description: 'List the cases in a suite (key, title, tags, lastVerdict from the most recent run). Maps to GET /v1/orgs/{org}/agents/{agent}/evaluations/suites/{suite}/cases.',
|
|
308
|
+
kind: 'read',
|
|
309
|
+
scope: 'agents:read',
|
|
310
|
+
roleFloor: 'viewer',
|
|
311
|
+
input: { agentId: zod_1.z.string(), suiteId: zod_1.z.string() },
|
|
312
|
+
run: async ({ client }, { agentId, suiteId }) => client.get(await client.orgPath(suitePath(agentId, suiteId, '/cases'))),
|
|
313
|
+
}),
|
|
314
|
+
(0, tool_1.defineTool)({
|
|
315
|
+
name: 'get_evaluation_case',
|
|
316
|
+
title: 'Get evaluation case',
|
|
317
|
+
description: 'Fetch one case: the full document plus its lint findings (severity, code, path, message). Maps to GET /v1/orgs/{org}/agents/{agent}/evaluations/suites/{suite}/cases/{case}.',
|
|
318
|
+
kind: 'read',
|
|
319
|
+
scope: 'agents:read',
|
|
320
|
+
roleFloor: 'viewer',
|
|
321
|
+
input: { agentId: zod_1.z.string(), suiteId: zod_1.z.string(), caseId: zod_1.z.string() },
|
|
322
|
+
run: async ({ client }, { agentId, suiteId, caseId }) => client.get(await client.orgPath(casePath(agentId, suiteId, caseId))),
|
|
323
|
+
}),
|
|
324
|
+
(0, tool_1.defineTool)({
|
|
325
|
+
name: 'create_evaluation_case',
|
|
326
|
+
title: 'Create evaluation case',
|
|
327
|
+
description: `Add a case to a suite; the input is the case document. ${CASE_DOCUMENT_GUIDE} ` +
|
|
328
|
+
'Returns the stored case with lint findings; a document that fails validation is rejected with 422 and the findings. Maps to POST /v1/orgs/{org}/agents/{agent}/evaluations/suites/{suite}/cases.',
|
|
329
|
+
kind: 'write',
|
|
330
|
+
scope: 'agents:write',
|
|
331
|
+
roleFloor: 'editor',
|
|
332
|
+
input: { agentId: zod_1.z.string(), suiteId: zod_1.z.string(), ...caseDocumentShape },
|
|
333
|
+
run: async ({ client }, { agentId, suiteId, ...document }) => client.post(await client.orgPath(suitePath(agentId, suiteId, '/cases')), document),
|
|
334
|
+
}),
|
|
335
|
+
(0, tool_1.defineTool)({
|
|
336
|
+
name: 'update_evaluation_case',
|
|
337
|
+
title: 'Update evaluation case',
|
|
338
|
+
description: 'Replace a case’s document whole (same input as create_evaluation_case — send the complete document, not a patch). Returns the stored case with lint findings. Maps to PUT /v1/orgs/{org}/agents/{agent}/evaluations/suites/{suite}/cases/{case}.',
|
|
339
|
+
kind: 'write',
|
|
340
|
+
scope: 'agents:write',
|
|
341
|
+
roleFloor: 'editor',
|
|
342
|
+
input: {
|
|
343
|
+
agentId: zod_1.z.string(),
|
|
344
|
+
suiteId: zod_1.z.string(),
|
|
345
|
+
caseId: zod_1.z.string(),
|
|
346
|
+
...caseDocumentShape,
|
|
347
|
+
},
|
|
348
|
+
run: async ({ client }, { agentId, suiteId, caseId, ...document }) => client.put(await client.orgPath(casePath(agentId, suiteId, caseId)), document),
|
|
349
|
+
}),
|
|
350
|
+
(0, tool_1.defineTool)({
|
|
351
|
+
name: 'delete_evaluation_case',
|
|
352
|
+
title: 'Delete evaluation case',
|
|
353
|
+
description: 'Delete a case from its suite; past results for it are kept. Maps to DELETE /v1/orgs/{org}/agents/{agent}/evaluations/suites/{suite}/cases/{case}.',
|
|
354
|
+
kind: 'destructive',
|
|
355
|
+
scope: 'agents:write',
|
|
356
|
+
roleFloor: 'editor',
|
|
357
|
+
input: { agentId: zod_1.z.string(), suiteId: zod_1.z.string(), caseId: zod_1.z.string() },
|
|
358
|
+
run: async ({ client }, { agentId, suiteId, caseId }) => client.delete(await client.orgPath(casePath(agentId, suiteId, caseId))),
|
|
359
|
+
}),
|
|
360
|
+
(0, tool_1.defineTool)({
|
|
361
|
+
name: 'preview_evaluation_case',
|
|
362
|
+
title: 'Preview evaluation case',
|
|
363
|
+
description: 'Resolve a case WITHOUT running it: suite defaults applied, the scenario as the runner would build it (person fixture, opening, clock), the turn script, the checks and judge criteria in force, the unit estimate, and lint findings. Pass caseId for a stored case, or document (an unsaved case document, same shape as create_evaluation_case) to preview before saving. Spends no units. Maps to POST /v1/orgs/{org}/agents/{agent}/evaluations/suites/{suite}/cases/{case}/preview; with document, Maps to POST /v1/orgs/{org}/agents/{agent}/evaluations/suites/{suite}/cases/preview.',
|
|
364
|
+
kind: 'read',
|
|
365
|
+
scope: 'agents:read',
|
|
366
|
+
roleFloor: 'viewer',
|
|
367
|
+
input: {
|
|
368
|
+
agentId: zod_1.z.string(),
|
|
369
|
+
suiteId: zod_1.z.string(),
|
|
370
|
+
caseId: zod_1.z.string().optional().describe('A stored case'),
|
|
371
|
+
document: caseDocumentSchema.optional().describe('An unsaved case document'),
|
|
372
|
+
},
|
|
373
|
+
run: async ({ client }, { agentId, suiteId, caseId, document }) => {
|
|
374
|
+
if (caseId) {
|
|
375
|
+
return client.post(await client.orgPath(casePath(agentId, suiteId, caseId, '/preview')), {});
|
|
376
|
+
}
|
|
377
|
+
if (!document)
|
|
378
|
+
throw new Error('preview_evaluation_case: pass caseId or document');
|
|
379
|
+
return client.post(await client.orgPath(suitePath(agentId, suiteId, '/cases/preview')), document);
|
|
380
|
+
},
|
|
381
|
+
}),
|
|
382
|
+
(0, tool_1.defineTool)({
|
|
383
|
+
name: 'start_evaluation_run',
|
|
384
|
+
title: 'Start evaluation run',
|
|
385
|
+
description: 'Run cases through the agent’s real pipeline (ephemeral person, side effects contained). Select by suiteIds, caseIds, and/or tags; nothing selected = every case. This SPENDS the agent’s daily evaluation units (one per case sample turn; check get_evaluation_quota first). Returns 202 with the run view (status, counts, estimate, pending, inFlight) — poll get_evaluation_run. 409 run_active when a run is already queued/running/paused (body carries activeRunId); 429 quota_exceeded with estimate, remaining, resetsAt and a suggestion (e.g. narrower selection or fewer samples) when the estimate exceeds what is left. Maps to POST /v1/orgs/{org}/agents/{agent}/evaluations/runs.',
|
|
386
|
+
kind: 'write',
|
|
387
|
+
scope: 'agents:write',
|
|
388
|
+
roleFloor: 'editor',
|
|
389
|
+
input: {
|
|
390
|
+
agentId: zod_1.z.string(),
|
|
391
|
+
suiteIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
392
|
+
caseIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
393
|
+
tags: zod_1.z.array(zod_1.z.string()).optional().describe('Cases carrying any of these tags'),
|
|
394
|
+
samplesOverride: zod_1.z
|
|
395
|
+
.number()
|
|
396
|
+
.int()
|
|
397
|
+
.min(1)
|
|
398
|
+
.max(5)
|
|
399
|
+
.optional()
|
|
400
|
+
.describe('Repetitions per case for this run only'),
|
|
401
|
+
},
|
|
402
|
+
run: async ({ client }, { agentId, ...body }) => client.post(await client.orgPath(evalPath(agentId, '/runs')), body),
|
|
403
|
+
}),
|
|
404
|
+
(0, tool_1.defineTool)({
|
|
405
|
+
name: 'pause_evaluation_run',
|
|
406
|
+
title: 'Pause evaluation run',
|
|
407
|
+
description: 'Pause a queued or running evaluation run; in-flight cases finish, nothing new starts, units already spent are not refunded. Maps to POST /v1/orgs/{org}/agents/{agent}/evaluations/runs/{run}/pause.',
|
|
408
|
+
kind: 'write',
|
|
409
|
+
scope: 'agents:write',
|
|
410
|
+
roleFloor: 'editor',
|
|
411
|
+
input: { agentId: zod_1.z.string(), runId: zod_1.z.string() },
|
|
412
|
+
run: async ({ client }, { agentId, runId }) => client.post(await client.orgPath(runPath(agentId, runId, '/pause')), {}),
|
|
413
|
+
}),
|
|
414
|
+
(0, tool_1.defineTool)({
|
|
415
|
+
name: 'resume_evaluation_run',
|
|
416
|
+
title: 'Resume evaluation run',
|
|
417
|
+
description: 'Resume a paused evaluation run from where it stopped (also the way to continue after a quota pause once units reset). Maps to POST /v1/orgs/{org}/agents/{agent}/evaluations/runs/{run}/resume.',
|
|
418
|
+
kind: 'write',
|
|
419
|
+
scope: 'agents:write',
|
|
420
|
+
roleFloor: 'editor',
|
|
421
|
+
input: { agentId: zod_1.z.string(), runId: zod_1.z.string() },
|
|
422
|
+
run: async ({ client }, { agentId, runId }) => client.post(await client.orgPath(runPath(agentId, runId, '/resume')), {}),
|
|
423
|
+
}),
|
|
424
|
+
(0, tool_1.defineTool)({
|
|
425
|
+
name: 'cancel_evaluation_run',
|
|
426
|
+
title: 'Cancel evaluation run',
|
|
427
|
+
description: 'Cancel a queued, running, or paused run: pending cases are not run; finished results stay. A finished run is immutable (409 run_immutable). Maps to POST /v1/orgs/{org}/agents/{agent}/evaluations/runs/{run}/cancel.',
|
|
428
|
+
kind: 'write',
|
|
429
|
+
scope: 'agents:write',
|
|
430
|
+
roleFloor: 'editor',
|
|
431
|
+
input: { agentId: zod_1.z.string(), runId: zod_1.z.string() },
|
|
432
|
+
run: async ({ client }, { agentId, runId }) => client.post(await client.orgPath(runPath(agentId, runId, '/cancel')), {}),
|
|
433
|
+
}),
|
|
434
|
+
(0, tool_1.defineTool)({
|
|
435
|
+
name: 'pin_evaluation_run',
|
|
436
|
+
title: 'Pin or unpin evaluation run',
|
|
437
|
+
description: 'Pin a run so it is kept as a reference point (baseline for diffs, exempt from retention); pinned=false unpins. Maps to POST /v1/orgs/{org}/agents/{agent}/evaluations/runs/{run}/pin or …/unpin.',
|
|
438
|
+
kind: 'write',
|
|
439
|
+
scope: 'agents:write',
|
|
440
|
+
roleFloor: 'editor',
|
|
441
|
+
input: {
|
|
442
|
+
agentId: zod_1.z.string(),
|
|
443
|
+
runId: zod_1.z.string(),
|
|
444
|
+
pinned: zod_1.z.boolean().optional().describe('Default true; false unpins'),
|
|
445
|
+
},
|
|
446
|
+
run: async ({ client }, { agentId, runId, pinned }) => client.post(await client.orgPath(runPath(agentId, runId, pinned === false ? '/unpin' : '/pin')), {}),
|
|
447
|
+
}),
|
|
448
|
+
(0, tool_1.defineTool)({
|
|
449
|
+
name: 'list_evaluation_runs',
|
|
450
|
+
title: 'List evaluation runs',
|
|
451
|
+
description: 'List an agent’s evaluation runs, newest first: status, selection, counts (passed / failed / errored / pending), usage, diff vs the previous run, pinned. Maps to GET /v1/orgs/{org}/agents/{agent}/evaluations/runs.',
|
|
452
|
+
kind: 'read',
|
|
453
|
+
scope: 'agents:read',
|
|
454
|
+
roleFloor: 'viewer',
|
|
455
|
+
input: { agentId: zod_1.z.string() },
|
|
456
|
+
run: async ({ client }, { agentId }) => client.get(await client.orgPath(evalPath(agentId, '/runs'))),
|
|
457
|
+
}),
|
|
458
|
+
(0, tool_1.defineTool)({
|
|
459
|
+
name: 'get_evaluation_run',
|
|
460
|
+
title: 'Get evaluation run',
|
|
461
|
+
description: 'Fetch one run: status (queued | running | paused | completed | cancelled | failed), pauseReason, counts, estimate vs usage, diff vs the previous run, attribution, plus pending and inFlight case lists while active. Poll this after start_evaluation_run. Maps to GET /v1/orgs/{org}/agents/{agent}/evaluations/runs/{run}.',
|
|
462
|
+
kind: 'read',
|
|
463
|
+
scope: 'agents:read',
|
|
464
|
+
roleFloor: 'viewer',
|
|
465
|
+
input: { agentId: zod_1.z.string(), runId: zod_1.z.string() },
|
|
466
|
+
run: async ({ client }, { agentId, runId }) => client.get(await client.orgPath(runPath(agentId, runId))),
|
|
467
|
+
}),
|
|
468
|
+
(0, tool_1.defineTool)({
|
|
469
|
+
name: 'list_evaluation_results',
|
|
470
|
+
title: 'List evaluation results',
|
|
471
|
+
description: 'Page through a run’s per-case-sample results (state filter: passed | failed | errored | pending; caseId filter; cursor via startingAfter; returns { data, hasMore }). Each result carries the verdict, per-check details (expected vs observed), per-criterion judge verdicts with quoted evidence, usage, and the transcript. Maps to GET /v1/orgs/{org}/agents/{agent}/evaluations/runs/{run}/results.',
|
|
472
|
+
kind: 'read',
|
|
473
|
+
scope: 'agents:read',
|
|
474
|
+
roleFloor: 'viewer',
|
|
475
|
+
input: {
|
|
476
|
+
agentId: zod_1.z.string(),
|
|
477
|
+
runId: zod_1.z.string(),
|
|
478
|
+
state: zod_1.z.string().optional(),
|
|
479
|
+
caseId: zod_1.z.string().optional(),
|
|
480
|
+
startingAfter: zod_1.z.string().optional(),
|
|
481
|
+
limit: zod_1.z.number().int().min(1).max(200).optional(),
|
|
482
|
+
},
|
|
483
|
+
run: async ({ client }, { agentId, runId, ...params }) => client.get(await client.orgPath(runPath(agentId, runId, '/results')), params),
|
|
484
|
+
}),
|
|
485
|
+
(0, tool_1.defineTool)({
|
|
486
|
+
name: 'get_evaluation_result',
|
|
487
|
+
title: 'Get evaluation result',
|
|
488
|
+
description: 'Fetch one result in full: transcript (user / agent / system lines), every check with its details, every judge criterion with pass/fail and quoted evidence, dimension scores, effects, usage, error, and the userId / turnIds to inspect the turns. Maps to GET /v1/orgs/{org}/agents/{agent}/evaluations/runs/{run}/results/{result}.',
|
|
489
|
+
kind: 'read',
|
|
490
|
+
scope: 'agents:read',
|
|
491
|
+
roleFloor: 'viewer',
|
|
492
|
+
input: { agentId: zod_1.z.string(), runId: zod_1.z.string(), resultId: zod_1.z.string() },
|
|
493
|
+
run: async ({ client }, { agentId, runId, resultId }) => client.get(await client.orgPath(runPath(agentId, runId, `/results/${encodeURIComponent(resultId)}`))),
|
|
494
|
+
}),
|
|
495
|
+
(0, tool_1.defineTool)({
|
|
496
|
+
name: 'get_evaluation_quota',
|
|
497
|
+
title: 'Get evaluation quota',
|
|
498
|
+
description: 'The agent’s evaluation units: daily allowance, used, remaining, resetsAt, per-run limits (maxUnitsPerRun, maxCasesPerRun), and the active run if any. Check before start_evaluation_run. Maps to GET /v1/orgs/{org}/agents/{agent}/evaluations/quota.',
|
|
499
|
+
kind: 'read',
|
|
500
|
+
scope: 'agents:read',
|
|
501
|
+
roleFloor: 'viewer',
|
|
502
|
+
input: { agentId: zod_1.z.string() },
|
|
503
|
+
run: async ({ client }, { agentId }) => client.get(await client.orgPath(evalPath(agentId, '/quota'))),
|
|
504
|
+
}),
|
|
505
|
+
(0, tool_1.defineTool)({
|
|
506
|
+
name: 'get_evaluation_case_history',
|
|
507
|
+
title: 'Get evaluation case history',
|
|
508
|
+
description: 'A case’s verdicts across past runs, newest first (runId, verdict, failed checks / criteria, usage) — spot flakiness or a regression. Maps to GET /v1/orgs/{org}/agents/{agent}/evaluations/cases/{case}/history.',
|
|
509
|
+
kind: 'read',
|
|
510
|
+
scope: 'agents:read',
|
|
511
|
+
roleFloor: 'viewer',
|
|
512
|
+
input: {
|
|
513
|
+
agentId: zod_1.z.string(),
|
|
514
|
+
caseId: zod_1.z.string(),
|
|
515
|
+
limit: zod_1.z.number().int().min(1).max(100).optional(),
|
|
516
|
+
},
|
|
517
|
+
run: async ({ client }, { agentId, caseId, limit }) => client.get(await client.orgPath(evalPath(agentId, `/cases/${encodeURIComponent(caseId)}/history`)), { limit }),
|
|
518
|
+
}),
|
|
519
|
+
];
|
|
520
|
+
//# sourceMappingURL=evaluations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluations.js","sourceRoot":"","sources":["../../src/tools/evaluations.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kCAAqC;AAErC,MAAM,QAAQ,GAAG,CAAC,OAAe,EAAE,GAAG,GAAG,EAAE,EAAU,EAAE,CACrD,WAAW,kBAAkB,CAAC,OAAO,CAAC,eAAe,GAAG,EAAE,CAAC;AAC7D,MAAM,SAAS,GAAG,CAAC,OAAe,EAAE,OAAe,EAAE,GAAG,GAAG,EAAE,EAAU,EAAE,CACvE,QAAQ,CAAC,OAAO,EAAE,WAAW,kBAAkB,CAAC,OAAO,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC;AACpE,MAAM,QAAQ,GAAG,CAAC,OAAe,EAAE,OAAe,EAAE,MAAc,EAAE,GAAG,GAAG,EAAE,EAAU,EAAE,CACtF,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,kBAAkB,CAAC,MAAM,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC;AAC5E,MAAM,OAAO,GAAG,CAAC,OAAe,EAAE,KAAa,EAAE,GAAG,GAAG,EAAE,EAAU,EAAE,CACnE,QAAQ,CAAC,OAAO,EAAE,SAAS,kBAAkB,CAAC,KAAK,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC;AAEhE;;;;;GAKG;AAEH,MAAM,WAAW,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,Y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grouped as the API reference
|
|
4
|
-
* is: orient → Definition → Capabilities → Channels → People →
|
|
5
|
-
* Activity → Org → Docs. Names must be unique (enforced by test/tools.spec.ts).
|
|
4
|
+
* is: orient → Definition → Capabilities → Channels → People → Campaigns →
|
|
5
|
+
* Evaluations → Testers → Activity → Org → Docs. Names must be unique (enforced by test/tools.spec.ts).
|
|
6
6
|
*/
|
|
7
7
|
export declare const allTools: AnyTool[];
|
|
8
8
|
export declare const toolsByName: ReadonlyMap<string, AnyTool>;
|
package/dist/tools/index.js
CHANGED
|
@@ -9,6 +9,7 @@ const capabilities_1 = require("./capabilities");
|
|
|
9
9
|
const channels_1 = require("./channels");
|
|
10
10
|
const definition_1 = require("./definition");
|
|
11
11
|
const docs_1 = require("./docs");
|
|
12
|
+
const evaluations_1 = require("./evaluations");
|
|
12
13
|
const media_1 = require("./media");
|
|
13
14
|
const me_1 = require("./me");
|
|
14
15
|
const org_1 = require("./org");
|
|
@@ -16,8 +17,8 @@ const people_1 = require("./people");
|
|
|
16
17
|
const testers_1 = require("./testers");
|
|
17
18
|
/**
|
|
18
19
|
* The tool table, in the order hosts list them. Grouped as the API reference
|
|
19
|
-
* is: orient → Definition → Capabilities → Channels → People →
|
|
20
|
-
* Activity → Org → Docs. Names must be unique (enforced by test/tools.spec.ts).
|
|
20
|
+
* is: orient → Definition → Capabilities → Channels → People → Campaigns →
|
|
21
|
+
* Evaluations → Testers → Activity → Org → Docs. Names must be unique (enforced by test/tools.spec.ts).
|
|
21
22
|
*/
|
|
22
23
|
exports.allTools = [
|
|
23
24
|
...me_1.meTools,
|
|
@@ -28,6 +29,7 @@ exports.allTools = [
|
|
|
28
29
|
...channels_1.channelTools,
|
|
29
30
|
...people_1.peopleTools,
|
|
30
31
|
...campaigns_1.campaignTools,
|
|
32
|
+
...evaluations_1.evaluationTools,
|
|
31
33
|
...testers_1.testerTools,
|
|
32
34
|
...activity_1.activityTools,
|
|
33
35
|
...org_1.orgTools,
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";;;AA4CA,0CAKC;AAhDD,yCAA2C;AAC3C,qCAAsC;AACtC,2CAA4C;AAC5C,iDAAiD;AACjD,yCAA0C;AAC1C,6CAA+C;AAC/C,iCAAmC;AACnC,+CAAgD;AAChD,mCAAqC;AACrC,6BAA+B;AAC/B,+BAAiC;AACjC,qCAAuC;AACvC,uCAAwC;AAExC;;;;GAIG;AACU,QAAA,QAAQ,GAAc;IACjC,GAAG,YAAO;IACV,GAAG,mBAAU;IACb,GAAG,4BAAe;IAClB,GAAG,kBAAU;IACb,GAAG,8BAAe;IAClB,GAAG,uBAAY;IACf,GAAG,oBAAW;IACd,GAAG,yBAAa;IAChB,GAAG,6BAAe;IAClB,GAAG,qBAAW;IACd,GAAG,wBAAa;IAChB,GAAG,cAAQ;IACX,GAAG,gBAAS;CACb,CAAC;AAEW,QAAA,WAAW,GAAiC,IAAI,GAAG,CAC9D,gBAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAC/B,CAAC;AAEF;;;GAGG;AACH,SAAgB,eAAe,CAC7B,OAAoB,EACpB,QAA4B,gBAAQ;IAEpC,OAAO,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC;AACnF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anychat-ai/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Anychat MCP server — drive your Anychat workspace (agents, playbooks, channels, people, outreach) from Claude Code, Claude Desktop, Cursor, or any MCP host.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anychat",
|