@meetkai/mka1 0.55.24 → 0.55.25
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/bin/mcp-server.js +58 -15
- package/bin/mcp-server.js.map +13 -13
- package/dist/commonjs/funcs/agentRunsCancelAgentRun.d.ts +1 -1
- package/dist/commonjs/funcs/agentRunsCancelAgentRun.js +1 -1
- package/dist/commonjs/funcs/agentRunsCreateAgentRun.d.ts +1 -1
- package/dist/commonjs/funcs/agentRunsCreateAgentRun.js +2 -2
- package/dist/commonjs/funcs/agentRunsCreateAgentRun.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/agentRunsCancelAgentRun.js +1 -1
- package/dist/commonjs/mcp-server/tools/agentRunsCancelAgentRun.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/agentRunsCreateAgentRun.js +1 -1
- package/dist/commonjs/mcp-server/tools/agentRunsCreateAgentRun.js.map +1 -1
- package/dist/commonjs/models/components/agent.d.ts +13 -0
- package/dist/commonjs/models/components/agent.d.ts.map +1 -1
- package/dist/commonjs/models/components/agent.js +17 -1
- package/dist/commonjs/models/components/agent.js.map +1 -1
- package/dist/commonjs/models/components/agentrun.d.ts +4 -3
- package/dist/commonjs/models/components/agentrun.d.ts.map +1 -1
- package/dist/commonjs/models/components/agentrun.js +2 -1
- package/dist/commonjs/models/components/agentrun.js.map +1 -1
- package/dist/commonjs/models/components/createagentrequest.d.ts +26 -0
- package/dist/commonjs/models/components/createagentrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createagentrequest.js +22 -1
- package/dist/commonjs/models/components/createagentrequest.js.map +1 -1
- package/dist/commonjs/models/components/updateagentrequest.d.ts +26 -0
- package/dist/commonjs/models/components/updateagentrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/updateagentrequest.js +22 -1
- package/dist/commonjs/models/components/updateagentrequest.js.map +1 -1
- package/dist/commonjs/react-query/agentRunsCancelAgentRun.d.ts +1 -1
- package/dist/commonjs/react-query/agentRunsCancelAgentRun.js +1 -1
- package/dist/commonjs/react-query/agentRunsCreateAgentRun.d.ts +1 -1
- package/dist/commonjs/react-query/agentRunsCreateAgentRun.js +1 -1
- package/dist/commonjs/sdk/agentruns.d.ts +2 -2
- package/dist/commonjs/sdk/agentruns.js +2 -2
- package/dist/esm/funcs/agentRunsCancelAgentRun.d.ts +1 -1
- package/dist/esm/funcs/agentRunsCancelAgentRun.js +1 -1
- package/dist/esm/funcs/agentRunsCreateAgentRun.d.ts +1 -1
- package/dist/esm/funcs/agentRunsCreateAgentRun.js +2 -2
- package/dist/esm/funcs/agentRunsCreateAgentRun.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/agentRunsCancelAgentRun.js +1 -1
- package/dist/esm/mcp-server/tools/agentRunsCancelAgentRun.js.map +1 -1
- package/dist/esm/mcp-server/tools/agentRunsCreateAgentRun.js +1 -1
- package/dist/esm/mcp-server/tools/agentRunsCreateAgentRun.js.map +1 -1
- package/dist/esm/models/components/agent.d.ts +13 -0
- package/dist/esm/models/components/agent.d.ts.map +1 -1
- package/dist/esm/models/components/agent.js +16 -0
- package/dist/esm/models/components/agent.js.map +1 -1
- package/dist/esm/models/components/agentrun.d.ts +4 -3
- package/dist/esm/models/components/agentrun.d.ts.map +1 -1
- package/dist/esm/models/components/agentrun.js +2 -1
- package/dist/esm/models/components/agentrun.js.map +1 -1
- package/dist/esm/models/components/createagentrequest.d.ts +26 -0
- package/dist/esm/models/components/createagentrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createagentrequest.js +21 -0
- package/dist/esm/models/components/createagentrequest.js.map +1 -1
- package/dist/esm/models/components/updateagentrequest.d.ts +26 -0
- package/dist/esm/models/components/updateagentrequest.d.ts.map +1 -1
- package/dist/esm/models/components/updateagentrequest.js +21 -0
- package/dist/esm/models/components/updateagentrequest.js.map +1 -1
- package/dist/esm/react-query/agentRunsCancelAgentRun.d.ts +1 -1
- package/dist/esm/react-query/agentRunsCancelAgentRun.js +1 -1
- package/dist/esm/react-query/agentRunsCreateAgentRun.d.ts +1 -1
- package/dist/esm/react-query/agentRunsCreateAgentRun.js +1 -1
- package/dist/esm/sdk/agentruns.d.ts +2 -2
- package/dist/esm/sdk/agentruns.js +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/agentRunsCancelAgentRun.ts +1 -1
- package/src/funcs/agentRunsCreateAgentRun.ts +4 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/agentRunsCancelAgentRun.ts +1 -1
- package/src/mcp-server/tools/agentRunsCreateAgentRun.ts +1 -1
- package/src/models/components/agent.ts +27 -0
- package/src/models/components/agentrun.ts +4 -3
- package/src/models/components/createagentrequest.ts +45 -0
- package/src/models/components/updateagentrequest.ts +45 -0
- package/src/react-query/agentRunsCancelAgentRun.ts +1 -1
- package/src/react-query/agentRunsCreateAgentRun.ts +1 -1
- package/src/sdk/agentruns.ts +2 -2
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
import {
|
|
@@ -26,6 +27,20 @@ import {
|
|
|
26
27
|
ToolDefinition$outboundSchema,
|
|
27
28
|
} from "./tooldefinition.js";
|
|
28
29
|
|
|
30
|
+
/**
|
|
31
|
+
* What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
|
|
32
|
+
*/
|
|
33
|
+
export const CreateAgentRequestConcurrencyOverflow = {
|
|
34
|
+
Reject: "reject",
|
|
35
|
+
Queue: "queue",
|
|
36
|
+
} as const;
|
|
37
|
+
/**
|
|
38
|
+
* What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
|
|
39
|
+
*/
|
|
40
|
+
export type CreateAgentRequestConcurrencyOverflow = ClosedEnum<
|
|
41
|
+
typeof CreateAgentRequestConcurrencyOverflow
|
|
42
|
+
>;
|
|
43
|
+
|
|
29
44
|
export type CreateAgentRequest = {
|
|
30
45
|
name: string;
|
|
31
46
|
description?: string | null | undefined;
|
|
@@ -42,11 +57,29 @@ export type CreateAgentRequest = {
|
|
|
42
57
|
* Ordered chain of model IDs the gateway tries when a model call fails on the model before it; forwarded unchanged to the Responses API, which validates it. Empty (the default) means the run keeps the gateway's own fallback rules for the model.
|
|
43
58
|
*/
|
|
44
59
|
fallbackModels?: Array<string> | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Most runs of this agent that may execute at once. Null (the default) means no limit. Not part of the versioned configuration: a rollback keeps the current limit, and changing only this field or concurrency_overflow creates no new version.
|
|
62
|
+
*/
|
|
63
|
+
maxConcurrentRuns?: number | null | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
|
|
66
|
+
*/
|
|
67
|
+
concurrencyOverflow?: CreateAgentRequestConcurrencyOverflow | undefined;
|
|
45
68
|
text?: AgentTextConfiguration | null | undefined;
|
|
46
69
|
reasoning?: AgentReasoningConfiguration | null | undefined;
|
|
47
70
|
metadata?: { [k: string]: string } | undefined;
|
|
48
71
|
};
|
|
49
72
|
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const CreateAgentRequestConcurrencyOverflow$inboundSchema:
|
|
75
|
+
z.ZodNativeEnum<typeof CreateAgentRequestConcurrencyOverflow> = z.nativeEnum(
|
|
76
|
+
CreateAgentRequestConcurrencyOverflow,
|
|
77
|
+
);
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const CreateAgentRequestConcurrencyOverflow$outboundSchema:
|
|
80
|
+
z.ZodNativeEnum<typeof CreateAgentRequestConcurrencyOverflow> =
|
|
81
|
+
CreateAgentRequestConcurrencyOverflow$inboundSchema;
|
|
82
|
+
|
|
50
83
|
/** @internal */
|
|
51
84
|
export const CreateAgentRequest$inboundSchema: z.ZodType<
|
|
52
85
|
CreateAgentRequest,
|
|
@@ -62,6 +95,9 @@ export const CreateAgentRequest$inboundSchema: z.ZodType<
|
|
|
62
95
|
parallel_tool_calls: z.boolean().default(true),
|
|
63
96
|
max_tool_calls: z.nullable(z.number().int()).optional(),
|
|
64
97
|
fallback_models: z.array(z.string()).optional(),
|
|
98
|
+
max_concurrent_runs: z.nullable(z.number().int()).optional(),
|
|
99
|
+
concurrency_overflow: CreateAgentRequestConcurrencyOverflow$inboundSchema
|
|
100
|
+
.optional(),
|
|
65
101
|
text: z.nullable(AgentTextConfiguration$inboundSchema).optional(),
|
|
66
102
|
reasoning: z.nullable(AgentReasoningConfiguration$inboundSchema).optional(),
|
|
67
103
|
metadata: z.record(z.string()).optional(),
|
|
@@ -71,6 +107,8 @@ export const CreateAgentRequest$inboundSchema: z.ZodType<
|
|
|
71
107
|
"parallel_tool_calls": "parallelToolCalls",
|
|
72
108
|
"max_tool_calls": "maxToolCalls",
|
|
73
109
|
"fallback_models": "fallbackModels",
|
|
110
|
+
"max_concurrent_runs": "maxConcurrentRuns",
|
|
111
|
+
"concurrency_overflow": "concurrencyOverflow",
|
|
74
112
|
});
|
|
75
113
|
});
|
|
76
114
|
/** @internal */
|
|
@@ -84,6 +122,8 @@ export type CreateAgentRequest$Outbound = {
|
|
|
84
122
|
parallel_tool_calls: boolean;
|
|
85
123
|
max_tool_calls?: number | null | undefined;
|
|
86
124
|
fallback_models?: Array<string> | undefined;
|
|
125
|
+
max_concurrent_runs?: number | null | undefined;
|
|
126
|
+
concurrency_overflow?: string | undefined;
|
|
87
127
|
text?: AgentTextConfiguration$Outbound | null | undefined;
|
|
88
128
|
reasoning?: AgentReasoningConfiguration$Outbound | null | undefined;
|
|
89
129
|
metadata?: { [k: string]: string } | undefined;
|
|
@@ -104,6 +144,9 @@ export const CreateAgentRequest$outboundSchema: z.ZodType<
|
|
|
104
144
|
parallelToolCalls: z.boolean().default(true),
|
|
105
145
|
maxToolCalls: z.nullable(z.number().int()).optional(),
|
|
106
146
|
fallbackModels: z.array(z.string()).optional(),
|
|
147
|
+
maxConcurrentRuns: z.nullable(z.number().int()).optional(),
|
|
148
|
+
concurrencyOverflow: CreateAgentRequestConcurrencyOverflow$outboundSchema
|
|
149
|
+
.optional(),
|
|
107
150
|
text: z.nullable(AgentTextConfiguration$outboundSchema).optional(),
|
|
108
151
|
reasoning: z.nullable(AgentReasoningConfiguration$outboundSchema).optional(),
|
|
109
152
|
metadata: z.record(z.string()).optional(),
|
|
@@ -113,6 +156,8 @@ export const CreateAgentRequest$outboundSchema: z.ZodType<
|
|
|
113
156
|
parallelToolCalls: "parallel_tool_calls",
|
|
114
157
|
maxToolCalls: "max_tool_calls",
|
|
115
158
|
fallbackModels: "fallback_models",
|
|
159
|
+
maxConcurrentRuns: "max_concurrent_runs",
|
|
160
|
+
concurrencyOverflow: "concurrency_overflow",
|
|
116
161
|
});
|
|
117
162
|
});
|
|
118
163
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
import {
|
|
@@ -26,6 +27,20 @@ import {
|
|
|
26
27
|
ToolDefinition$outboundSchema,
|
|
27
28
|
} from "./tooldefinition.js";
|
|
28
29
|
|
|
30
|
+
/**
|
|
31
|
+
* What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
|
|
32
|
+
*/
|
|
33
|
+
export const UpdateAgentRequestConcurrencyOverflow = {
|
|
34
|
+
Reject: "reject",
|
|
35
|
+
Queue: "queue",
|
|
36
|
+
} as const;
|
|
37
|
+
/**
|
|
38
|
+
* What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
|
|
39
|
+
*/
|
|
40
|
+
export type UpdateAgentRequestConcurrencyOverflow = ClosedEnum<
|
|
41
|
+
typeof UpdateAgentRequestConcurrencyOverflow
|
|
42
|
+
>;
|
|
43
|
+
|
|
29
44
|
/**
|
|
30
45
|
* Updates only provided fields. Omitted fields preserve their saved values; empty updates are rejected.
|
|
31
46
|
*/
|
|
@@ -45,11 +60,29 @@ export type UpdateAgentRequest = {
|
|
|
45
60
|
* Ordered chain of model IDs the gateway tries when a model call fails on the model before it; forwarded unchanged to the Responses API, which validates it. Empty (the default) means the run keeps the gateway's own fallback rules for the model.
|
|
46
61
|
*/
|
|
47
62
|
fallbackModels?: Array<string> | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Most runs of this agent that may execute at once. Null (the default) means no limit. Not part of the versioned configuration: a rollback keeps the current limit, and changing only this field or concurrency_overflow creates no new version.
|
|
65
|
+
*/
|
|
66
|
+
maxConcurrentRuns?: number | null | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
|
|
69
|
+
*/
|
|
70
|
+
concurrencyOverflow?: UpdateAgentRequestConcurrencyOverflow | undefined;
|
|
48
71
|
text?: AgentTextConfiguration | null | undefined;
|
|
49
72
|
reasoning?: AgentReasoningConfiguration | null | undefined;
|
|
50
73
|
metadata?: { [k: string]: string } | undefined;
|
|
51
74
|
};
|
|
52
75
|
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const UpdateAgentRequestConcurrencyOverflow$inboundSchema:
|
|
78
|
+
z.ZodNativeEnum<typeof UpdateAgentRequestConcurrencyOverflow> = z.nativeEnum(
|
|
79
|
+
UpdateAgentRequestConcurrencyOverflow,
|
|
80
|
+
);
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const UpdateAgentRequestConcurrencyOverflow$outboundSchema:
|
|
83
|
+
z.ZodNativeEnum<typeof UpdateAgentRequestConcurrencyOverflow> =
|
|
84
|
+
UpdateAgentRequestConcurrencyOverflow$inboundSchema;
|
|
85
|
+
|
|
53
86
|
/** @internal */
|
|
54
87
|
export const UpdateAgentRequest$inboundSchema: z.ZodType<
|
|
55
88
|
UpdateAgentRequest,
|
|
@@ -65,6 +98,9 @@ export const UpdateAgentRequest$inboundSchema: z.ZodType<
|
|
|
65
98
|
parallel_tool_calls: z.boolean().optional(),
|
|
66
99
|
max_tool_calls: z.nullable(z.number().int()).optional(),
|
|
67
100
|
fallback_models: z.array(z.string()).optional(),
|
|
101
|
+
max_concurrent_runs: z.nullable(z.number().int()).optional(),
|
|
102
|
+
concurrency_overflow: UpdateAgentRequestConcurrencyOverflow$inboundSchema
|
|
103
|
+
.optional(),
|
|
68
104
|
text: z.nullable(AgentTextConfiguration$inboundSchema).optional(),
|
|
69
105
|
reasoning: z.nullable(AgentReasoningConfiguration$inboundSchema).optional(),
|
|
70
106
|
metadata: z.record(z.string()).optional(),
|
|
@@ -74,6 +110,8 @@ export const UpdateAgentRequest$inboundSchema: z.ZodType<
|
|
|
74
110
|
"parallel_tool_calls": "parallelToolCalls",
|
|
75
111
|
"max_tool_calls": "maxToolCalls",
|
|
76
112
|
"fallback_models": "fallbackModels",
|
|
113
|
+
"max_concurrent_runs": "maxConcurrentRuns",
|
|
114
|
+
"concurrency_overflow": "concurrencyOverflow",
|
|
77
115
|
});
|
|
78
116
|
});
|
|
79
117
|
/** @internal */
|
|
@@ -87,6 +125,8 @@ export type UpdateAgentRequest$Outbound = {
|
|
|
87
125
|
parallel_tool_calls?: boolean | undefined;
|
|
88
126
|
max_tool_calls?: number | null | undefined;
|
|
89
127
|
fallback_models?: Array<string> | undefined;
|
|
128
|
+
max_concurrent_runs?: number | null | undefined;
|
|
129
|
+
concurrency_overflow?: string | undefined;
|
|
90
130
|
text?: AgentTextConfiguration$Outbound | null | undefined;
|
|
91
131
|
reasoning?: AgentReasoningConfiguration$Outbound | null | undefined;
|
|
92
132
|
metadata?: { [k: string]: string } | undefined;
|
|
@@ -107,6 +147,9 @@ export const UpdateAgentRequest$outboundSchema: z.ZodType<
|
|
|
107
147
|
parallelToolCalls: z.boolean().optional(),
|
|
108
148
|
maxToolCalls: z.nullable(z.number().int()).optional(),
|
|
109
149
|
fallbackModels: z.array(z.string()).optional(),
|
|
150
|
+
maxConcurrentRuns: z.nullable(z.number().int()).optional(),
|
|
151
|
+
concurrencyOverflow: UpdateAgentRequestConcurrencyOverflow$outboundSchema
|
|
152
|
+
.optional(),
|
|
110
153
|
text: z.nullable(AgentTextConfiguration$outboundSchema).optional(),
|
|
111
154
|
reasoning: z.nullable(AgentReasoningConfiguration$outboundSchema).optional(),
|
|
112
155
|
metadata: z.record(z.string()).optional(),
|
|
@@ -116,6 +159,8 @@ export const UpdateAgentRequest$outboundSchema: z.ZodType<
|
|
|
116
159
|
parallelToolCalls: "parallel_tool_calls",
|
|
117
160
|
maxToolCalls: "max_tool_calls",
|
|
118
161
|
fallbackModels: "fallback_models",
|
|
162
|
+
maxConcurrentRuns: "max_concurrent_runs",
|
|
163
|
+
concurrencyOverflow: "concurrency_overflow",
|
|
119
164
|
});
|
|
120
165
|
});
|
|
121
166
|
|
|
@@ -50,7 +50,7 @@ export type AgentRunsCancelAgentRunMutationError =
|
|
|
50
50
|
* Cancel a saved-agent run
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Cancels a queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.
|
|
53
|
+
* Cancels a waiting or queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.
|
|
54
54
|
*/
|
|
55
55
|
export function useAgentRunsCancelAgentRunMutation(
|
|
56
56
|
options?: MutationHookOptions<
|
|
@@ -50,7 +50,7 @@ export type AgentRunsCreateAgentRunMutationError =
|
|
|
50
50
|
* Start a saved agent run
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress.
|
|
53
|
+
* Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress. When the agent is already running max_concurrent_runs runs, concurrency_overflow decides: reject returns 429 with error code agent_concurrency_limit and creates no run; queue returns 202 with a waiting run that starts when a slot frees.
|
|
54
54
|
*/
|
|
55
55
|
export function useAgentRunsCreateAgentRunMutation(
|
|
56
56
|
options?: MutationHookOptions<
|
package/src/sdk/agentruns.ts
CHANGED
|
@@ -33,7 +33,7 @@ export class AgentRuns extends ClientSDK {
|
|
|
33
33
|
* Start a saved agent run
|
|
34
34
|
*
|
|
35
35
|
* @remarks
|
|
36
|
-
* Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress.
|
|
36
|
+
* Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress. When the agent is already running max_concurrent_runs runs, concurrency_overflow decides: reject returns 429 with error code agent_concurrency_limit and creates no run; queue returns 202 with a waiting run that starts when a slot frees.
|
|
37
37
|
*/
|
|
38
38
|
async createAgentRun(
|
|
39
39
|
request: operations.CreateAgentRunRequest,
|
|
@@ -67,7 +67,7 @@ export class AgentRuns extends ClientSDK {
|
|
|
67
67
|
* Cancel a saved-agent run
|
|
68
68
|
*
|
|
69
69
|
* @remarks
|
|
70
|
-
* Cancels a queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.
|
|
70
|
+
* Cancels a waiting or queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.
|
|
71
71
|
*/
|
|
72
72
|
async cancelAgentRun(
|
|
73
73
|
request: operations.CancelAgentRunRequest,
|