@breign/client 1.0.145 → 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'],
@@ -0,0 +1,63 @@
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
+ * Websocket INPUT command sent to the app when a user message arrives.
14
+ * @export
15
+ * @interface AppInputNotificationUio
16
+ */
17
+ export interface AppInputNotificationUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AppInputNotificationUio
22
+ */
23
+ type: AppInputNotificationUioTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AppInputNotificationUio
28
+ */
29
+ messageId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AppInputNotificationUio
34
+ */
35
+ conversationId?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AppInputNotificationUio
40
+ */
41
+ text: string;
42
+ /**
43
+ * True when fillers are enabled for this turn, including when an empty filler is sent.
44
+ * @type {boolean}
45
+ * @memberof AppInputNotificationUio
46
+ */
47
+ hasFillers: boolean;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const AppInputNotificationUioTypeEnum: {
53
+ readonly Input: "INPUT";
54
+ };
55
+ export type AppInputNotificationUioTypeEnum = typeof AppInputNotificationUioTypeEnum[keyof typeof AppInputNotificationUioTypeEnum];
56
+ /**
57
+ * Check if a given object implements the AppInputNotificationUio interface.
58
+ */
59
+ export declare function instanceOfAppInputNotificationUio(value: object): value is AppInputNotificationUio;
60
+ export declare function AppInputNotificationUioFromJSON(json: any): AppInputNotificationUio;
61
+ export declare function AppInputNotificationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppInputNotificationUio;
62
+ export declare function AppInputNotificationUioToJSON(json: any): AppInputNotificationUio;
63
+ export declare function AppInputNotificationUioToJSONTyped(value?: AppInputNotificationUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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.AppInputNotificationUioTypeEnum = void 0;
17
+ exports.instanceOfAppInputNotificationUio = instanceOfAppInputNotificationUio;
18
+ exports.AppInputNotificationUioFromJSON = AppInputNotificationUioFromJSON;
19
+ exports.AppInputNotificationUioFromJSONTyped = AppInputNotificationUioFromJSONTyped;
20
+ exports.AppInputNotificationUioToJSON = AppInputNotificationUioToJSON;
21
+ exports.AppInputNotificationUioToJSONTyped = AppInputNotificationUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.AppInputNotificationUioTypeEnum = {
26
+ Input: 'INPUT'
27
+ };
28
+ /**
29
+ * Check if a given object implements the AppInputNotificationUio interface.
30
+ */
31
+ function instanceOfAppInputNotificationUio(value) {
32
+ if (!('type' in value) || value['type'] === undefined)
33
+ return false;
34
+ if (!('messageId' in value) || value['messageId'] === undefined)
35
+ return false;
36
+ if (!('text' in value) || value['text'] === undefined)
37
+ return false;
38
+ if (!('hasFillers' in value) || value['hasFillers'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function AppInputNotificationUioFromJSON(json) {
43
+ return AppInputNotificationUioFromJSONTyped(json, false);
44
+ }
45
+ function AppInputNotificationUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'type': json['type'],
51
+ 'messageId': json['messageId'],
52
+ 'conversationId': json['conversationId'] == null ? undefined : json['conversationId'],
53
+ 'text': json['text'],
54
+ 'hasFillers': json['hasFillers'],
55
+ };
56
+ }
57
+ function AppInputNotificationUioToJSON(json) {
58
+ return AppInputNotificationUioToJSONTyped(json, false);
59
+ }
60
+ function AppInputNotificationUioToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'type': value['type'],
66
+ 'messageId': value['messageId'],
67
+ 'conversationId': value['conversationId'],
68
+ 'text': value['text'],
69
+ 'hasFillers': value['hasFillers'],
70
+ };
71
+ }
@@ -126,6 +126,12 @@ export interface ChatMessageUio {
126
126
  * @memberof ChatMessageUio
127
127
  */
128
128
  timestamp: string;
129
+ /**
130
+ * True when fillers are enabled for this turn, including when an empty filler is sent.
131
+ * @type {boolean}
132
+ * @memberof ChatMessageUio
133
+ */
134
+ hasFillers?: boolean;
129
135
  /**
130
136
  *
131
137
  * @type {Array<ToolActionUio>}
@@ -74,6 +74,7 @@ function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
74
74
  'flowNodeRequirementsCheckReason': json['flowNodeRequirementsCheckReason'] == null ? undefined : json['flowNodeRequirementsCheckReason'],
75
75
  'flowNodeIterations': json['flowNodeIterations'] == null ? undefined : json['flowNodeIterations'],
76
76
  'timestamp': json['timestamp'],
77
+ 'hasFillers': json['hasFillers'] == null ? undefined : json['hasFillers'],
77
78
  'actions': json['actions'] == null ? undefined : (json['actions'].map(ToolActionUio_1.ToolActionUioFromJSON)),
78
79
  'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(FileAttachmentUio_1.FileAttachmentUioFromJSON)),
79
80
  'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
@@ -107,6 +108,7 @@ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
107
108
  'flowNodeRequirementsCheckReason': value['flowNodeRequirementsCheckReason'],
108
109
  'flowNodeIterations': value['flowNodeIterations'],
109
110
  'timestamp': value['timestamp'],
111
+ 'hasFillers': value['hasFillers'],
110
112
  'actions': value['actions'] == null ? undefined : (value['actions'].map(ToolActionUio_1.ToolActionUioToJSON)),
111
113
  'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(FileAttachmentUio_1.FileAttachmentUioToJSON)),
112
114
  'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
@@ -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';
@@ -111,6 +112,7 @@ export * from './AppConfigurationUio';
111
112
  export * from './AppCreateRequestEphemeralInstancesUio';
112
113
  export * from './AppCreateRequestUio';
113
114
  export * from './AppFlowCreateRequestUio';
115
+ export * from './AppInputNotificationUio';
114
116
  export * from './AppInstanceCreateRequestOneOfUio';
115
117
  export * from './AppInstanceCreateRequestUio';
116
118
  export * from './AppInstanceEphemeralCreateRequestUio';
@@ -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);
@@ -129,6 +130,7 @@ __exportStar(require("./AppConfigurationUio"), exports);
129
130
  __exportStar(require("./AppCreateRequestEphemeralInstancesUio"), exports);
130
131
  __exportStar(require("./AppCreateRequestUio"), exports);
131
132
  __exportStar(require("./AppFlowCreateRequestUio"), exports);
133
+ __exportStar(require("./AppInputNotificationUio"), exports);
132
134
  __exportStar(require("./AppInstanceCreateRequestOneOfUio"), exports);
133
135
  __exportStar(require("./AppInstanceCreateRequestUio"), exports);
134
136
  __exportStar(require("./AppInstanceEphemeralCreateRequestUio"), exports);
package/dist/openapi.json CHANGED
@@ -15700,6 +15700,30 @@
15700
15700
  "required" : [ "defaultLanguage", "description", "engine", "id", "isParent", "name", "organisationId", "persona", "role" ],
15701
15701
  "type" : "object"
15702
15702
  },
15703
+ "AppInputNotification" : {
15704
+ "description" : "Websocket INPUT command sent to the app when a user message arrives.",
15705
+ "properties" : {
15706
+ "type" : {
15707
+ "enum" : [ "INPUT" ],
15708
+ "type" : "string"
15709
+ },
15710
+ "messageId" : {
15711
+ "type" : "string"
15712
+ },
15713
+ "conversationId" : {
15714
+ "type" : "string"
15715
+ },
15716
+ "text" : {
15717
+ "type" : "string"
15718
+ },
15719
+ "hasFillers" : {
15720
+ "description" : "True when fillers are enabled for this turn, including when an empty filler is sent.",
15721
+ "type" : "boolean"
15722
+ }
15723
+ },
15724
+ "required" : [ "hasFillers", "messageId", "text", "type" ],
15725
+ "type" : "object"
15726
+ },
15703
15727
  "HealthCheckResponse" : {
15704
15728
  "properties" : {
15705
15729
  "status" : {
@@ -15834,6 +15858,12 @@
15834
15858
  } ],
15835
15859
  "nullable" : true
15836
15860
  },
15861
+ "codeModeConfiguration" : {
15862
+ "allOf" : [ {
15863
+ "$ref" : "#/components/schemas/AgentCodeModeConfiguration"
15864
+ } ],
15865
+ "nullable" : true
15866
+ },
15837
15867
  "creator" : {
15838
15868
  "$ref" : "#/components/schemas/Agent_creator"
15839
15869
  },
@@ -16051,6 +16081,16 @@
16051
16081
  },
16052
16082
  "type" : "object"
16053
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
+ },
16054
16094
  "AgentTool" : {
16055
16095
  "properties" : {
16056
16096
  "id" : {
@@ -16234,6 +16274,12 @@
16234
16274
  "$ref" : "#/components/schemas/AgentCallConfiguration"
16235
16275
  } ],
16236
16276
  "nullable" : true
16277
+ },
16278
+ "codeModeConfiguration" : {
16279
+ "allOf" : [ {
16280
+ "$ref" : "#/components/schemas/AgentCodeModeConfiguration"
16281
+ } ],
16282
+ "nullable" : true
16237
16283
  }
16238
16284
  },
16239
16285
  "type" : "object"
@@ -17260,6 +17306,10 @@
17260
17306
  "timestamp" : {
17261
17307
  "type" : "string"
17262
17308
  },
17309
+ "hasFillers" : {
17310
+ "description" : "True when fillers are enabled for this turn, including when an empty filler is sent.",
17311
+ "type" : "boolean"
17312
+ },
17263
17313
  "actions" : {
17264
17314
  "items" : {
17265
17315
  "$ref" : "#/components/schemas/ToolAction"
@@ -24326,6 +24376,10 @@
24326
24376
  },
24327
24377
  "params" : {
24328
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"
24329
24383
  }
24330
24384
  },
24331
24385
  "required" : [ "tool" ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.145",
3
+ "version": "1.0.147",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",