@soat/sdk 0.6.6 → 0.6.12
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/dist/index.cjs +2563 -2653
- package/dist/index.d.cts +31 -19
- package/dist/index.d.mts +31 -19
- package/dist/index.mjs +2562 -2649
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/generated/core/auth.gen.d.ts
|
|
3
2
|
type AuthToken = string | undefined;
|
|
4
3
|
interface Auth {
|
|
@@ -402,11 +401,9 @@ type Agent = {
|
|
|
402
401
|
*/
|
|
403
402
|
max_steps?: number | null;
|
|
404
403
|
/**
|
|
405
|
-
* Tool choice strategy
|
|
404
|
+
* Tool choice strategy. Accepts a string (`"auto"`, `"required"`) or an object (`{ "type": "tool", "name": "my_tool" }`).
|
|
406
405
|
*/
|
|
407
|
-
tool_choice?:
|
|
408
|
-
[key: string]: unknown;
|
|
409
|
-
} | null;
|
|
406
|
+
tool_choice?: unknown;
|
|
410
407
|
/**
|
|
411
408
|
* Stop conditions
|
|
412
409
|
*/
|
|
@@ -473,9 +470,10 @@ type CreateAgentRequest = {
|
|
|
473
470
|
model?: string;
|
|
474
471
|
tool_ids?: Array<string>;
|
|
475
472
|
max_steps?: number;
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
473
|
+
/**
|
|
474
|
+
* Tool choice strategy. Accepts a string (`"auto"`, `"required"`) or an object (`{ "type": "tool", "name": "my_tool" }`).
|
|
475
|
+
*/
|
|
476
|
+
tool_choice?: unknown;
|
|
479
477
|
stop_conditions?: Array<{
|
|
480
478
|
[key: string]: unknown;
|
|
481
479
|
}>;
|
|
@@ -515,9 +513,10 @@ type UpdateAgentRequest = {
|
|
|
515
513
|
model?: string | null;
|
|
516
514
|
tool_ids?: Array<string> | null;
|
|
517
515
|
max_steps?: number | null;
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
516
|
+
/**
|
|
517
|
+
* Tool choice strategy. Accepts a string (`"auto"`, `"required"`) or an object (`{ "type": "tool", "name": "my_tool" }`).
|
|
518
|
+
*/
|
|
519
|
+
tool_choice?: unknown;
|
|
521
520
|
stop_conditions?: Array<{
|
|
522
521
|
[key: string]: unknown;
|
|
523
522
|
}> | null;
|
|
@@ -1118,11 +1117,9 @@ type AgentResourceProperties = {
|
|
|
1118
1117
|
*/
|
|
1119
1118
|
max_steps?: number | null;
|
|
1120
1119
|
/**
|
|
1121
|
-
* Controls how the model selects tools.
|
|
1120
|
+
* Controls how the model selects tools. Accepts a string (`"auto"`, `"required"`) or an object (`{ "type": "tool", "name": "my_tool" }`).
|
|
1122
1121
|
*/
|
|
1123
|
-
tool_choice?:
|
|
1124
|
-
[key: string]: unknown;
|
|
1125
|
-
} | null;
|
|
1122
|
+
tool_choice?: unknown;
|
|
1126
1123
|
/**
|
|
1127
1124
|
* Conditions that stop multi-step generation early. The loop stops when any condition is met.
|
|
1128
1125
|
*/
|
|
@@ -2181,6 +2178,11 @@ type SessionRecord = {
|
|
|
2181
2178
|
* Number of seconds of inactivity after which the session expires. 0 means the session never expires.
|
|
2182
2179
|
*/
|
|
2183
2180
|
inactivity_ttl_seconds?: number;
|
|
2181
|
+
/**
|
|
2182
|
+
* Number of seconds to wait after the last user message before sending to the LLM. Acts as a debounce: each new message resets the timer. null or absent means no delay (immediate processing).
|
|
2183
|
+
*
|
|
2184
|
+
*/
|
|
2185
|
+
message_delay_seconds?: number | null;
|
|
2184
2186
|
/**
|
|
2185
2187
|
* Timestamp of the last activity on the session (message added or response generated).
|
|
2186
2188
|
*/
|
|
@@ -2218,6 +2220,11 @@ type CreateSessionRequest = {
|
|
|
2218
2220
|
* Number of seconds of inactivity after which the session expires. 0 means the session never expires.
|
|
2219
2221
|
*/
|
|
2220
2222
|
inactivity_ttl_seconds?: number;
|
|
2223
|
+
/**
|
|
2224
|
+
* Number of seconds to wait after the last user message before sending to the LLM. Acts as a debounce: each new message resets the timer. null or absent means no delay (immediate processing).
|
|
2225
|
+
*
|
|
2226
|
+
*/
|
|
2227
|
+
message_delay_seconds?: number | null;
|
|
2221
2228
|
};
|
|
2222
2229
|
type UpdateSessionRequest = {
|
|
2223
2230
|
/**
|
|
@@ -2238,6 +2245,11 @@ type UpdateSessionRequest = {
|
|
|
2238
2245
|
tool_context?: {
|
|
2239
2246
|
[key: string]: string;
|
|
2240
2247
|
} | null;
|
|
2248
|
+
/**
|
|
2249
|
+
* Number of seconds to wait after the last user message before sending to the LLM. Acts as a debounce: each new message resets the timer. Set to null to disable the delay.
|
|
2250
|
+
*
|
|
2251
|
+
*/
|
|
2252
|
+
message_delay_seconds?: number | null;
|
|
2241
2253
|
};
|
|
2242
2254
|
type AddSessionMessageRequest = {
|
|
2243
2255
|
/**
|
|
@@ -2308,8 +2320,8 @@ type GenerateSessionResponse = {
|
|
|
2308
2320
|
required_action?: {
|
|
2309
2321
|
tool_calls?: Array<{
|
|
2310
2322
|
id?: string;
|
|
2311
|
-
|
|
2312
|
-
|
|
2323
|
+
tool_name?: string;
|
|
2324
|
+
args?: {
|
|
2313
2325
|
[key: string]: unknown;
|
|
2314
2326
|
};
|
|
2315
2327
|
}>;
|
|
@@ -2330,8 +2342,8 @@ type SendSessionMessageResponse = {
|
|
|
2330
2342
|
required_action?: {
|
|
2331
2343
|
tool_calls?: Array<{
|
|
2332
2344
|
id?: string;
|
|
2333
|
-
|
|
2334
|
-
|
|
2345
|
+
tool_name?: string;
|
|
2346
|
+
args?: {
|
|
2335
2347
|
[key: string]: unknown;
|
|
2336
2348
|
};
|
|
2337
2349
|
}>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/generated/core/auth.gen.d.ts
|
|
3
2
|
type AuthToken = string | undefined;
|
|
4
3
|
interface Auth {
|
|
@@ -402,11 +401,9 @@ type Agent = {
|
|
|
402
401
|
*/
|
|
403
402
|
max_steps?: number | null;
|
|
404
403
|
/**
|
|
405
|
-
* Tool choice strategy
|
|
404
|
+
* Tool choice strategy. Accepts a string (`"auto"`, `"required"`) or an object (`{ "type": "tool", "name": "my_tool" }`).
|
|
406
405
|
*/
|
|
407
|
-
tool_choice?:
|
|
408
|
-
[key: string]: unknown;
|
|
409
|
-
} | null;
|
|
406
|
+
tool_choice?: unknown;
|
|
410
407
|
/**
|
|
411
408
|
* Stop conditions
|
|
412
409
|
*/
|
|
@@ -473,9 +470,10 @@ type CreateAgentRequest = {
|
|
|
473
470
|
model?: string;
|
|
474
471
|
tool_ids?: Array<string>;
|
|
475
472
|
max_steps?: number;
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
473
|
+
/**
|
|
474
|
+
* Tool choice strategy. Accepts a string (`"auto"`, `"required"`) or an object (`{ "type": "tool", "name": "my_tool" }`).
|
|
475
|
+
*/
|
|
476
|
+
tool_choice?: unknown;
|
|
479
477
|
stop_conditions?: Array<{
|
|
480
478
|
[key: string]: unknown;
|
|
481
479
|
}>;
|
|
@@ -515,9 +513,10 @@ type UpdateAgentRequest = {
|
|
|
515
513
|
model?: string | null;
|
|
516
514
|
tool_ids?: Array<string> | null;
|
|
517
515
|
max_steps?: number | null;
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
516
|
+
/**
|
|
517
|
+
* Tool choice strategy. Accepts a string (`"auto"`, `"required"`) or an object (`{ "type": "tool", "name": "my_tool" }`).
|
|
518
|
+
*/
|
|
519
|
+
tool_choice?: unknown;
|
|
521
520
|
stop_conditions?: Array<{
|
|
522
521
|
[key: string]: unknown;
|
|
523
522
|
}> | null;
|
|
@@ -1118,11 +1117,9 @@ type AgentResourceProperties = {
|
|
|
1118
1117
|
*/
|
|
1119
1118
|
max_steps?: number | null;
|
|
1120
1119
|
/**
|
|
1121
|
-
* Controls how the model selects tools.
|
|
1120
|
+
* Controls how the model selects tools. Accepts a string (`"auto"`, `"required"`) or an object (`{ "type": "tool", "name": "my_tool" }`).
|
|
1122
1121
|
*/
|
|
1123
|
-
tool_choice?:
|
|
1124
|
-
[key: string]: unknown;
|
|
1125
|
-
} | null;
|
|
1122
|
+
tool_choice?: unknown;
|
|
1126
1123
|
/**
|
|
1127
1124
|
* Conditions that stop multi-step generation early. The loop stops when any condition is met.
|
|
1128
1125
|
*/
|
|
@@ -2181,6 +2178,11 @@ type SessionRecord = {
|
|
|
2181
2178
|
* Number of seconds of inactivity after which the session expires. 0 means the session never expires.
|
|
2182
2179
|
*/
|
|
2183
2180
|
inactivity_ttl_seconds?: number;
|
|
2181
|
+
/**
|
|
2182
|
+
* Number of seconds to wait after the last user message before sending to the LLM. Acts as a debounce: each new message resets the timer. null or absent means no delay (immediate processing).
|
|
2183
|
+
*
|
|
2184
|
+
*/
|
|
2185
|
+
message_delay_seconds?: number | null;
|
|
2184
2186
|
/**
|
|
2185
2187
|
* Timestamp of the last activity on the session (message added or response generated).
|
|
2186
2188
|
*/
|
|
@@ -2218,6 +2220,11 @@ type CreateSessionRequest = {
|
|
|
2218
2220
|
* Number of seconds of inactivity after which the session expires. 0 means the session never expires.
|
|
2219
2221
|
*/
|
|
2220
2222
|
inactivity_ttl_seconds?: number;
|
|
2223
|
+
/**
|
|
2224
|
+
* Number of seconds to wait after the last user message before sending to the LLM. Acts as a debounce: each new message resets the timer. null or absent means no delay (immediate processing).
|
|
2225
|
+
*
|
|
2226
|
+
*/
|
|
2227
|
+
message_delay_seconds?: number | null;
|
|
2221
2228
|
};
|
|
2222
2229
|
type UpdateSessionRequest = {
|
|
2223
2230
|
/**
|
|
@@ -2238,6 +2245,11 @@ type UpdateSessionRequest = {
|
|
|
2238
2245
|
tool_context?: {
|
|
2239
2246
|
[key: string]: string;
|
|
2240
2247
|
} | null;
|
|
2248
|
+
/**
|
|
2249
|
+
* Number of seconds to wait after the last user message before sending to the LLM. Acts as a debounce: each new message resets the timer. Set to null to disable the delay.
|
|
2250
|
+
*
|
|
2251
|
+
*/
|
|
2252
|
+
message_delay_seconds?: number | null;
|
|
2241
2253
|
};
|
|
2242
2254
|
type AddSessionMessageRequest = {
|
|
2243
2255
|
/**
|
|
@@ -2308,8 +2320,8 @@ type GenerateSessionResponse = {
|
|
|
2308
2320
|
required_action?: {
|
|
2309
2321
|
tool_calls?: Array<{
|
|
2310
2322
|
id?: string;
|
|
2311
|
-
|
|
2312
|
-
|
|
2323
|
+
tool_name?: string;
|
|
2324
|
+
args?: {
|
|
2313
2325
|
[key: string]: unknown;
|
|
2314
2326
|
};
|
|
2315
2327
|
}>;
|
|
@@ -2330,8 +2342,8 @@ type SendSessionMessageResponse = {
|
|
|
2330
2342
|
required_action?: {
|
|
2331
2343
|
tool_calls?: Array<{
|
|
2332
2344
|
id?: string;
|
|
2333
|
-
|
|
2334
|
-
|
|
2345
|
+
tool_name?: string;
|
|
2346
|
+
args?: {
|
|
2335
2347
|
[key: string]: unknown;
|
|
2336
2348
|
};
|
|
2337
2349
|
}>;
|