@wildix/wilma-agents-client 1.0.30 → 1.0.31

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.
@@ -564,8 +564,8 @@ exports.AgentGuardrailEndAction$ = [3, n2, _AGEA,
564
564
  ];
565
565
  exports.AgentGuardrailInput$ = [3, n2, _AGI,
566
566
  0,
567
- [_che, _mo, _mod, _eM, _wi],
568
- [() => AgentGuardrailChecksList, 0, 0, 0, 0]
567
+ [_che, _mo, _ac, _mod, _eM, _wi],
568
+ [() => AgentGuardrailChecksList, 0, () => exports.AgentGuardrailAction$, 0, 0, 0]
569
569
  ];
570
570
  exports.AgentGuardrailObserveAction$ = [3, n2, _AGOA,
571
571
  0,
@@ -558,8 +558,8 @@ export var AgentGuardrailEndAction$ = [3, n2, _AGEA,
558
558
  ];
559
559
  export var AgentGuardrailInput$ = [3, n2, _AGI,
560
560
  0,
561
- [_che, _mo, _mod, _eM, _wi],
562
- [() => AgentGuardrailChecksList, 0, 0, 0, 0]
561
+ [_che, _mo, _ac, _mod, _eM, _wi],
562
+ [() => AgentGuardrailChecksList, 0, () => AgentGuardrailAction$, 0, 0, 0]
563
563
  ];
564
564
  export var AgentGuardrailObserveAction$ = [3, n2, _AGOA,
565
565
  0,
@@ -855,6 +855,16 @@ declare const CreateAgentCommand_base: {
855
855
  * },
856
856
  * ],
857
857
  * model: "STRING_VALUE",
858
+ * action: {// Union: only one key present
859
+ * observe: {},
860
+ * redact: {},
861
+ * block: {
862
+ * message: "STRING_VALUE",
863
+ * },
864
+ * end: {
865
+ * message: "STRING_VALUE",
866
+ * },
867
+ * },
858
868
  * mode: "blocking" || "parallel",
859
869
  * errorMode: "open" || "closed",
860
870
  * window: "lastMessage" || "lastWithPrior",
@@ -1719,6 +1729,16 @@ declare const CreateAgentCommand_base: {
1719
1729
  * // },
1720
1730
  * // ],
1721
1731
  * // model: "STRING_VALUE",
1732
+ * // action: {// Union: only one key present
1733
+ * // observe: {},
1734
+ * // redact: {},
1735
+ * // block: {
1736
+ * // message: "STRING_VALUE",
1737
+ * // },
1738
+ * // end: {
1739
+ * // message: "STRING_VALUE",
1740
+ * // },
1741
+ * // },
1722
1742
  * // mode: "blocking" || "parallel",
1723
1743
  * // errorMode: "open" || "closed",
1724
1744
  * // window: "lastMessage" || "lastWithPrior",
@@ -862,6 +862,16 @@ declare const GetAgentCommand_base: {
862
862
  * // },
863
863
  * // ],
864
864
  * // model: "STRING_VALUE",
865
+ * // action: {// Union: only one key present
866
+ * // observe: {},
867
+ * // redact: {},
868
+ * // block: {
869
+ * // message: "STRING_VALUE",
870
+ * // },
871
+ * // end: {
872
+ * // message: "STRING_VALUE",
873
+ * // },
874
+ * // },
865
875
  * // mode: "blocking" || "parallel",
866
876
  * // errorMode: "open" || "closed",
867
877
  * // window: "lastMessage" || "lastWithPrior",
@@ -869,6 +869,16 @@ declare const GetAgentVersionCommand_base: {
869
869
  * // },
870
870
  * // ],
871
871
  * // model: "STRING_VALUE",
872
+ * // action: {// Union: only one key present
873
+ * // observe: {},
874
+ * // redact: {},
875
+ * // block: {
876
+ * // message: "STRING_VALUE",
877
+ * // },
878
+ * // end: {
879
+ * // message: "STRING_VALUE",
880
+ * // },
881
+ * // },
872
882
  * // mode: "blocking" || "parallel",
873
883
  * // errorMode: "open" || "closed",
874
884
  * // window: "lastMessage" || "lastWithPrior",
@@ -867,6 +867,16 @@ declare const ListAgentsCommand_base: {
867
867
  * // },
868
868
  * // ],
869
869
  * // model: "STRING_VALUE",
870
+ * // action: {// Union: only one key present
871
+ * // observe: {},
872
+ * // redact: {},
873
+ * // block: {
874
+ * // message: "STRING_VALUE",
875
+ * // },
876
+ * // end: {
877
+ * // message: "STRING_VALUE",
878
+ * // },
879
+ * // },
870
880
  * // mode: "blocking" || "parallel",
871
881
  * // errorMode: "open" || "closed",
872
882
  * // window: "lastMessage" || "lastWithPrior",
@@ -871,6 +871,16 @@ declare const PublishAgentVersionCommand_base: {
871
871
  * // },
872
872
  * // ],
873
873
  * // model: "STRING_VALUE",
874
+ * // action: {// Union: only one key present
875
+ * // observe: {},
876
+ * // redact: {},
877
+ * // block: {
878
+ * // message: "STRING_VALUE",
879
+ * // },
880
+ * // end: {
881
+ * // message: "STRING_VALUE",
882
+ * // },
883
+ * // },
874
884
  * // mode: "blocking" || "parallel",
875
885
  * // errorMode: "open" || "closed",
876
886
  * // window: "lastMessage" || "lastWithPrior",
@@ -864,6 +864,16 @@ declare const RestoreAgentVersionToDraftCommand_base: {
864
864
  * // },
865
865
  * // ],
866
866
  * // model: "STRING_VALUE",
867
+ * // action: {// Union: only one key present
868
+ * // observe: {},
869
+ * // redact: {},
870
+ * // block: {
871
+ * // message: "STRING_VALUE",
872
+ * // },
873
+ * // end: {
874
+ * // message: "STRING_VALUE",
875
+ * // },
876
+ * // },
867
877
  * // mode: "blocking" || "parallel",
868
878
  * // errorMode: "open" || "closed",
869
879
  * // window: "lastMessage" || "lastWithPrior",
@@ -855,6 +855,16 @@ declare const UpdateAgentCommand_base: {
855
855
  * },
856
856
  * ],
857
857
  * model: "STRING_VALUE",
858
+ * action: {// Union: only one key present
859
+ * observe: {},
860
+ * redact: {},
861
+ * block: {
862
+ * message: "STRING_VALUE",
863
+ * },
864
+ * end: {
865
+ * message: "STRING_VALUE",
866
+ * },
867
+ * },
858
868
  * mode: "blocking" || "parallel",
859
869
  * errorMode: "open" || "closed",
860
870
  * window: "lastMessage" || "lastWithPrior",
@@ -1721,6 +1731,16 @@ declare const UpdateAgentCommand_base: {
1721
1731
  * // },
1722
1732
  * // ],
1723
1733
  * // model: "STRING_VALUE",
1734
+ * // action: {// Union: only one key present
1735
+ * // observe: {},
1736
+ * // redact: {},
1737
+ * // block: {
1738
+ * // message: "STRING_VALUE",
1739
+ * // },
1740
+ * // end: {
1741
+ * // message: "STRING_VALUE",
1742
+ * // },
1743
+ * // },
1724
1744
  * // mode: "blocking" || "parallel",
1725
1745
  * // errorMode: "open" || "closed",
1726
1746
  * // window: "lastMessage" || "lastWithPrior",
@@ -2010,6 +2010,11 @@ export interface AgentGuardrailInput {
2010
2010
  * @public
2011
2011
  */
2012
2012
  model?: string | undefined;
2013
+ /**
2014
+ * Action for checks that declare none. Defaults to a block.
2015
+ * @public
2016
+ */
2017
+ action?: AgentGuardrailAction | undefined;
2013
2018
  /**
2014
2019
  * Runs the checker before the agent's model (BLOCKING) or alongside it (PARALLEL). Blocking costs the checker's latency on every turn but guarantees that a refused turn spent no tokens and fired no tool; parallel adds no latency and is the right trade on voice, where the delay is audible, at the risk that part of a reply reaches the caller and that a tool has already run before the cancellation lands. Defaults to BLOCKING.
2015
2020
  * @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wilma-agents-client",
3
3
  "description": "@wildix/wilma-agents-client client",
4
- "version": "1.0.30",
4
+ "version": "1.0.31",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",