retell-sdk 5.42.1 → 5.44.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/CHANGELOG.md +24 -0
- package/package.json +1 -1
- package/resources/agent.d.mts +8 -8
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +8 -8
- package/resources/agent.d.ts.map +1 -1
- package/resources/batch-call.d.mts +5 -5
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +5 -5
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +15 -15
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +15 -15
- package/resources/call.d.ts.map +1 -1
- package/resources/chat-agent.d.mts +5 -5
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +5 -5
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat.d.mts +2 -2
- package/resources/chat.d.ts +2 -2
- package/resources/conversation-flow-component.d.mts +54 -54
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +54 -54
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +111 -111
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +111 -111
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/llm.d.mts +15 -15
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +15 -15
- package/resources/llm.d.ts.map +1 -1
- package/resources/mcp-tool.d.mts +1 -1
- package/resources/mcp-tool.d.ts +1 -1
- package/resources/phone-number.d.mts +12 -12
- package/resources/phone-number.d.ts +12 -12
- package/resources/playground.d.mts +20 -8
- package/resources/playground.d.mts.map +1 -1
- package/resources/playground.d.ts +20 -8
- package/resources/playground.d.ts.map +1 -1
- package/resources/tests.d.mts +60 -24
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +60 -24
- package/resources/tests.d.ts.map +1 -1
- package/src/resources/agent.ts +5 -8
- package/src/resources/batch-call.ts +4 -3
- package/src/resources/call.ts +12 -9
- package/src/resources/chat-agent.ts +5 -2
- package/src/resources/chat.ts +2 -2
- package/src/resources/conversation-flow-component.ts +54 -12
- package/src/resources/conversation-flow.ts +111 -24
- package/src/resources/llm.ts +15 -12
- package/src/resources/mcp-tool.ts +1 -1
- package/src/resources/phone-number.ts +12 -12
- package/src/resources/playground.ts +20 -8
- package/src/resources/tests.ts +60 -21
- 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/src/resources/llm.ts
CHANGED
|
@@ -188,6 +188,7 @@ export interface LlmResponse {
|
|
|
188
188
|
| 'gpt-5.5'
|
|
189
189
|
| 'claude-4.5-sonnet'
|
|
190
190
|
| 'claude-4.6-sonnet'
|
|
191
|
+
| 'claude-5-sonnet'
|
|
191
192
|
| 'claude-4.5-haiku'
|
|
192
193
|
| 'gemini-3.0-flash'
|
|
193
194
|
| 'gemini-3.1-flash-lite'
|
|
@@ -620,7 +621,7 @@ export namespace LlmResponse {
|
|
|
620
621
|
/**
|
|
621
622
|
* The version of the transfer agent to use.
|
|
622
623
|
*/
|
|
623
|
-
agent_version:
|
|
624
|
+
agent_version: string | number;
|
|
624
625
|
}
|
|
625
626
|
}
|
|
626
627
|
|
|
@@ -747,7 +748,7 @@ export namespace LlmResponse {
|
|
|
747
748
|
* The version of the agent to swap to. If not specified, will use the latest
|
|
748
749
|
* version.
|
|
749
750
|
*/
|
|
750
|
-
agent_version?:
|
|
751
|
+
agent_version?: string | number;
|
|
751
752
|
|
|
752
753
|
/**
|
|
753
754
|
* Describes what the tool does, sometimes can also include information about when
|
|
@@ -1916,7 +1917,7 @@ export namespace LlmResponse {
|
|
|
1916
1917
|
/**
|
|
1917
1918
|
* The version of the transfer agent to use.
|
|
1918
1919
|
*/
|
|
1919
|
-
agent_version:
|
|
1920
|
+
agent_version: string | number;
|
|
1920
1921
|
}
|
|
1921
1922
|
}
|
|
1922
1923
|
|
|
@@ -2043,7 +2044,7 @@ export namespace LlmResponse {
|
|
|
2043
2044
|
* The version of the agent to swap to. If not specified, will use the latest
|
|
2044
2045
|
* version.
|
|
2045
2046
|
*/
|
|
2046
|
-
agent_version?:
|
|
2047
|
+
agent_version?: string | number;
|
|
2047
2048
|
|
|
2048
2049
|
/**
|
|
2049
2050
|
* Describes what the tool does, sometimes can also include information about when
|
|
@@ -2801,6 +2802,7 @@ export interface LlmCreateParams {
|
|
|
2801
2802
|
| 'gpt-5.5'
|
|
2802
2803
|
| 'claude-4.5-sonnet'
|
|
2803
2804
|
| 'claude-4.6-sonnet'
|
|
2805
|
+
| 'claude-5-sonnet'
|
|
2804
2806
|
| 'claude-4.5-haiku'
|
|
2805
2807
|
| 'gemini-3.0-flash'
|
|
2806
2808
|
| 'gemini-3.1-flash-lite'
|
|
@@ -3228,7 +3230,7 @@ export namespace LlmCreateParams {
|
|
|
3228
3230
|
/**
|
|
3229
3231
|
* The version of the transfer agent to use.
|
|
3230
3232
|
*/
|
|
3231
|
-
agent_version:
|
|
3233
|
+
agent_version: string | number;
|
|
3232
3234
|
}
|
|
3233
3235
|
}
|
|
3234
3236
|
|
|
@@ -3355,7 +3357,7 @@ export namespace LlmCreateParams {
|
|
|
3355
3357
|
* The version of the agent to swap to. If not specified, will use the latest
|
|
3356
3358
|
* version.
|
|
3357
3359
|
*/
|
|
3358
|
-
agent_version?:
|
|
3360
|
+
agent_version?: string | number;
|
|
3359
3361
|
|
|
3360
3362
|
/**
|
|
3361
3363
|
* Describes what the tool does, sometimes can also include information about when
|
|
@@ -4524,7 +4526,7 @@ export namespace LlmCreateParams {
|
|
|
4524
4526
|
/**
|
|
4525
4527
|
* The version of the transfer agent to use.
|
|
4526
4528
|
*/
|
|
4527
|
-
agent_version:
|
|
4529
|
+
agent_version: string | number;
|
|
4528
4530
|
}
|
|
4529
4531
|
}
|
|
4530
4532
|
|
|
@@ -4651,7 +4653,7 @@ export namespace LlmCreateParams {
|
|
|
4651
4653
|
* The version of the agent to swap to. If not specified, will use the latest
|
|
4652
4654
|
* version.
|
|
4653
4655
|
*/
|
|
4654
|
-
agent_version?:
|
|
4656
|
+
agent_version?: string | number;
|
|
4655
4657
|
|
|
4656
4658
|
/**
|
|
4657
4659
|
* Describes what the tool does, sometimes can also include information about when
|
|
@@ -5428,6 +5430,7 @@ export interface LlmUpdateParams {
|
|
|
5428
5430
|
| 'gpt-5.5'
|
|
5429
5431
|
| 'claude-4.5-sonnet'
|
|
5430
5432
|
| 'claude-4.6-sonnet'
|
|
5433
|
+
| 'claude-5-sonnet'
|
|
5431
5434
|
| 'claude-4.5-haiku'
|
|
5432
5435
|
| 'gemini-3.0-flash'
|
|
5433
5436
|
| 'gemini-3.1-flash-lite'
|
|
@@ -5855,7 +5858,7 @@ export namespace LlmUpdateParams {
|
|
|
5855
5858
|
/**
|
|
5856
5859
|
* The version of the transfer agent to use.
|
|
5857
5860
|
*/
|
|
5858
|
-
agent_version:
|
|
5861
|
+
agent_version: string | number;
|
|
5859
5862
|
}
|
|
5860
5863
|
}
|
|
5861
5864
|
|
|
@@ -5982,7 +5985,7 @@ export namespace LlmUpdateParams {
|
|
|
5982
5985
|
* The version of the agent to swap to. If not specified, will use the latest
|
|
5983
5986
|
* version.
|
|
5984
5987
|
*/
|
|
5985
|
-
agent_version?:
|
|
5988
|
+
agent_version?: string | number;
|
|
5986
5989
|
|
|
5987
5990
|
/**
|
|
5988
5991
|
* Describes what the tool does, sometimes can also include information about when
|
|
@@ -7151,7 +7154,7 @@ export namespace LlmUpdateParams {
|
|
|
7151
7154
|
/**
|
|
7152
7155
|
* The version of the transfer agent to use.
|
|
7153
7156
|
*/
|
|
7154
|
-
agent_version:
|
|
7157
|
+
agent_version: string | number;
|
|
7155
7158
|
}
|
|
7156
7159
|
}
|
|
7157
7160
|
|
|
@@ -7278,7 +7281,7 @@ export namespace LlmUpdateParams {
|
|
|
7278
7281
|
* The version of the agent to swap to. If not specified, will use the latest
|
|
7279
7282
|
* version.
|
|
7280
7283
|
*/
|
|
7281
|
-
agent_version?:
|
|
7284
|
+
agent_version?: string | number;
|
|
7282
7285
|
|
|
7283
7286
|
/**
|
|
7284
7287
|
* Describes what the tool does, sometimes can also include information about when
|
|
@@ -237,7 +237,7 @@ export namespace PhoneNumberResponse {
|
|
|
237
237
|
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
238
238
|
* version (most recently assigned), if any.
|
|
239
239
|
*/
|
|
240
|
-
agent_version?:
|
|
240
|
+
agent_version?: string | number;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
export interface InboundSMSAgent {
|
|
@@ -260,7 +260,7 @@ export namespace PhoneNumberResponse {
|
|
|
260
260
|
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
261
261
|
* version (most recently assigned), if any.
|
|
262
262
|
*/
|
|
263
|
-
agent_version?:
|
|
263
|
+
agent_version?: string | number;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
export interface OutboundAgent {
|
|
@@ -283,7 +283,7 @@ export namespace PhoneNumberResponse {
|
|
|
283
283
|
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
284
284
|
* version (most recently assigned), if any.
|
|
285
285
|
*/
|
|
286
|
-
agent_version?:
|
|
286
|
+
agent_version?: string | number;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
export interface OutboundSMSAgent {
|
|
@@ -306,7 +306,7 @@ export namespace PhoneNumberResponse {
|
|
|
306
306
|
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
307
307
|
* version (most recently assigned), if any.
|
|
308
308
|
*/
|
|
309
|
-
agent_version?:
|
|
309
|
+
agent_version?: string | number;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
export interface SipOutboundTrunkConfig {
|
|
@@ -446,7 +446,7 @@ export namespace PhoneNumberCreateParams {
|
|
|
446
446
|
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
447
447
|
* version (most recently assigned), if any.
|
|
448
448
|
*/
|
|
449
|
-
agent_version?:
|
|
449
|
+
agent_version?: string | number;
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
export interface OutboundAgent {
|
|
@@ -469,7 +469,7 @@ export namespace PhoneNumberCreateParams {
|
|
|
469
469
|
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
470
470
|
* version (most recently assigned), if any.
|
|
471
471
|
*/
|
|
472
|
-
agent_version?:
|
|
472
|
+
agent_version?: string | number;
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
|
|
@@ -572,7 +572,7 @@ export namespace PhoneNumberImportParams {
|
|
|
572
572
|
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
573
573
|
* version (most recently assigned), if any.
|
|
574
574
|
*/
|
|
575
|
-
agent_version?:
|
|
575
|
+
agent_version?: string | number;
|
|
576
576
|
}
|
|
577
577
|
|
|
578
578
|
export interface OutboundAgent {
|
|
@@ -595,7 +595,7 @@ export namespace PhoneNumberImportParams {
|
|
|
595
595
|
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
596
596
|
* version (most recently assigned), if any.
|
|
597
597
|
*/
|
|
598
|
-
agent_version?:
|
|
598
|
+
agent_version?: string | number;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
|
|
@@ -731,7 +731,7 @@ export namespace PhoneNumberUpdateParams {
|
|
|
731
731
|
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
732
732
|
* version (most recently assigned), if any.
|
|
733
733
|
*/
|
|
734
|
-
agent_version?:
|
|
734
|
+
agent_version?: string | number;
|
|
735
735
|
}
|
|
736
736
|
|
|
737
737
|
export interface InboundSMSAgent {
|
|
@@ -754,7 +754,7 @@ export namespace PhoneNumberUpdateParams {
|
|
|
754
754
|
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
755
755
|
* version (most recently assigned), if any.
|
|
756
756
|
*/
|
|
757
|
-
agent_version?:
|
|
757
|
+
agent_version?: string | number;
|
|
758
758
|
}
|
|
759
759
|
|
|
760
760
|
export interface OutboundAgent {
|
|
@@ -777,7 +777,7 @@ export namespace PhoneNumberUpdateParams {
|
|
|
777
777
|
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
778
778
|
* version (most recently assigned), if any.
|
|
779
779
|
*/
|
|
780
|
-
agent_version?:
|
|
780
|
+
agent_version?: string | number;
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
export interface OutboundSMSAgent {
|
|
@@ -800,7 +800,7 @@ export namespace PhoneNumberUpdateParams {
|
|
|
800
800
|
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
801
801
|
* version (most recently assigned), if any.
|
|
802
802
|
*/
|
|
803
|
-
agent_version?:
|
|
803
|
+
agent_version?: string | number;
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
806
|
|
|
@@ -340,7 +340,7 @@ export interface PlaygroundCompletionParams {
|
|
|
340
340
|
/**
|
|
341
341
|
* Query param: Agent version to use. Defaults to latest.
|
|
342
342
|
*/
|
|
343
|
-
version?:
|
|
343
|
+
version?: string | number;
|
|
344
344
|
|
|
345
345
|
/**
|
|
346
346
|
* Body param: Conversation flow component id. Required when current_node_id refers
|
|
@@ -605,20 +605,29 @@ export namespace PlaygroundCompletionParams {
|
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
|
|
608
|
+
/**
|
|
609
|
+
* A fake response for one tool. During a simulation, when the LLM calls a tool
|
|
610
|
+
* whose name matches `tool_name` and whose arguments satisfy `input_match_rule`,
|
|
611
|
+
* the real tool is not run; `output` is returned to the LLM instead. This keeps
|
|
612
|
+
* runs deterministic and avoids calling live integrations. A tool call that
|
|
613
|
+
* matches no mock falls through to the real tool.
|
|
614
|
+
*/
|
|
608
615
|
export interface ToolMock {
|
|
609
616
|
/**
|
|
610
|
-
*
|
|
617
|
+
* Decides which calls to this tool the mock applies to.
|
|
611
618
|
*/
|
|
612
619
|
input_match_rule: ToolMock.Type | ToolMock.UnionMember1;
|
|
613
620
|
|
|
614
621
|
/**
|
|
615
|
-
* The
|
|
616
|
-
* string.
|
|
622
|
+
* The tool result fed back to the LLM in place of the real tool's output. Should
|
|
623
|
+
* be a JSON string, the same shape the real tool would return.
|
|
617
624
|
*/
|
|
618
625
|
output: string;
|
|
619
626
|
|
|
620
627
|
/**
|
|
621
|
-
*
|
|
628
|
+
* The tool's function name, not the tool ID, i.e. the name the LLM uses when it
|
|
629
|
+
* calls the tool (for example `check_availability_cal`, `book_appointment_cal`, or
|
|
630
|
+
* the name you gave a custom function).
|
|
622
631
|
*/
|
|
623
632
|
tool_name: string;
|
|
624
633
|
|
|
@@ -632,19 +641,22 @@ export namespace PlaygroundCompletionParams {
|
|
|
632
641
|
export namespace ToolMock {
|
|
633
642
|
export interface Type {
|
|
634
643
|
/**
|
|
635
|
-
* Match
|
|
644
|
+
* Match every call to the tool, no matter what arguments were passed. Use this for
|
|
645
|
+
* a catch-all mock.
|
|
636
646
|
*/
|
|
637
647
|
type: 'any';
|
|
638
648
|
}
|
|
639
649
|
|
|
640
650
|
export interface UnionMember1 {
|
|
641
651
|
/**
|
|
642
|
-
*
|
|
652
|
+
* Argument values the call must have to match. Only the fields you list here are
|
|
653
|
+
* checked, and each must equal the value in the actual call. Extra fields in the
|
|
654
|
+
* call are ignored, so this is a subset match.
|
|
643
655
|
*/
|
|
644
656
|
args: unknown;
|
|
645
657
|
|
|
646
658
|
/**
|
|
647
|
-
* Match only calls
|
|
659
|
+
* Match only calls whose arguments contain the values listed in `args`.
|
|
648
660
|
*/
|
|
649
661
|
type: 'partial_match';
|
|
650
662
|
}
|
package/src/resources/tests.ts
CHANGED
|
@@ -225,6 +225,7 @@ export interface TestCaseDefinitionResponse {
|
|
|
225
225
|
| 'gpt-5.5'
|
|
226
226
|
| 'claude-4.5-sonnet'
|
|
227
227
|
| 'claude-4.6-sonnet'
|
|
228
|
+
| 'claude-5-sonnet'
|
|
228
229
|
| 'claude-4.5-haiku'
|
|
229
230
|
| 'gemini-3.0-flash'
|
|
230
231
|
| 'gemini-3.1-flash-lite'
|
|
@@ -309,20 +310,29 @@ export namespace TestCaseDefinitionResponse {
|
|
|
309
310
|
version?: number | null;
|
|
310
311
|
}
|
|
311
312
|
|
|
313
|
+
/**
|
|
314
|
+
* A fake response for one tool. During a simulation, when the LLM calls a tool
|
|
315
|
+
* whose name matches `tool_name` and whose arguments satisfy `input_match_rule`,
|
|
316
|
+
* the real tool is not run; `output` is returned to the LLM instead. This keeps
|
|
317
|
+
* runs deterministic and avoids calling live integrations. A tool call that
|
|
318
|
+
* matches no mock falls through to the real tool.
|
|
319
|
+
*/
|
|
312
320
|
export interface ToolMock {
|
|
313
321
|
/**
|
|
314
|
-
*
|
|
322
|
+
* Decides which calls to this tool the mock applies to.
|
|
315
323
|
*/
|
|
316
324
|
input_match_rule: ToolMock.Type | ToolMock.UnionMember1;
|
|
317
325
|
|
|
318
326
|
/**
|
|
319
|
-
* The
|
|
320
|
-
* string.
|
|
327
|
+
* The tool result fed back to the LLM in place of the real tool's output. Should
|
|
328
|
+
* be a JSON string, the same shape the real tool would return.
|
|
321
329
|
*/
|
|
322
330
|
output: string;
|
|
323
331
|
|
|
324
332
|
/**
|
|
325
|
-
*
|
|
333
|
+
* The tool's function name, not the tool ID, i.e. the name the LLM uses when it
|
|
334
|
+
* calls the tool (for example `check_availability_cal`, `book_appointment_cal`, or
|
|
335
|
+
* the name you gave a custom function).
|
|
326
336
|
*/
|
|
327
337
|
tool_name: string;
|
|
328
338
|
|
|
@@ -336,19 +346,22 @@ export namespace TestCaseDefinitionResponse {
|
|
|
336
346
|
export namespace ToolMock {
|
|
337
347
|
export interface Type {
|
|
338
348
|
/**
|
|
339
|
-
* Match
|
|
349
|
+
* Match every call to the tool, no matter what arguments were passed. Use this for
|
|
350
|
+
* a catch-all mock.
|
|
340
351
|
*/
|
|
341
352
|
type: 'any';
|
|
342
353
|
}
|
|
343
354
|
|
|
344
355
|
export interface UnionMember1 {
|
|
345
356
|
/**
|
|
346
|
-
*
|
|
357
|
+
* Argument values the call must have to match. Only the fields you list here are
|
|
358
|
+
* checked, and each must equal the value in the actual call. Extra fields in the
|
|
359
|
+
* call are ignored, so this is a subset match.
|
|
347
360
|
*/
|
|
348
361
|
args: unknown;
|
|
349
362
|
|
|
350
363
|
/**
|
|
351
|
-
* Match only calls
|
|
364
|
+
* Match only calls whose arguments contain the values listed in `args`.
|
|
352
365
|
*/
|
|
353
366
|
type: 'partial_match';
|
|
354
367
|
}
|
|
@@ -488,6 +501,7 @@ export interface TestCreateTestCaseDefinitionParams {
|
|
|
488
501
|
| 'gpt-5.5'
|
|
489
502
|
| 'claude-4.5-sonnet'
|
|
490
503
|
| 'claude-4.6-sonnet'
|
|
504
|
+
| 'claude-5-sonnet'
|
|
491
505
|
| 'claude-4.5-haiku'
|
|
492
506
|
| 'gemini-3.0-flash'
|
|
493
507
|
| 'gemini-3.1-flash-lite'
|
|
@@ -534,20 +548,29 @@ export namespace TestCreateTestCaseDefinitionParams {
|
|
|
534
548
|
version?: number | null;
|
|
535
549
|
}
|
|
536
550
|
|
|
551
|
+
/**
|
|
552
|
+
* A fake response for one tool. During a simulation, when the LLM calls a tool
|
|
553
|
+
* whose name matches `tool_name` and whose arguments satisfy `input_match_rule`,
|
|
554
|
+
* the real tool is not run; `output` is returned to the LLM instead. This keeps
|
|
555
|
+
* runs deterministic and avoids calling live integrations. A tool call that
|
|
556
|
+
* matches no mock falls through to the real tool.
|
|
557
|
+
*/
|
|
537
558
|
export interface ToolMock {
|
|
538
559
|
/**
|
|
539
|
-
*
|
|
560
|
+
* Decides which calls to this tool the mock applies to.
|
|
540
561
|
*/
|
|
541
562
|
input_match_rule: ToolMock.Type | ToolMock.UnionMember1;
|
|
542
563
|
|
|
543
564
|
/**
|
|
544
|
-
* The
|
|
545
|
-
* string.
|
|
565
|
+
* The tool result fed back to the LLM in place of the real tool's output. Should
|
|
566
|
+
* be a JSON string, the same shape the real tool would return.
|
|
546
567
|
*/
|
|
547
568
|
output: string;
|
|
548
569
|
|
|
549
570
|
/**
|
|
550
|
-
*
|
|
571
|
+
* The tool's function name, not the tool ID, i.e. the name the LLM uses when it
|
|
572
|
+
* calls the tool (for example `check_availability_cal`, `book_appointment_cal`, or
|
|
573
|
+
* the name you gave a custom function).
|
|
551
574
|
*/
|
|
552
575
|
tool_name: string;
|
|
553
576
|
|
|
@@ -561,19 +584,22 @@ export namespace TestCreateTestCaseDefinitionParams {
|
|
|
561
584
|
export namespace ToolMock {
|
|
562
585
|
export interface Type {
|
|
563
586
|
/**
|
|
564
|
-
* Match
|
|
587
|
+
* Match every call to the tool, no matter what arguments were passed. Use this for
|
|
588
|
+
* a catch-all mock.
|
|
565
589
|
*/
|
|
566
590
|
type: 'any';
|
|
567
591
|
}
|
|
568
592
|
|
|
569
593
|
export interface UnionMember1 {
|
|
570
594
|
/**
|
|
571
|
-
*
|
|
595
|
+
* Argument values the call must have to match. Only the fields you list here are
|
|
596
|
+
* checked, and each must equal the value in the actual call. Extra fields in the
|
|
597
|
+
* call are ignored, so this is a subset match.
|
|
572
598
|
*/
|
|
573
599
|
args: unknown;
|
|
574
600
|
|
|
575
601
|
/**
|
|
576
|
-
* Match only calls
|
|
602
|
+
* Match only calls whose arguments contain the values listed in `args`.
|
|
577
603
|
*/
|
|
578
604
|
type: 'partial_match';
|
|
579
605
|
}
|
|
@@ -631,6 +657,7 @@ export interface TestUpdateTestCaseDefinitionParams {
|
|
|
631
657
|
| 'gpt-5.5'
|
|
632
658
|
| 'claude-4.5-sonnet'
|
|
633
659
|
| 'claude-4.6-sonnet'
|
|
660
|
+
| 'claude-5-sonnet'
|
|
634
661
|
| 'claude-4.5-haiku'
|
|
635
662
|
| 'gemini-3.0-flash'
|
|
636
663
|
| 'gemini-3.1-flash-lite'
|
|
@@ -699,20 +726,29 @@ export namespace TestUpdateTestCaseDefinitionParams {
|
|
|
699
726
|
version?: number | null;
|
|
700
727
|
}
|
|
701
728
|
|
|
729
|
+
/**
|
|
730
|
+
* A fake response for one tool. During a simulation, when the LLM calls a tool
|
|
731
|
+
* whose name matches `tool_name` and whose arguments satisfy `input_match_rule`,
|
|
732
|
+
* the real tool is not run; `output` is returned to the LLM instead. This keeps
|
|
733
|
+
* runs deterministic and avoids calling live integrations. A tool call that
|
|
734
|
+
* matches no mock falls through to the real tool.
|
|
735
|
+
*/
|
|
702
736
|
export interface ToolMock {
|
|
703
737
|
/**
|
|
704
|
-
*
|
|
738
|
+
* Decides which calls to this tool the mock applies to.
|
|
705
739
|
*/
|
|
706
740
|
input_match_rule: ToolMock.Type | ToolMock.UnionMember1;
|
|
707
741
|
|
|
708
742
|
/**
|
|
709
|
-
* The
|
|
710
|
-
* string.
|
|
743
|
+
* The tool result fed back to the LLM in place of the real tool's output. Should
|
|
744
|
+
* be a JSON string, the same shape the real tool would return.
|
|
711
745
|
*/
|
|
712
746
|
output: string;
|
|
713
747
|
|
|
714
748
|
/**
|
|
715
|
-
*
|
|
749
|
+
* The tool's function name, not the tool ID, i.e. the name the LLM uses when it
|
|
750
|
+
* calls the tool (for example `check_availability_cal`, `book_appointment_cal`, or
|
|
751
|
+
* the name you gave a custom function).
|
|
716
752
|
*/
|
|
717
753
|
tool_name: string;
|
|
718
754
|
|
|
@@ -726,19 +762,22 @@ export namespace TestUpdateTestCaseDefinitionParams {
|
|
|
726
762
|
export namespace ToolMock {
|
|
727
763
|
export interface Type {
|
|
728
764
|
/**
|
|
729
|
-
* Match
|
|
765
|
+
* Match every call to the tool, no matter what arguments were passed. Use this for
|
|
766
|
+
* a catch-all mock.
|
|
730
767
|
*/
|
|
731
768
|
type: 'any';
|
|
732
769
|
}
|
|
733
770
|
|
|
734
771
|
export interface UnionMember1 {
|
|
735
772
|
/**
|
|
736
|
-
*
|
|
773
|
+
* Argument values the call must have to match. Only the fields you list here are
|
|
774
|
+
* checked, and each must equal the value in the actual call. Extra fields in the
|
|
775
|
+
* call are ignored, so this is a subset match.
|
|
737
776
|
*/
|
|
738
777
|
args: unknown;
|
|
739
778
|
|
|
740
779
|
/**
|
|
741
|
-
* Match only calls
|
|
780
|
+
* Match only calls whose arguments contain the values listed in `args`.
|
|
742
781
|
*/
|
|
743
782
|
type: 'partial_match';
|
|
744
783
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.44.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "5.
|
|
1
|
+
export declare const VERSION = "5.44.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "5.
|
|
1
|
+
export declare const VERSION = "5.44.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.44.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|