@roarkanalytics/sdk 7.9.0 → 8.0.1
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/CHANGELOG.md +23 -0
- package/client.d.mts +20 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -5
- package/client.d.ts.map +1 -1
- package/client.js +21 -3
- package/client.js.map +1 -1
- package/client.mjs +21 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-connection.d.mts +1952 -0
- package/resources/agent-connection.d.mts.map +1 -0
- package/resources/agent-connection.d.ts +1952 -0
- package/resources/agent-connection.d.ts.map +1 -0
- package/resources/agent-connection.js +173 -0
- package/resources/agent-connection.js.map +1 -0
- package/resources/agent-connection.mjs +169 -0
- package/resources/agent-connection.mjs.map +1 -0
- package/resources/agent-conversation.d.mts +110 -0
- package/resources/agent-conversation.d.mts.map +1 -0
- package/resources/agent-conversation.d.ts +110 -0
- package/resources/agent-conversation.d.ts.map +1 -0
- package/resources/agent-conversation.js +41 -0
- package/resources/agent-conversation.js.map +1 -0
- package/resources/agent-conversation.mjs +37 -0
- package/resources/agent-conversation.mjs.map +1 -0
- package/resources/agent-draft.d.mts +101 -35
- package/resources/agent-draft.d.mts.map +1 -1
- package/resources/agent-draft.d.ts +101 -35
- package/resources/agent-draft.d.ts.map +1 -1
- package/resources/agent-endpoint.d.mts +4 -4
- package/resources/agent-endpoint.d.mts.map +1 -1
- package/resources/agent-endpoint.d.ts +4 -4
- package/resources/agent-endpoint.d.ts.map +1 -1
- package/resources/agent-setup.d.mts +1057 -0
- package/resources/agent-setup.d.mts.map +1 -0
- package/resources/agent-setup.d.ts +1057 -0
- package/resources/agent-setup.d.ts.map +1 -0
- package/resources/agent-setup.js +113 -0
- package/resources/agent-setup.js.map +1 -0
- package/resources/agent-setup.mjs +109 -0
- package/resources/agent-setup.mjs.map +1 -0
- package/resources/agent-version.d.mts +57 -18
- package/resources/agent-version.d.mts.map +1 -1
- package/resources/agent-version.d.ts +57 -18
- package/resources/agent-version.d.ts.map +1 -1
- package/resources/agent.d.mts +263 -4
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +263 -4
- package/resources/agent.d.ts.map +1 -1
- package/resources/calendar-connection.d.mts +834 -56
- package/resources/calendar-connection.d.mts.map +1 -1
- package/resources/calendar-connection.d.ts +834 -56
- package/resources/calendar-connection.d.ts.map +1 -1
- package/resources/calendar-connection.js +127 -8
- package/resources/calendar-connection.js.map +1 -1
- package/resources/calendar-connection.mjs +127 -8
- package/resources/calendar-connection.mjs.map +1 -1
- package/resources/call.d.mts +2 -2
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +2 -2
- package/resources/call.d.ts.map +1 -1
- package/resources/config.d.mts +78 -36
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +78 -36
- package/resources/config.d.ts.map +1 -1
- package/resources/conversation.d.mts +156 -0
- package/resources/conversation.d.mts.map +1 -0
- package/resources/conversation.d.ts +156 -0
- package/resources/conversation.d.ts.map +1 -0
- package/resources/conversation.js +40 -0
- package/resources/conversation.js.map +1 -0
- package/resources/conversation.mjs +36 -0
- package/resources/conversation.mjs.map +1 -0
- package/resources/customer-flow-edge-case.d.mts +637 -40
- package/resources/customer-flow-edge-case.d.mts.map +1 -1
- package/resources/customer-flow-edge-case.d.ts +637 -40
- package/resources/customer-flow-edge-case.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +2583 -156
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +2583 -156
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/{customer-profile.d.mts → customer.d.mts} +287 -92
- package/resources/customer.d.mts.map +1 -0
- package/resources/{customer-profile.d.ts → customer.d.ts} +287 -92
- package/resources/customer.d.ts.map +1 -0
- package/resources/customer.js +180 -0
- package/resources/customer.js.map +1 -0
- package/resources/customer.mjs +176 -0
- package/resources/customer.mjs.map +1 -0
- package/resources/index.d.mts +7 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp-server.d.mts +588 -0
- package/resources/mcp-server.d.mts.map +1 -0
- package/resources/mcp-server.d.ts +588 -0
- package/resources/mcp-server.d.ts.map +1 -0
- package/resources/mcp-server.js +109 -0
- package/resources/mcp-server.js.map +1 -0
- package/resources/mcp-server.mjs +105 -0
- package/resources/mcp-server.mjs.map +1 -0
- package/resources/metric-policy.d.mts +5 -4
- package/resources/metric-policy.d.mts.map +1 -1
- package/resources/metric-policy.d.ts +5 -4
- package/resources/metric-policy.d.ts.map +1 -1
- package/resources/metric-policy.js +1 -1
- package/resources/metric-policy.mjs +1 -1
- package/resources/metric-variant.d.mts +4 -1
- package/resources/metric-variant.d.mts.map +1 -1
- package/resources/metric-variant.d.ts +4 -1
- package/resources/metric-variant.d.ts.map +1 -1
- package/resources/metric.d.mts +7 -2
- package/resources/metric.d.mts.map +1 -1
- package/resources/metric.d.ts +7 -2
- package/resources/metric.d.ts.map +1 -1
- package/resources/simulation-environment.d.mts +366 -0
- package/resources/simulation-environment.d.mts.map +1 -1
- package/resources/simulation-environment.d.ts +366 -0
- package/resources/simulation-environment.d.ts.map +1 -1
- package/resources/simulation-job.d.mts +12 -8
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +12 -8
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-persona.d.mts +25 -15
- package/resources/simulation-persona.d.mts.map +1 -1
- package/resources/simulation-persona.d.ts +25 -15
- package/resources/simulation-persona.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +32 -6
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +32 -6
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan.d.mts +126 -13
- package/resources/simulation-run-plan.d.mts.map +1 -1
- package/resources/simulation-run-plan.d.ts +126 -13
- package/resources/simulation-run-plan.d.ts.map +1 -1
- package/resources/simulation-template.d.mts +1 -1
- package/resources/simulation-template.d.mts.map +1 -1
- package/resources/simulation-template.d.ts +1 -1
- package/resources/simulation-template.d.ts.map +1 -1
- package/resources/simulation.d.mts +35 -3
- package/resources/simulation.d.mts.map +1 -1
- package/resources/simulation.d.ts +35 -3
- package/resources/simulation.d.ts.map +1 -1
- package/resources/tool.d.mts +565 -6
- package/resources/tool.d.mts.map +1 -1
- package/resources/tool.d.ts +565 -6
- package/resources/tool.d.ts.map +1 -1
- package/resources/tool.js +9 -6
- package/resources/tool.js.map +1 -1
- package/resources/tool.mjs +9 -6
- package/resources/tool.mjs.map +1 -1
- package/resources/usage.d.mts +1 -1
- package/resources/usage.d.mts.map +1 -1
- package/resources/usage.d.ts +1 -1
- package/resources/usage.d.ts.map +1 -1
- package/resources/webhook.d.mts +4 -4
- package/resources/webhook.d.mts.map +1 -1
- package/resources/webhook.d.ts +4 -4
- package/resources/webhook.d.ts.map +1 -1
- package/src/client.ts +200 -34
- package/src/resources/agent-connection.ts +2523 -0
- package/src/resources/agent-conversation.ts +139 -0
- package/src/resources/agent-draft.ts +239 -35
- package/src/resources/agent-endpoint.ts +8 -4
- package/src/resources/agent-setup.ts +1685 -0
- package/src/resources/agent-version.ts +126 -18
- package/src/resources/agent.ts +506 -4
- package/src/resources/calendar-connection.ts +1035 -63
- package/src/resources/call.ts +12 -2
- package/src/resources/config.ts +198 -36
- package/src/resources/conversation.ts +205 -0
- package/src/resources/customer-flow-edge-case.ts +709 -40
- package/src/resources/customer-flow.ts +3141 -156
- package/src/resources/{customer-profile.ts → customer.ts} +406 -294
- package/src/resources/index.ts +91 -17
- package/src/resources/mcp-server.ts +786 -0
- package/src/resources/metric-policy.ts +5 -4
- package/src/resources/metric-variant.ts +4 -1
- package/src/resources/metric.ts +7 -2
- package/src/resources/simulation-environment.ts +414 -0
- package/src/resources/simulation-job.ts +14 -8
- package/src/resources/simulation-persona.ts +25 -15
- package/src/resources/simulation-run-plan-job.ts +47 -6
- package/src/resources/simulation-run-plan.ts +140 -0
- package/src/resources/simulation-template.ts +1 -0
- package/src/resources/simulation.ts +39 -0
- package/src/resources/tool.ts +697 -6
- package/src/resources/usage.ts +6 -1
- package/src/resources/webhook.ts +8 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/customer-profile.d.mts.map +0 -1
- package/resources/customer-profile.d.ts.map +0 -1
- package/resources/customer-profile.js +0 -141
- package/resources/customer-profile.js.map +0 -1
- package/resources/customer-profile.mjs +0 -137
- package/resources/customer-profile.mjs.map +0 -1
package/src/resources/tool.ts
CHANGED
|
@@ -9,8 +9,10 @@ export class Tool extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Creates a tool and declares its first version. A tool only recorded from calls
|
|
11
11
|
* under the same name is adopted; one already declared returns 409. Give it a
|
|
12
|
-
* `runtime` for a hosted agent to call your endpoint
|
|
13
|
-
* on
|
|
12
|
+
* `runtime` for a hosted agent to call your endpoint, a `calendar` for it to book
|
|
13
|
+
* on a calendar connected to the project, or `mcp` for it to call a tool on an MCP
|
|
14
|
+
* server connected to the project. Header values are returned on read, so keep
|
|
15
|
+
* secrets out of them.
|
|
14
16
|
*
|
|
15
17
|
* @example
|
|
16
18
|
* ```ts
|
|
@@ -25,10 +27,11 @@ export class Tool extends APIResource {
|
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
/**
|
|
28
|
-
* Replaces the tool: its name, scope, inputs, description, grading hints
|
|
29
|
-
*
|
|
30
|
-
* project-wide
|
|
31
|
-
* one keep it.
|
|
30
|
+
* Replaces the tool: its name, scope, inputs, description, grading hints, runtime,
|
|
31
|
+
* calendar and MCP tool. A field left out is cleared, so omitting agentId makes
|
|
32
|
+
* the tool project-wide and omitting calendar or mcp makes it an ordinary tool. A
|
|
33
|
+
* change declares a new version; agent versions pinned to an older one keep it. A
|
|
34
|
+
* tool managed by config-as-code returns 409.
|
|
32
35
|
*
|
|
33
36
|
* @example
|
|
34
37
|
* ```ts
|
|
@@ -101,6 +104,11 @@ export namespace ToolCreateResponse {
|
|
|
101
104
|
*/
|
|
102
105
|
agentId: string | null;
|
|
103
106
|
|
|
107
|
+
/**
|
|
108
|
+
* What a calendar tool books into. Roark runs it; it has no runtime.
|
|
109
|
+
*/
|
|
110
|
+
calendar: Data.Calendar | null;
|
|
111
|
+
|
|
104
112
|
createdAt: string;
|
|
105
113
|
|
|
106
114
|
description: string | null;
|
|
@@ -117,6 +125,12 @@ export namespace ToolCreateResponse {
|
|
|
117
125
|
*/
|
|
118
126
|
invocationCriteria: string | null;
|
|
119
127
|
|
|
128
|
+
/**
|
|
129
|
+
* A tool on one of the project's MCP servers. The server runs it and defines its
|
|
130
|
+
* arguments.
|
|
131
|
+
*/
|
|
132
|
+
mcp: Data.Mcp | null;
|
|
133
|
+
|
|
120
134
|
name: string;
|
|
121
135
|
|
|
122
136
|
/**
|
|
@@ -143,6 +157,85 @@ export namespace ToolCreateResponse {
|
|
|
143
157
|
}
|
|
144
158
|
|
|
145
159
|
export namespace Data {
|
|
160
|
+
/**
|
|
161
|
+
* What a calendar tool books into. Roark runs it; it has no runtime.
|
|
162
|
+
*/
|
|
163
|
+
export interface Calendar {
|
|
164
|
+
/**
|
|
165
|
+
* The kinds of appointment the tool may reach
|
|
166
|
+
*/
|
|
167
|
+
appointmentTypes: Array<Calendar.AppointmentType>;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* The connected calendar the tool books on
|
|
171
|
+
*/
|
|
172
|
+
calendarConnectionId: string;
|
|
173
|
+
|
|
174
|
+
messages: Calendar.Messages;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* The one action this tool takes on the calendar
|
|
178
|
+
*/
|
|
179
|
+
operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Every call books on a simulated calendar instead of the customer's
|
|
183
|
+
*/
|
|
184
|
+
simulate: boolean;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export namespace Calendar {
|
|
188
|
+
export interface AppointmentType {
|
|
189
|
+
/**
|
|
190
|
+
* For a calendar with no scheduling of its own: the bookable target it books into,
|
|
191
|
+
* which carries the duration, buffers, notice, horizon and weekly hours
|
|
192
|
+
*/
|
|
193
|
+
calendarTargetId: string | null;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Only for an event type offering several durations
|
|
197
|
+
*/
|
|
198
|
+
durationMinutes: number | null;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* For Cal.com: the event type it books
|
|
202
|
+
*/
|
|
203
|
+
eventTypeId: number | null;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* For Calendly: the event type it books, which Calendly names by URI
|
|
207
|
+
*/
|
|
208
|
+
eventTypeUri: string | null;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* What the agent passes to name it
|
|
212
|
+
*/
|
|
213
|
+
name: string;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* The line that tells the agent when it applies
|
|
217
|
+
*/
|
|
218
|
+
whenToUse: string | null;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface Messages {
|
|
222
|
+
/**
|
|
223
|
+
* Said as the request goes out
|
|
224
|
+
*/
|
|
225
|
+
before: string | null;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Given to the agent to say when the request fails
|
|
229
|
+
*/
|
|
230
|
+
failure: string | null;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Said once if the request is slow
|
|
234
|
+
*/
|
|
235
|
+
slow: string | null;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
146
239
|
export interface Input {
|
|
147
240
|
/**
|
|
148
241
|
* What the input is, so the agent fills it in right
|
|
@@ -165,6 +258,43 @@ export namespace ToolCreateResponse {
|
|
|
165
258
|
type: 'string' | 'number' | 'boolean';
|
|
166
259
|
}
|
|
167
260
|
|
|
261
|
+
/**
|
|
262
|
+
* A tool on one of the project's MCP servers. The server runs it and defines its
|
|
263
|
+
* arguments.
|
|
264
|
+
*/
|
|
265
|
+
export interface Mcp {
|
|
266
|
+
/**
|
|
267
|
+
* The MCP server the tool calls
|
|
268
|
+
*/
|
|
269
|
+
mcpServerId: string;
|
|
270
|
+
|
|
271
|
+
messages: Mcp.Messages;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* The tool as the server names it
|
|
275
|
+
*/
|
|
276
|
+
tool: string;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export namespace Mcp {
|
|
280
|
+
export interface Messages {
|
|
281
|
+
/**
|
|
282
|
+
* Said as the request goes out
|
|
283
|
+
*/
|
|
284
|
+
before: string | null;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Given to the agent to say when the request fails
|
|
288
|
+
*/
|
|
289
|
+
failure: string | null;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Said once if the request is slow
|
|
293
|
+
*/
|
|
294
|
+
slow: string | null;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
168
298
|
/**
|
|
169
299
|
* What a hosted agent sends and says when it calls the tool
|
|
170
300
|
*/
|
|
@@ -252,6 +382,11 @@ export namespace ToolUpdateResponse {
|
|
|
252
382
|
*/
|
|
253
383
|
agentId: string | null;
|
|
254
384
|
|
|
385
|
+
/**
|
|
386
|
+
* What a calendar tool books into. Roark runs it; it has no runtime.
|
|
387
|
+
*/
|
|
388
|
+
calendar: Data.Calendar | null;
|
|
389
|
+
|
|
255
390
|
createdAt: string;
|
|
256
391
|
|
|
257
392
|
description: string | null;
|
|
@@ -268,6 +403,12 @@ export namespace ToolUpdateResponse {
|
|
|
268
403
|
*/
|
|
269
404
|
invocationCriteria: string | null;
|
|
270
405
|
|
|
406
|
+
/**
|
|
407
|
+
* A tool on one of the project's MCP servers. The server runs it and defines its
|
|
408
|
+
* arguments.
|
|
409
|
+
*/
|
|
410
|
+
mcp: Data.Mcp | null;
|
|
411
|
+
|
|
271
412
|
name: string;
|
|
272
413
|
|
|
273
414
|
/**
|
|
@@ -294,6 +435,85 @@ export namespace ToolUpdateResponse {
|
|
|
294
435
|
}
|
|
295
436
|
|
|
296
437
|
export namespace Data {
|
|
438
|
+
/**
|
|
439
|
+
* What a calendar tool books into. Roark runs it; it has no runtime.
|
|
440
|
+
*/
|
|
441
|
+
export interface Calendar {
|
|
442
|
+
/**
|
|
443
|
+
* The kinds of appointment the tool may reach
|
|
444
|
+
*/
|
|
445
|
+
appointmentTypes: Array<Calendar.AppointmentType>;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* The connected calendar the tool books on
|
|
449
|
+
*/
|
|
450
|
+
calendarConnectionId: string;
|
|
451
|
+
|
|
452
|
+
messages: Calendar.Messages;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* The one action this tool takes on the calendar
|
|
456
|
+
*/
|
|
457
|
+
operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Every call books on a simulated calendar instead of the customer's
|
|
461
|
+
*/
|
|
462
|
+
simulate: boolean;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export namespace Calendar {
|
|
466
|
+
export interface AppointmentType {
|
|
467
|
+
/**
|
|
468
|
+
* For a calendar with no scheduling of its own: the bookable target it books into,
|
|
469
|
+
* which carries the duration, buffers, notice, horizon and weekly hours
|
|
470
|
+
*/
|
|
471
|
+
calendarTargetId: string | null;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Only for an event type offering several durations
|
|
475
|
+
*/
|
|
476
|
+
durationMinutes: number | null;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* For Cal.com: the event type it books
|
|
480
|
+
*/
|
|
481
|
+
eventTypeId: number | null;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* For Calendly: the event type it books, which Calendly names by URI
|
|
485
|
+
*/
|
|
486
|
+
eventTypeUri: string | null;
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* What the agent passes to name it
|
|
490
|
+
*/
|
|
491
|
+
name: string;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* The line that tells the agent when it applies
|
|
495
|
+
*/
|
|
496
|
+
whenToUse: string | null;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
export interface Messages {
|
|
500
|
+
/**
|
|
501
|
+
* Said as the request goes out
|
|
502
|
+
*/
|
|
503
|
+
before: string | null;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Given to the agent to say when the request fails
|
|
507
|
+
*/
|
|
508
|
+
failure: string | null;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Said once if the request is slow
|
|
512
|
+
*/
|
|
513
|
+
slow: string | null;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
297
517
|
export interface Input {
|
|
298
518
|
/**
|
|
299
519
|
* What the input is, so the agent fills it in right
|
|
@@ -316,6 +536,43 @@ export namespace ToolUpdateResponse {
|
|
|
316
536
|
type: 'string' | 'number' | 'boolean';
|
|
317
537
|
}
|
|
318
538
|
|
|
539
|
+
/**
|
|
540
|
+
* A tool on one of the project's MCP servers. The server runs it and defines its
|
|
541
|
+
* arguments.
|
|
542
|
+
*/
|
|
543
|
+
export interface Mcp {
|
|
544
|
+
/**
|
|
545
|
+
* The MCP server the tool calls
|
|
546
|
+
*/
|
|
547
|
+
mcpServerId: string;
|
|
548
|
+
|
|
549
|
+
messages: Mcp.Messages;
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* The tool as the server names it
|
|
553
|
+
*/
|
|
554
|
+
tool: string;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
export namespace Mcp {
|
|
558
|
+
export interface Messages {
|
|
559
|
+
/**
|
|
560
|
+
* Said as the request goes out
|
|
561
|
+
*/
|
|
562
|
+
before: string | null;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Given to the agent to say when the request fails
|
|
566
|
+
*/
|
|
567
|
+
failure: string | null;
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Said once if the request is slow
|
|
571
|
+
*/
|
|
572
|
+
slow: string | null;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
|
|
319
576
|
/**
|
|
320
577
|
* What a hosted agent sends and says when it calls the tool
|
|
321
578
|
*/
|
|
@@ -403,6 +660,11 @@ export namespace ToolListResponse {
|
|
|
403
660
|
*/
|
|
404
661
|
agentId: string | null;
|
|
405
662
|
|
|
663
|
+
/**
|
|
664
|
+
* What a calendar tool books into. Roark runs it; it has no runtime.
|
|
665
|
+
*/
|
|
666
|
+
calendar: Data.Calendar | null;
|
|
667
|
+
|
|
406
668
|
createdAt: string;
|
|
407
669
|
|
|
408
670
|
description: string | null;
|
|
@@ -419,6 +681,12 @@ export namespace ToolListResponse {
|
|
|
419
681
|
*/
|
|
420
682
|
invocationCriteria: string | null;
|
|
421
683
|
|
|
684
|
+
/**
|
|
685
|
+
* A tool on one of the project's MCP servers. The server runs it and defines its
|
|
686
|
+
* arguments.
|
|
687
|
+
*/
|
|
688
|
+
mcp: Data.Mcp | null;
|
|
689
|
+
|
|
422
690
|
name: string;
|
|
423
691
|
|
|
424
692
|
/**
|
|
@@ -445,6 +713,85 @@ export namespace ToolListResponse {
|
|
|
445
713
|
}
|
|
446
714
|
|
|
447
715
|
export namespace Data {
|
|
716
|
+
/**
|
|
717
|
+
* What a calendar tool books into. Roark runs it; it has no runtime.
|
|
718
|
+
*/
|
|
719
|
+
export interface Calendar {
|
|
720
|
+
/**
|
|
721
|
+
* The kinds of appointment the tool may reach
|
|
722
|
+
*/
|
|
723
|
+
appointmentTypes: Array<Calendar.AppointmentType>;
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* The connected calendar the tool books on
|
|
727
|
+
*/
|
|
728
|
+
calendarConnectionId: string;
|
|
729
|
+
|
|
730
|
+
messages: Calendar.Messages;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* The one action this tool takes on the calendar
|
|
734
|
+
*/
|
|
735
|
+
operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Every call books on a simulated calendar instead of the customer's
|
|
739
|
+
*/
|
|
740
|
+
simulate: boolean;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
export namespace Calendar {
|
|
744
|
+
export interface AppointmentType {
|
|
745
|
+
/**
|
|
746
|
+
* For a calendar with no scheduling of its own: the bookable target it books into,
|
|
747
|
+
* which carries the duration, buffers, notice, horizon and weekly hours
|
|
748
|
+
*/
|
|
749
|
+
calendarTargetId: string | null;
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* Only for an event type offering several durations
|
|
753
|
+
*/
|
|
754
|
+
durationMinutes: number | null;
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* For Cal.com: the event type it books
|
|
758
|
+
*/
|
|
759
|
+
eventTypeId: number | null;
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* For Calendly: the event type it books, which Calendly names by URI
|
|
763
|
+
*/
|
|
764
|
+
eventTypeUri: string | null;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* What the agent passes to name it
|
|
768
|
+
*/
|
|
769
|
+
name: string;
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* The line that tells the agent when it applies
|
|
773
|
+
*/
|
|
774
|
+
whenToUse: string | null;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
export interface Messages {
|
|
778
|
+
/**
|
|
779
|
+
* Said as the request goes out
|
|
780
|
+
*/
|
|
781
|
+
before: string | null;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Given to the agent to say when the request fails
|
|
785
|
+
*/
|
|
786
|
+
failure: string | null;
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Said once if the request is slow
|
|
790
|
+
*/
|
|
791
|
+
slow: string | null;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
|
|
448
795
|
export interface Input {
|
|
449
796
|
/**
|
|
450
797
|
* What the input is, so the agent fills it in right
|
|
@@ -467,6 +814,43 @@ export namespace ToolListResponse {
|
|
|
467
814
|
type: 'string' | 'number' | 'boolean';
|
|
468
815
|
}
|
|
469
816
|
|
|
817
|
+
/**
|
|
818
|
+
* A tool on one of the project's MCP servers. The server runs it and defines its
|
|
819
|
+
* arguments.
|
|
820
|
+
*/
|
|
821
|
+
export interface Mcp {
|
|
822
|
+
/**
|
|
823
|
+
* The MCP server the tool calls
|
|
824
|
+
*/
|
|
825
|
+
mcpServerId: string;
|
|
826
|
+
|
|
827
|
+
messages: Mcp.Messages;
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* The tool as the server names it
|
|
831
|
+
*/
|
|
832
|
+
tool: string;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
export namespace Mcp {
|
|
836
|
+
export interface Messages {
|
|
837
|
+
/**
|
|
838
|
+
* Said as the request goes out
|
|
839
|
+
*/
|
|
840
|
+
before: string | null;
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Given to the agent to say when the request fails
|
|
844
|
+
*/
|
|
845
|
+
failure: string | null;
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* Said once if the request is slow
|
|
849
|
+
*/
|
|
850
|
+
slow: string | null;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
|
|
470
854
|
/**
|
|
471
855
|
* What a hosted agent sends and says when it calls the tool
|
|
472
856
|
*/
|
|
@@ -566,6 +950,11 @@ export namespace ToolGetByIDResponse {
|
|
|
566
950
|
*/
|
|
567
951
|
agentId: string | null;
|
|
568
952
|
|
|
953
|
+
/**
|
|
954
|
+
* What a calendar tool books into. Roark runs it; it has no runtime.
|
|
955
|
+
*/
|
|
956
|
+
calendar: Data.Calendar | null;
|
|
957
|
+
|
|
569
958
|
createdAt: string;
|
|
570
959
|
|
|
571
960
|
description: string | null;
|
|
@@ -582,6 +971,12 @@ export namespace ToolGetByIDResponse {
|
|
|
582
971
|
*/
|
|
583
972
|
invocationCriteria: string | null;
|
|
584
973
|
|
|
974
|
+
/**
|
|
975
|
+
* A tool on one of the project's MCP servers. The server runs it and defines its
|
|
976
|
+
* arguments.
|
|
977
|
+
*/
|
|
978
|
+
mcp: Data.Mcp | null;
|
|
979
|
+
|
|
585
980
|
name: string;
|
|
586
981
|
|
|
587
982
|
/**
|
|
@@ -608,6 +1003,85 @@ export namespace ToolGetByIDResponse {
|
|
|
608
1003
|
}
|
|
609
1004
|
|
|
610
1005
|
export namespace Data {
|
|
1006
|
+
/**
|
|
1007
|
+
* What a calendar tool books into. Roark runs it; it has no runtime.
|
|
1008
|
+
*/
|
|
1009
|
+
export interface Calendar {
|
|
1010
|
+
/**
|
|
1011
|
+
* The kinds of appointment the tool may reach
|
|
1012
|
+
*/
|
|
1013
|
+
appointmentTypes: Array<Calendar.AppointmentType>;
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* The connected calendar the tool books on
|
|
1017
|
+
*/
|
|
1018
|
+
calendarConnectionId: string;
|
|
1019
|
+
|
|
1020
|
+
messages: Calendar.Messages;
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* The one action this tool takes on the calendar
|
|
1024
|
+
*/
|
|
1025
|
+
operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Every call books on a simulated calendar instead of the customer's
|
|
1029
|
+
*/
|
|
1030
|
+
simulate: boolean;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
export namespace Calendar {
|
|
1034
|
+
export interface AppointmentType {
|
|
1035
|
+
/**
|
|
1036
|
+
* For a calendar with no scheduling of its own: the bookable target it books into,
|
|
1037
|
+
* which carries the duration, buffers, notice, horizon and weekly hours
|
|
1038
|
+
*/
|
|
1039
|
+
calendarTargetId: string | null;
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* Only for an event type offering several durations
|
|
1043
|
+
*/
|
|
1044
|
+
durationMinutes: number | null;
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* For Cal.com: the event type it books
|
|
1048
|
+
*/
|
|
1049
|
+
eventTypeId: number | null;
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* For Calendly: the event type it books, which Calendly names by URI
|
|
1053
|
+
*/
|
|
1054
|
+
eventTypeUri: string | null;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* What the agent passes to name it
|
|
1058
|
+
*/
|
|
1059
|
+
name: string;
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* The line that tells the agent when it applies
|
|
1063
|
+
*/
|
|
1064
|
+
whenToUse: string | null;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
export interface Messages {
|
|
1068
|
+
/**
|
|
1069
|
+
* Said as the request goes out
|
|
1070
|
+
*/
|
|
1071
|
+
before: string | null;
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* Given to the agent to say when the request fails
|
|
1075
|
+
*/
|
|
1076
|
+
failure: string | null;
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* Said once if the request is slow
|
|
1080
|
+
*/
|
|
1081
|
+
slow: string | null;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
|
|
611
1085
|
export interface Input {
|
|
612
1086
|
/**
|
|
613
1087
|
* What the input is, so the agent fills it in right
|
|
@@ -630,6 +1104,43 @@ export namespace ToolGetByIDResponse {
|
|
|
630
1104
|
type: 'string' | 'number' | 'boolean';
|
|
631
1105
|
}
|
|
632
1106
|
|
|
1107
|
+
/**
|
|
1108
|
+
* A tool on one of the project's MCP servers. The server runs it and defines its
|
|
1109
|
+
* arguments.
|
|
1110
|
+
*/
|
|
1111
|
+
export interface Mcp {
|
|
1112
|
+
/**
|
|
1113
|
+
* The MCP server the tool calls
|
|
1114
|
+
*/
|
|
1115
|
+
mcpServerId: string;
|
|
1116
|
+
|
|
1117
|
+
messages: Mcp.Messages;
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* The tool as the server names it
|
|
1121
|
+
*/
|
|
1122
|
+
tool: string;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
export namespace Mcp {
|
|
1126
|
+
export interface Messages {
|
|
1127
|
+
/**
|
|
1128
|
+
* Said as the request goes out
|
|
1129
|
+
*/
|
|
1130
|
+
before: string | null;
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* Given to the agent to say when the request fails
|
|
1134
|
+
*/
|
|
1135
|
+
failure: string | null;
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* Said once if the request is slow
|
|
1139
|
+
*/
|
|
1140
|
+
slow: string | null;
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
|
|
633
1144
|
/**
|
|
634
1145
|
* What a hosted agent sends and says when it calls the tool
|
|
635
1146
|
*/
|
|
@@ -714,12 +1225,26 @@ export interface ToolCreateParams {
|
|
|
714
1225
|
|
|
715
1226
|
agentId?: string | null;
|
|
716
1227
|
|
|
1228
|
+
/**
|
|
1229
|
+
* Makes this a calendar tool, which Roark runs against a connected calendar: it
|
|
1230
|
+
* takes no runtime and no inputs. Omit or null for any other tool; on update,
|
|
1231
|
+
* omitting it makes the tool an ordinary one.
|
|
1232
|
+
*/
|
|
1233
|
+
calendar?: ToolCreateParams.Calendar | null;
|
|
1234
|
+
|
|
717
1235
|
expectedResult?: string | null;
|
|
718
1236
|
|
|
719
1237
|
inputs?: Array<ToolCreateParams.Input>;
|
|
720
1238
|
|
|
721
1239
|
invocationCriteria?: string | null;
|
|
722
1240
|
|
|
1241
|
+
/**
|
|
1242
|
+
* Makes this a tool on one of the project's MCP servers: it takes no runtime, no
|
|
1243
|
+
* inputs and no calendar, and the description replaces the server's own. On
|
|
1244
|
+
* update, omitting it makes the tool an ordinary one.
|
|
1245
|
+
*/
|
|
1246
|
+
mcp?: ToolCreateParams.Mcp | null;
|
|
1247
|
+
|
|
723
1248
|
/**
|
|
724
1249
|
* Omit or null for a tool that is only graded
|
|
725
1250
|
*/
|
|
@@ -727,6 +1252,56 @@ export interface ToolCreateParams {
|
|
|
727
1252
|
}
|
|
728
1253
|
|
|
729
1254
|
export namespace ToolCreateParams {
|
|
1255
|
+
/**
|
|
1256
|
+
* Makes this a calendar tool, which Roark runs against a connected calendar: it
|
|
1257
|
+
* takes no runtime and no inputs. Omit or null for any other tool; on update,
|
|
1258
|
+
* omitting it makes the tool an ordinary one.
|
|
1259
|
+
*/
|
|
1260
|
+
export interface Calendar {
|
|
1261
|
+
appointmentTypes: Array<Calendar.AppointmentType>;
|
|
1262
|
+
|
|
1263
|
+
calendarConnectionId: string;
|
|
1264
|
+
|
|
1265
|
+
operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
|
|
1266
|
+
|
|
1267
|
+
messages?: Calendar.Messages;
|
|
1268
|
+
|
|
1269
|
+
simulate?: boolean;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
export namespace Calendar {
|
|
1273
|
+
export interface AppointmentType {
|
|
1274
|
+
name: string;
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* For a calendar with no scheduling of its own: the bookable target to book into
|
|
1278
|
+
*/
|
|
1279
|
+
calendarTargetId?: string | null;
|
|
1280
|
+
|
|
1281
|
+
durationMinutes?: number | null;
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
* For Cal.com: the event type to book
|
|
1285
|
+
*/
|
|
1286
|
+
eventTypeId?: number | null;
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* For Calendly: the event type to book, by URI
|
|
1290
|
+
*/
|
|
1291
|
+
eventTypeUri?: string | null;
|
|
1292
|
+
|
|
1293
|
+
whenToUse?: string | null;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
export interface Messages {
|
|
1297
|
+
before?: string | null;
|
|
1298
|
+
|
|
1299
|
+
failure?: string | null;
|
|
1300
|
+
|
|
1301
|
+
slow?: string | null;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
|
|
730
1305
|
export interface Input {
|
|
731
1306
|
name: string;
|
|
732
1307
|
|
|
@@ -737,6 +1312,32 @@ export namespace ToolCreateParams {
|
|
|
737
1312
|
required?: boolean;
|
|
738
1313
|
}
|
|
739
1314
|
|
|
1315
|
+
/**
|
|
1316
|
+
* Makes this a tool on one of the project's MCP servers: it takes no runtime, no
|
|
1317
|
+
* inputs and no calendar, and the description replaces the server's own. On
|
|
1318
|
+
* update, omitting it makes the tool an ordinary one.
|
|
1319
|
+
*/
|
|
1320
|
+
export interface Mcp {
|
|
1321
|
+
mcpServerId: string;
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* The tool as the server names it
|
|
1325
|
+
*/
|
|
1326
|
+
tool: string;
|
|
1327
|
+
|
|
1328
|
+
messages?: Mcp.Messages;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
export namespace Mcp {
|
|
1332
|
+
export interface Messages {
|
|
1333
|
+
before?: string | null;
|
|
1334
|
+
|
|
1335
|
+
failure?: string | null;
|
|
1336
|
+
|
|
1337
|
+
slow?: string | null;
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
|
|
740
1341
|
/**
|
|
741
1342
|
* Omit or null for a tool that is only graded
|
|
742
1343
|
*/
|
|
@@ -791,12 +1392,26 @@ export interface ToolUpdateParams {
|
|
|
791
1392
|
|
|
792
1393
|
agentId?: string | null;
|
|
793
1394
|
|
|
1395
|
+
/**
|
|
1396
|
+
* Makes this a calendar tool, which Roark runs against a connected calendar: it
|
|
1397
|
+
* takes no runtime and no inputs. Omit or null for any other tool; on update,
|
|
1398
|
+
* omitting it makes the tool an ordinary one.
|
|
1399
|
+
*/
|
|
1400
|
+
calendar?: ToolUpdateParams.Calendar | null;
|
|
1401
|
+
|
|
794
1402
|
expectedResult?: string | null;
|
|
795
1403
|
|
|
796
1404
|
inputs?: Array<ToolUpdateParams.Input>;
|
|
797
1405
|
|
|
798
1406
|
invocationCriteria?: string | null;
|
|
799
1407
|
|
|
1408
|
+
/**
|
|
1409
|
+
* Makes this a tool on one of the project's MCP servers: it takes no runtime, no
|
|
1410
|
+
* inputs and no calendar, and the description replaces the server's own. On
|
|
1411
|
+
* update, omitting it makes the tool an ordinary one.
|
|
1412
|
+
*/
|
|
1413
|
+
mcp?: ToolUpdateParams.Mcp | null;
|
|
1414
|
+
|
|
800
1415
|
/**
|
|
801
1416
|
* Omit or null for a tool that is only graded
|
|
802
1417
|
*/
|
|
@@ -804,6 +1419,56 @@ export interface ToolUpdateParams {
|
|
|
804
1419
|
}
|
|
805
1420
|
|
|
806
1421
|
export namespace ToolUpdateParams {
|
|
1422
|
+
/**
|
|
1423
|
+
* Makes this a calendar tool, which Roark runs against a connected calendar: it
|
|
1424
|
+
* takes no runtime and no inputs. Omit or null for any other tool; on update,
|
|
1425
|
+
* omitting it makes the tool an ordinary one.
|
|
1426
|
+
*/
|
|
1427
|
+
export interface Calendar {
|
|
1428
|
+
appointmentTypes: Array<Calendar.AppointmentType>;
|
|
1429
|
+
|
|
1430
|
+
calendarConnectionId: string;
|
|
1431
|
+
|
|
1432
|
+
operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
|
|
1433
|
+
|
|
1434
|
+
messages?: Calendar.Messages;
|
|
1435
|
+
|
|
1436
|
+
simulate?: boolean;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
export namespace Calendar {
|
|
1440
|
+
export interface AppointmentType {
|
|
1441
|
+
name: string;
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* For a calendar with no scheduling of its own: the bookable target to book into
|
|
1445
|
+
*/
|
|
1446
|
+
calendarTargetId?: string | null;
|
|
1447
|
+
|
|
1448
|
+
durationMinutes?: number | null;
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
* For Cal.com: the event type to book
|
|
1452
|
+
*/
|
|
1453
|
+
eventTypeId?: number | null;
|
|
1454
|
+
|
|
1455
|
+
/**
|
|
1456
|
+
* For Calendly: the event type to book, by URI
|
|
1457
|
+
*/
|
|
1458
|
+
eventTypeUri?: string | null;
|
|
1459
|
+
|
|
1460
|
+
whenToUse?: string | null;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
export interface Messages {
|
|
1464
|
+
before?: string | null;
|
|
1465
|
+
|
|
1466
|
+
failure?: string | null;
|
|
1467
|
+
|
|
1468
|
+
slow?: string | null;
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
|
|
807
1472
|
export interface Input {
|
|
808
1473
|
name: string;
|
|
809
1474
|
|
|
@@ -814,6 +1479,32 @@ export namespace ToolUpdateParams {
|
|
|
814
1479
|
required?: boolean;
|
|
815
1480
|
}
|
|
816
1481
|
|
|
1482
|
+
/**
|
|
1483
|
+
* Makes this a tool on one of the project's MCP servers: it takes no runtime, no
|
|
1484
|
+
* inputs and no calendar, and the description replaces the server's own. On
|
|
1485
|
+
* update, omitting it makes the tool an ordinary one.
|
|
1486
|
+
*/
|
|
1487
|
+
export interface Mcp {
|
|
1488
|
+
mcpServerId: string;
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* The tool as the server names it
|
|
1492
|
+
*/
|
|
1493
|
+
tool: string;
|
|
1494
|
+
|
|
1495
|
+
messages?: Mcp.Messages;
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
export namespace Mcp {
|
|
1499
|
+
export interface Messages {
|
|
1500
|
+
before?: string | null;
|
|
1501
|
+
|
|
1502
|
+
failure?: string | null;
|
|
1503
|
+
|
|
1504
|
+
slow?: string | null;
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
|
|
817
1508
|
/**
|
|
818
1509
|
* Omit or null for a tool that is only graded
|
|
819
1510
|
*/
|