retell-sdk 5.43.0 → 5.45.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/call.d.mts +0 -11
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +0 -11
- package/resources/call.d.ts.map +1 -1
- package/resources/playground.d.mts +19 -7
- package/resources/playground.d.mts.map +1 -1
- package/resources/playground.d.ts +19 -7
- package/resources/playground.d.ts.map +1 -1
- package/resources/tests.d.mts +57 -21
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +57 -21
- package/resources/tests.d.ts.map +1 -1
- package/src/resources/call.ts +0 -10
- package/src/resources/playground.ts +19 -7
- package/src/resources/tests.ts +57 -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/tests.ts
CHANGED
|
@@ -310,20 +310,29 @@ export namespace TestCaseDefinitionResponse {
|
|
|
310
310
|
version?: number | null;
|
|
311
311
|
}
|
|
312
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
|
+
*/
|
|
313
320
|
export interface ToolMock {
|
|
314
321
|
/**
|
|
315
|
-
*
|
|
322
|
+
* Decides which calls to this tool the mock applies to.
|
|
316
323
|
*/
|
|
317
324
|
input_match_rule: ToolMock.Type | ToolMock.UnionMember1;
|
|
318
325
|
|
|
319
326
|
/**
|
|
320
|
-
* The
|
|
321
|
-
* 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.
|
|
322
329
|
*/
|
|
323
330
|
output: string;
|
|
324
331
|
|
|
325
332
|
/**
|
|
326
|
-
*
|
|
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).
|
|
327
336
|
*/
|
|
328
337
|
tool_name: string;
|
|
329
338
|
|
|
@@ -337,19 +346,22 @@ export namespace TestCaseDefinitionResponse {
|
|
|
337
346
|
export namespace ToolMock {
|
|
338
347
|
export interface Type {
|
|
339
348
|
/**
|
|
340
|
-
* Match
|
|
349
|
+
* Match every call to the tool, no matter what arguments were passed. Use this for
|
|
350
|
+
* a catch-all mock.
|
|
341
351
|
*/
|
|
342
352
|
type: 'any';
|
|
343
353
|
}
|
|
344
354
|
|
|
345
355
|
export interface UnionMember1 {
|
|
346
356
|
/**
|
|
347
|
-
*
|
|
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.
|
|
348
360
|
*/
|
|
349
361
|
args: unknown;
|
|
350
362
|
|
|
351
363
|
/**
|
|
352
|
-
* Match only calls
|
|
364
|
+
* Match only calls whose arguments contain the values listed in `args`.
|
|
353
365
|
*/
|
|
354
366
|
type: 'partial_match';
|
|
355
367
|
}
|
|
@@ -536,20 +548,29 @@ export namespace TestCreateTestCaseDefinitionParams {
|
|
|
536
548
|
version?: number | null;
|
|
537
549
|
}
|
|
538
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
|
+
*/
|
|
539
558
|
export interface ToolMock {
|
|
540
559
|
/**
|
|
541
|
-
*
|
|
560
|
+
* Decides which calls to this tool the mock applies to.
|
|
542
561
|
*/
|
|
543
562
|
input_match_rule: ToolMock.Type | ToolMock.UnionMember1;
|
|
544
563
|
|
|
545
564
|
/**
|
|
546
|
-
* The
|
|
547
|
-
* 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.
|
|
548
567
|
*/
|
|
549
568
|
output: string;
|
|
550
569
|
|
|
551
570
|
/**
|
|
552
|
-
*
|
|
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).
|
|
553
574
|
*/
|
|
554
575
|
tool_name: string;
|
|
555
576
|
|
|
@@ -563,19 +584,22 @@ export namespace TestCreateTestCaseDefinitionParams {
|
|
|
563
584
|
export namespace ToolMock {
|
|
564
585
|
export interface Type {
|
|
565
586
|
/**
|
|
566
|
-
* Match
|
|
587
|
+
* Match every call to the tool, no matter what arguments were passed. Use this for
|
|
588
|
+
* a catch-all mock.
|
|
567
589
|
*/
|
|
568
590
|
type: 'any';
|
|
569
591
|
}
|
|
570
592
|
|
|
571
593
|
export interface UnionMember1 {
|
|
572
594
|
/**
|
|
573
|
-
*
|
|
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.
|
|
574
598
|
*/
|
|
575
599
|
args: unknown;
|
|
576
600
|
|
|
577
601
|
/**
|
|
578
|
-
* Match only calls
|
|
602
|
+
* Match only calls whose arguments contain the values listed in `args`.
|
|
579
603
|
*/
|
|
580
604
|
type: 'partial_match';
|
|
581
605
|
}
|
|
@@ -702,20 +726,29 @@ export namespace TestUpdateTestCaseDefinitionParams {
|
|
|
702
726
|
version?: number | null;
|
|
703
727
|
}
|
|
704
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
|
+
*/
|
|
705
736
|
export interface ToolMock {
|
|
706
737
|
/**
|
|
707
|
-
*
|
|
738
|
+
* Decides which calls to this tool the mock applies to.
|
|
708
739
|
*/
|
|
709
740
|
input_match_rule: ToolMock.Type | ToolMock.UnionMember1;
|
|
710
741
|
|
|
711
742
|
/**
|
|
712
|
-
* The
|
|
713
|
-
* 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.
|
|
714
745
|
*/
|
|
715
746
|
output: string;
|
|
716
747
|
|
|
717
748
|
/**
|
|
718
|
-
*
|
|
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).
|
|
719
752
|
*/
|
|
720
753
|
tool_name: string;
|
|
721
754
|
|
|
@@ -729,19 +762,22 @@ export namespace TestUpdateTestCaseDefinitionParams {
|
|
|
729
762
|
export namespace ToolMock {
|
|
730
763
|
export interface Type {
|
|
731
764
|
/**
|
|
732
|
-
* Match
|
|
765
|
+
* Match every call to the tool, no matter what arguments were passed. Use this for
|
|
766
|
+
* a catch-all mock.
|
|
733
767
|
*/
|
|
734
768
|
type: 'any';
|
|
735
769
|
}
|
|
736
770
|
|
|
737
771
|
export interface UnionMember1 {
|
|
738
772
|
/**
|
|
739
|
-
*
|
|
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.
|
|
740
776
|
*/
|
|
741
777
|
args: unknown;
|
|
742
778
|
|
|
743
779
|
/**
|
|
744
|
-
* Match only calls
|
|
780
|
+
* Match only calls whose arguments contain the values listed in `args`.
|
|
745
781
|
*/
|
|
746
782
|
type: 'partial_match';
|
|
747
783
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.45.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.45.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.45.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.45.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|