@breign/client 1.0.146 → 1.0.147

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.
@@ -0,0 +1,32 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Per-agent activation of code mode: the model writes a JavaScript/TypeScript program that calls the agent's tools inside a sandbox, instead of one tool call per round trip. Opt-in, and narrower than it looks — only the tools declared code-mode callable server-side are reachable from a program. The server configuration can only narrow this.
14
+ * @export
15
+ * @interface AgentCodeModeConfigurationUio
16
+ */
17
+ export interface AgentCodeModeConfigurationUio {
18
+ /**
19
+ * General switch for code mode on this agent.
20
+ * @type {boolean}
21
+ * @memberof AgentCodeModeConfigurationUio
22
+ */
23
+ enabled?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AgentCodeModeConfigurationUio interface.
27
+ */
28
+ export declare function instanceOfAgentCodeModeConfigurationUio(value: object): value is AgentCodeModeConfigurationUio;
29
+ export declare function AgentCodeModeConfigurationUioFromJSON(json: any): AgentCodeModeConfigurationUio;
30
+ export declare function AgentCodeModeConfigurationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentCodeModeConfigurationUio;
31
+ export declare function AgentCodeModeConfigurationUioToJSON(json: any): AgentCodeModeConfigurationUio;
32
+ export declare function AgentCodeModeConfigurationUioToJSONTyped(value?: AgentCodeModeConfigurationUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAgentCodeModeConfigurationUio = instanceOfAgentCodeModeConfigurationUio;
17
+ exports.AgentCodeModeConfigurationUioFromJSON = AgentCodeModeConfigurationUioFromJSON;
18
+ exports.AgentCodeModeConfigurationUioFromJSONTyped = AgentCodeModeConfigurationUioFromJSONTyped;
19
+ exports.AgentCodeModeConfigurationUioToJSON = AgentCodeModeConfigurationUioToJSON;
20
+ exports.AgentCodeModeConfigurationUioToJSONTyped = AgentCodeModeConfigurationUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentCodeModeConfigurationUio interface.
23
+ */
24
+ function instanceOfAgentCodeModeConfigurationUio(value) {
25
+ return true;
26
+ }
27
+ function AgentCodeModeConfigurationUioFromJSON(json) {
28
+ return AgentCodeModeConfigurationUioFromJSONTyped(json, false);
29
+ }
30
+ function AgentCodeModeConfigurationUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
36
+ };
37
+ }
38
+ function AgentCodeModeConfigurationUioToJSON(json) {
39
+ return AgentCodeModeConfigurationUioToJSONTyped(json, false);
40
+ }
41
+ function AgentCodeModeConfigurationUioToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'enabled': value['enabled'],
47
+ };
48
+ }
@@ -12,6 +12,7 @@
12
12
  import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
13
13
  import type { ContextualKnowledgeConversationUio } from './ContextualKnowledgeConversationUio';
14
14
  import type { PersonaUio } from './PersonaUio';
15
+ import type { AgentCodeModeConfigurationUio } from './AgentCodeModeConfigurationUio';
15
16
  import type { PromptInitUio } from './PromptInitUio';
16
17
  import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
17
18
  import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
@@ -192,6 +193,12 @@ export interface AgentPatchUio {
192
193
  * @memberof AgentPatchUio
193
194
  */
194
195
  agentCallConfiguration?: AgentCallConfigurationUio | null;
196
+ /**
197
+ *
198
+ * @type {AgentCodeModeConfigurationUio}
199
+ * @memberof AgentPatchUio
200
+ */
201
+ codeModeConfiguration?: AgentCodeModeConfigurationUio | null;
195
202
  }
196
203
  /**
197
204
  * Check if a given object implements the AgentPatchUio interface.
@@ -21,6 +21,7 @@ exports.AgentPatchUioToJSONTyped = AgentPatchUioToJSONTyped;
21
21
  const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
22
22
  const ContextualKnowledgeConversationUio_1 = require("./ContextualKnowledgeConversationUio");
23
23
  const PersonaUio_1 = require("./PersonaUio");
24
+ const AgentCodeModeConfigurationUio_1 = require("./AgentCodeModeConfigurationUio");
24
25
  const PromptInitUio_1 = require("./PromptInitUio");
25
26
  const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
26
27
  const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
@@ -70,6 +71,7 @@ function AgentPatchUioFromJSONTyped(json, ignoreDiscriminator) {
70
71
  'sandboxConfiguration': json['sandboxConfiguration'] == null ? undefined : (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioFromJSON)(json['sandboxConfiguration']),
71
72
  'computerUseConfiguration': json['computerUseConfiguration'] == null ? undefined : (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioFromJSON)(json['computerUseConfiguration']),
72
73
  'agentCallConfiguration': json['agentCallConfiguration'] == null ? undefined : (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioFromJSON)(json['agentCallConfiguration']),
74
+ 'codeModeConfiguration': json['codeModeConfiguration'] == null ? undefined : (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioFromJSON)(json['codeModeConfiguration']),
73
75
  };
74
76
  }
75
77
  function AgentPatchUioToJSON(json) {
@@ -107,5 +109,6 @@ function AgentPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
107
109
  'sandboxConfiguration': (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioToJSON)(value['sandboxConfiguration']),
108
110
  'computerUseConfiguration': (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioToJSON)(value['computerUseConfiguration']),
109
111
  'agentCallConfiguration': (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioToJSON)(value['agentCallConfiguration']),
112
+ 'codeModeConfiguration': (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioToJSON)(value['codeModeConfiguration']),
110
113
  };
111
114
  }
@@ -17,6 +17,7 @@ import type { PromptInitUio } from './PromptInitUio';
17
17
  import type { AgentSandboxConfigurationUio } from './AgentSandboxConfigurationUio';
18
18
  import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
19
19
  import type { AgentToolUio } from './AgentToolUio';
20
+ import type { AgentCodeModeConfigurationUio } from './AgentCodeModeConfigurationUio';
20
21
  import type { AgentCreatorUio } from './AgentCreatorUio';
21
22
  import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
22
23
  import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
@@ -213,6 +214,12 @@ export interface AgentUio {
213
214
  * @memberof AgentUio
214
215
  */
215
216
  agentCallConfiguration?: AgentCallConfigurationUio | null;
217
+ /**
218
+ *
219
+ * @type {AgentCodeModeConfigurationUio}
220
+ * @memberof AgentUio
221
+ */
222
+ codeModeConfiguration?: AgentCodeModeConfigurationUio | null;
216
223
  /**
217
224
  *
218
225
  * @type {AgentCreatorUio}
@@ -27,6 +27,7 @@ const PromptInitUio_1 = require("./PromptInitUio");
27
27
  const AgentSandboxConfigurationUio_1 = require("./AgentSandboxConfigurationUio");
28
28
  const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
29
29
  const AgentToolUio_1 = require("./AgentToolUio");
30
+ const AgentCodeModeConfigurationUio_1 = require("./AgentCodeModeConfigurationUio");
30
31
  const AgentCreatorUio_1 = require("./AgentCreatorUio");
31
32
  const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
32
33
  const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
@@ -103,6 +104,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
103
104
  'sandboxConfiguration': json['sandboxConfiguration'] == null ? undefined : (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioFromJSON)(json['sandboxConfiguration']),
104
105
  'computerUseConfiguration': json['computerUseConfiguration'] == null ? undefined : (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioFromJSON)(json['computerUseConfiguration']),
105
106
  'agentCallConfiguration': json['agentCallConfiguration'] == null ? undefined : (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioFromJSON)(json['agentCallConfiguration']),
107
+ 'codeModeConfiguration': json['codeModeConfiguration'] == null ? undefined : (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioFromJSON)(json['codeModeConfiguration']),
106
108
  'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
107
109
  'engineSource': json['engineSource'] == null ? undefined : json['engineSource'],
108
110
  'providerSource': json['providerSource'] == null ? undefined : json['providerSource'],
@@ -147,6 +149,7 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
147
149
  'sandboxConfiguration': (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioToJSON)(value['sandboxConfiguration']),
148
150
  'computerUseConfiguration': (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioToJSON)(value['computerUseConfiguration']),
149
151
  'agentCallConfiguration': (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioToJSON)(value['agentCallConfiguration']),
152
+ 'codeModeConfiguration': (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioToJSON)(value['codeModeConfiguration']),
150
153
  'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
151
154
  'engineSource': value['engineSource'],
152
155
  'providerSource': value['providerSource'],
@@ -33,6 +33,12 @@ export interface ToolResultsToolUio {
33
33
  * @memberof ToolResultsToolUio
34
34
  */
35
35
  params?: string;
36
+ /**
37
+ * The tool that emitted this call when it was not the model itself — the code_mode whose program called it. Present means the call is nested: it is kept for the history and the metrics, but it is not replayed to the model, which already reads the code_mode step carrying the program and its result.
38
+ * @type {string}
39
+ * @memberof ToolResultsToolUio
40
+ */
41
+ callerTool?: string;
36
42
  }
37
43
  /**
38
44
  * Check if a given object implements the ToolResultsToolUio interface.
@@ -37,6 +37,7 @@ function ToolResultsToolUioFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'tool': json['tool'],
38
38
  'toolName': json['toolName'] == null ? undefined : json['toolName'],
39
39
  'params': json['params'] == null ? undefined : json['params'],
40
+ 'callerTool': json['callerTool'] == null ? undefined : json['callerTool'],
40
41
  };
41
42
  }
42
43
  function ToolResultsToolUioToJSON(json) {
@@ -50,5 +51,6 @@ function ToolResultsToolUioToJSONTyped(value, ignoreDiscriminator = false) {
50
51
  'tool': value['tool'],
51
52
  'toolName': value['toolName'],
52
53
  'params': value['params'],
54
+ 'callerTool': value['callerTool'],
53
55
  };
54
56
  }
@@ -12,6 +12,7 @@ export * from './AgentBundleDiffUio';
12
12
  export * from './AgentBundleListDiffUio';
13
13
  export * from './AgentCallConfigurationUio';
14
14
  export * from './AgentChatOverviewEntryUio';
15
+ export * from './AgentCodeModeConfigurationUio';
15
16
  export * from './AgentComputerUseConfigurationUio';
16
17
  export * from './AgentCreatorUio';
17
18
  export * from './AgentCreatorUserUio';
@@ -30,6 +30,7 @@ __exportStar(require("./AgentBundleDiffUio"), exports);
30
30
  __exportStar(require("./AgentBundleListDiffUio"), exports);
31
31
  __exportStar(require("./AgentCallConfigurationUio"), exports);
32
32
  __exportStar(require("./AgentChatOverviewEntryUio"), exports);
33
+ __exportStar(require("./AgentCodeModeConfigurationUio"), exports);
33
34
  __exportStar(require("./AgentComputerUseConfigurationUio"), exports);
34
35
  __exportStar(require("./AgentCreatorUio"), exports);
35
36
  __exportStar(require("./AgentCreatorUserUio"), exports);
package/dist/openapi.json CHANGED
@@ -15858,6 +15858,12 @@
15858
15858
  } ],
15859
15859
  "nullable" : true
15860
15860
  },
15861
+ "codeModeConfiguration" : {
15862
+ "allOf" : [ {
15863
+ "$ref" : "#/components/schemas/AgentCodeModeConfiguration"
15864
+ } ],
15865
+ "nullable" : true
15866
+ },
15861
15867
  "creator" : {
15862
15868
  "$ref" : "#/components/schemas/Agent_creator"
15863
15869
  },
@@ -16075,6 +16081,16 @@
16075
16081
  },
16076
16082
  "type" : "object"
16077
16083
  },
16084
+ "AgentCodeModeConfiguration" : {
16085
+ "description" : "Per-agent activation of code mode: the model writes a JavaScript/TypeScript program that calls the agent's tools inside a sandbox, instead of one tool call per round trip. Opt-in, and narrower than it looks — only the tools declared code-mode callable server-side are reachable from a program. The server configuration can only narrow this.",
16086
+ "properties" : {
16087
+ "enabled" : {
16088
+ "description" : "General switch for code mode on this agent.",
16089
+ "type" : "boolean"
16090
+ }
16091
+ },
16092
+ "type" : "object"
16093
+ },
16078
16094
  "AgentTool" : {
16079
16095
  "properties" : {
16080
16096
  "id" : {
@@ -16258,6 +16274,12 @@
16258
16274
  "$ref" : "#/components/schemas/AgentCallConfiguration"
16259
16275
  } ],
16260
16276
  "nullable" : true
16277
+ },
16278
+ "codeModeConfiguration" : {
16279
+ "allOf" : [ {
16280
+ "$ref" : "#/components/schemas/AgentCodeModeConfiguration"
16281
+ } ],
16282
+ "nullable" : true
16261
16283
  }
16262
16284
  },
16263
16285
  "type" : "object"
@@ -24354,6 +24376,10 @@
24354
24376
  },
24355
24377
  "params" : {
24356
24378
  "type" : "string"
24379
+ },
24380
+ "callerTool" : {
24381
+ "description" : "The tool that emitted this call when it was not the model itself — the code_mode whose program called it. Present means the call is nested: it is kept for the history and the metrics, but it is not replayed to the model, which already reads the code_mode step carrying the program and its result.",
24382
+ "type" : "string"
24357
24383
  }
24358
24384
  },
24359
24385
  "required" : [ "tool" ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.146",
3
+ "version": "1.0.147",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",