@sylphx/sdk 0.32.1 → 0.32.3
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/README.md +105 -0
- package/dist/access.d.ts +24 -4
- package/dist/access.js +7 -7
- package/dist/access.js.map +1 -1
- package/dist/agents.d.ts +1048 -26
- package/dist/agents.js +771 -5
- package/dist/agents.js.map +1 -1
- package/dist/ai.js +1 -1
- package/dist/ai.js.map +1 -1
- package/dist/analytics.d.ts +232 -0
- package/dist/analytics.js +126 -0
- package/dist/analytics.js.map +1 -0
- package/dist/artifacts.d.ts +47 -1
- package/dist/artifacts.js +30 -2
- package/dist/artifacts.js.map +1 -1
- package/dist/assets.js +1 -1
- package/dist/assets.js.map +1 -1
- package/dist/auth/client.d.ts +34 -3
- package/dist/auth/client.js +42 -5
- package/dist/auth/client.js.map +1 -1
- package/dist/auth/continue-mock.d.ts +21 -0
- package/dist/auth/continue-mock.js +75 -0
- package/dist/auth/continue-mock.js.map +1 -0
- package/dist/auth/end-user-keys-mock.js +1 -1
- package/dist/auth/end-user-keys-mock.js.map +1 -1
- package/dist/auth/end-user-keys.js +1 -1
- package/dist/auth/end-user-keys.js.map +1 -1
- package/dist/auth/verify.js +1 -1
- package/dist/auth/verify.js.map +1 -1
- package/dist/auth.d.ts +169 -0
- package/dist/auth.js +135 -1
- package/dist/auth.js.map +1 -1
- package/dist/billing.d.ts +13 -6
- package/dist/billing.js +3 -1
- package/dist/billing.js.map +1 -1
- package/dist/broker.d.ts +165 -33
- package/dist/broker.js +103 -7
- package/dist/broker.js.map +1 -1
- package/dist/browser-upload.d.ts +101 -0
- package/dist/browser-upload.js +130 -0
- package/dist/browser-upload.js.map +1 -0
- package/dist/build.js +1 -1
- package/dist/build.js.map +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/common.js.map +1 -1
- package/dist/config/flags.d.ts +12 -2
- package/dist/config/flags.js +54 -6
- package/dist/config/flags.js.map +1 -1
- package/dist/config.d.ts +24 -0
- package/dist/config.js +22 -1
- package/dist/config.js.map +1 -1
- package/dist/connections.d.ts +128 -25
- package/dist/connections.js +72 -25
- package/dist/connections.js.map +1 -1
- package/dist/data.d.ts +306 -13
- package/dist/data.js +110 -9
- package/dist/data.js.map +1 -1
- package/dist/entitlement.js +1 -1
- package/dist/entitlement.js.map +1 -1
- package/dist/events/realtime.js +1 -1
- package/dist/events/realtime.js.map +1 -1
- package/dist/events/webhooks.js +1 -1
- package/dist/events/webhooks.js.map +1 -1
- package/dist/events.d.ts +36 -0
- package/dist/events.js +29 -1
- package/dist/events.js.map +1 -1
- package/dist/flags.d.ts +2 -0
- package/dist/flags.js +5 -1
- package/dist/flags.js.map +1 -1
- package/dist/hosting.d.ts +229 -0
- package/dist/hosting.js +168 -1
- package/dist/hosting.js.map +1 -1
- package/dist/ids.d.ts +75 -0
- package/dist/ids.js +16 -1
- package/dist/ids.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/keys.js +1 -1
- package/dist/keys.js.map +1 -1
- package/dist/knowledge.d.ts +32 -9
- package/dist/knowledge.js +21 -11
- package/dist/knowledge.js.map +1 -1
- package/dist/localization.js +1 -1
- package/dist/localization.js.map +1 -1
- package/dist/methods.js +818 -15
- package/dist/methods.js.map +1 -1
- package/dist/money.d.ts +263 -7
- package/dist/money.js +121 -7
- package/dist/money.js.map +1 -1
- package/dist/network.js +1 -1
- package/dist/network.js.map +1 -1
- package/dist/notify.d.ts +579 -0
- package/dist/notify.js +497 -1
- package/dist/notify.js.map +1 -1
- package/dist/observability.d.ts +303 -0
- package/dist/observability.js +221 -1
- package/dist/observability.js.map +1 -1
- package/dist/realtime.js +1 -1
- package/dist/realtime.js.map +1 -1
- package/dist/release.js +1 -1
- package/dist/release.js.map +1 -1
- package/dist/runners.js +1 -1
- package/dist/runners.js.map +1 -1
- package/dist/runtime.d.ts +5 -1
- package/dist/runtime.js +81 -9
- package/dist/runtime.js.map +1 -1
- package/dist/sandboxes/stream-mock.d.ts +124 -0
- package/dist/sandboxes/stream-mock.js +476 -0
- package/dist/sandboxes/stream-mock.js.map +1 -0
- package/dist/sandboxes/stream.d.ts +407 -0
- package/dist/sandboxes/stream.js +335 -0
- package/dist/sandboxes/stream.js.map +1 -0
- package/dist/sandboxes.d.ts +137 -26
- package/dist/sandboxes.js +46 -4
- package/dist/sandboxes.js.map +1 -1
- package/dist/secrets.js +1 -1
- package/dist/secrets.js.map +1 -1
- package/dist/workflows.d.ts +53 -1
- package/dist/workflows.js +39 -3
- package/dist/workflows.js.map +1 -1
- package/package.json +1 -1
package/dist/agents.d.ts
CHANGED
|
@@ -3,6 +3,20 @@ import './common.js';
|
|
|
3
3
|
import type * as common from './common.js';
|
|
4
4
|
import './sandboxes.js';
|
|
5
5
|
import type * as sandboxes from './sandboxes.js';
|
|
6
|
+
/** The request of AbortAgentSessionTransfer. */
|
|
7
|
+
export interface AbortAgentSessionTransferRequest {
|
|
8
|
+
/** Exact transfer name; cannot abort an adopted Session. */
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
/** The request of AdoptAgentSessionTransfer. */
|
|
12
|
+
export interface AdoptAgentSessionTransferRequest {
|
|
13
|
+
/** Exact verified transfer name. */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Exact read-back receipt durably recorded by the original source adapter. */
|
|
16
|
+
receiptSha256: string;
|
|
17
|
+
/** The original one-writer marker attestation bound at Begin. */
|
|
18
|
+
sourceFenceSha256: string;
|
|
19
|
+
}
|
|
6
20
|
/**
|
|
7
21
|
* An Agent is a versioned agent definition: model, instructions, tools, MCP
|
|
8
22
|
* servers, skills, memory stores, tool policy and budget. Each create or
|
|
@@ -34,6 +48,19 @@ export interface AgentBudget {
|
|
|
34
48
|
*/
|
|
35
49
|
maxSessionSpendMicros?: string;
|
|
36
50
|
}
|
|
51
|
+
/** The owner's pinned model and the cheap inference-only tool/compaction model. */
|
|
52
|
+
export interface AgentModels {
|
|
53
|
+
/**
|
|
54
|
+
* The exact Sylphx AI catalog id (`ai_models`) of the owner model, pinned
|
|
55
|
+
* for the life of a session; the runtime never remaps it.
|
|
56
|
+
*/
|
|
57
|
+
primary?: string;
|
|
58
|
+
/**
|
|
59
|
+
* The exact catalog id of the cheap model used only for owner-briefed
|
|
60
|
+
* `subcall.*` tools and in-loop compaction; never an owner.
|
|
61
|
+
*/
|
|
62
|
+
light?: string;
|
|
63
|
+
}
|
|
37
64
|
/**
|
|
38
65
|
* An AgentSession is a durable conversation with one pinned AgentVersion.
|
|
39
66
|
* Its conversation is its SessionEvent log. Each turn runs as one Sylphx
|
|
@@ -94,18 +121,131 @@ export interface AgentSession {
|
|
|
94
121
|
* resource name and mode. The runtime never puts profile values in events.
|
|
95
122
|
*/
|
|
96
123
|
profiles?: ProfileMount[];
|
|
124
|
+
/**
|
|
125
|
+
* The maker sessions this session verifies, as its `:run` named them;
|
|
126
|
+
* empty for any other session.
|
|
127
|
+
*/
|
|
128
|
+
readonly verifies?: string[];
|
|
129
|
+
/** When the session was archived; unset while it is not archived. */
|
|
130
|
+
readonly archiveTime?: string;
|
|
131
|
+
/**
|
|
132
|
+
* The pinned organization layer: its sha256 digest, instructions and skill
|
|
133
|
+
* names and descriptions. Skill bodies are never returned.
|
|
134
|
+
*/
|
|
135
|
+
readonly organizationContext?: Record<string, unknown>;
|
|
136
|
+
/**
|
|
137
|
+
* The organization layer the caller binds at assignment, read from its own
|
|
138
|
+
* versioned store. Admission pins it for the session's life: its
|
|
139
|
+
* instructions and skill index are injected at every activation, and a
|
|
140
|
+
* skill body is read from the pin only when the agent loads it. Never
|
|
141
|
+
* returned; organization_context shows the pin.
|
|
142
|
+
*/
|
|
143
|
+
organizationLayer?: OrganizationLayer;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* An optional durable objective of one Session. Model answers, waits and
|
|
147
|
+
* external Task completion never settle it implicitly.
|
|
148
|
+
*/
|
|
149
|
+
export interface AgentSessionGoal {
|
|
150
|
+
/** The exact Session-owned Goal name. */
|
|
151
|
+
name?: string;
|
|
152
|
+
/** The platform Resource UID; the conserved Goal UUID is its name's final id. */
|
|
153
|
+
readonly uid?: string;
|
|
154
|
+
/** Standard resource metadata. */
|
|
155
|
+
readonly meta?: common.ResourceMeta;
|
|
156
|
+
/** The objective, nonempty and at most 4,000 characters. */
|
|
157
|
+
objective?: string;
|
|
158
|
+
/** Omit unless the caller explicitly requests a positive token budget. */
|
|
159
|
+
tokenBudget?: string;
|
|
160
|
+
/** Lifecycle; an execution hold is represented separately. */
|
|
161
|
+
readonly state?: GoalState;
|
|
162
|
+
/** Optimistic acceptance-contract version, starting at one. */
|
|
163
|
+
readonly version?: number;
|
|
164
|
+
/** Observed tokens charged exactly once per runtime step. */
|
|
165
|
+
readonly tokensUsed?: string;
|
|
166
|
+
/** Unknown usage holds execution when a token budget is enforced. */
|
|
167
|
+
readonly usageUnavailable?: boolean;
|
|
168
|
+
/** Explicit owner pause; an unfinished Goal stays unfinished. */
|
|
169
|
+
readonly ownerPaused?: boolean;
|
|
170
|
+
/** Execution held after the required repeated observation of an impasse. */
|
|
171
|
+
readonly impasse?: boolean;
|
|
172
|
+
/** The terminal observation, retained after another Goal becomes active. */
|
|
173
|
+
readonly receipt?: SessionGoalReceipt;
|
|
174
|
+
/** When this Goal was created. */
|
|
175
|
+
readonly createTime?: string;
|
|
176
|
+
/** When this Goal last changed. */
|
|
177
|
+
readonly updateTime?: string;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* A bounded immutable source snapshot staged on an empty destination Session.
|
|
181
|
+
* Verification conserves bytes and identities; it grants no execution authority.
|
|
182
|
+
*/
|
|
183
|
+
export interface AgentSessionTransfer {
|
|
184
|
+
/** Destination Session and immutable transfer identity. */
|
|
185
|
+
name?: string;
|
|
186
|
+
/** Immutable Resource UID. */
|
|
187
|
+
readonly uid?: string;
|
|
188
|
+
/** Standard metadata. */
|
|
189
|
+
readonly meta?: common.ResourceMeta;
|
|
190
|
+
/** staging, verified, adopted or aborted. Verified does not admit execution. */
|
|
191
|
+
readonly state?: string;
|
|
192
|
+
/** Versioned source identity, transfer epoch and ordered byte/part digests. */
|
|
193
|
+
readonly manifest?: Record<string, unknown>;
|
|
194
|
+
/** Digest of the checked manifest, including original Session and epoch. */
|
|
195
|
+
readonly manifestSha256?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Caller attestation bound to its original durable writer fence. A digest
|
|
198
|
+
* does not prove that an external writer has stopped.
|
|
199
|
+
*/
|
|
200
|
+
readonly sourceFenceSha256?: string;
|
|
201
|
+
/** Exact stored-part metadata. Private payload bytes are never returned. */
|
|
202
|
+
readonly receivedParts?: SessionTransferPart[];
|
|
203
|
+
/** Original identities, destination mappings and unresolved effect holds. */
|
|
204
|
+
readonly receipt?: Record<string, unknown>;
|
|
205
|
+
/** Digest the source adapter reads back before acknowledging its handoff. */
|
|
206
|
+
readonly receiptSha256?: string;
|
|
207
|
+
/** Creation time. */
|
|
208
|
+
readonly createTime?: string;
|
|
209
|
+
/** Last lifecycle change time. */
|
|
210
|
+
readonly updateTime?: string;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* A durable external wait owned by a Session, optionally by its exact Goal.
|
|
214
|
+
* Readiness conserves observed evidence and does not authorize inference.
|
|
215
|
+
*/
|
|
216
|
+
export interface AgentSessionWait {
|
|
217
|
+
/** Exact name; the final segment is the conserved wait UUID. */
|
|
218
|
+
name?: string;
|
|
219
|
+
/** Immutable platform Resource UID. */
|
|
220
|
+
readonly uid?: string;
|
|
221
|
+
/** Standard metadata. */
|
|
222
|
+
readonly meta?: common.ResourceMeta;
|
|
223
|
+
/** Optional exact Goal in this Session, never a current-Goal selector. */
|
|
224
|
+
goal?: string;
|
|
225
|
+
/** time or signal. Other producer types require their own admitted adapter. */
|
|
226
|
+
type?: string;
|
|
227
|
+
/** Exact source reference for a signal; empty for a timer. */
|
|
228
|
+
reference?: string;
|
|
229
|
+
/** Actual future due time; required only for a timer. */
|
|
230
|
+
deadline?: string;
|
|
231
|
+
/** What to do after observing this wait's evidence, at most 16 KiB. */
|
|
232
|
+
resumePrompt?: string;
|
|
233
|
+
/** active, ready, resolved or cancelled. Ready still requires turn admission. */
|
|
234
|
+
readonly state?: string;
|
|
235
|
+
/** Original bounded observed evidence, retained through delivery and restart. */
|
|
236
|
+
readonly evidence?: Record<string, unknown>;
|
|
237
|
+
/** The only turn that consumed this wait; unset until resolved. */
|
|
238
|
+
readonly resumedTurn?: string;
|
|
239
|
+
/** Creation time. */
|
|
240
|
+
readonly createTime?: string;
|
|
241
|
+
/** Last state change time. */
|
|
242
|
+
readonly updateTime?: string;
|
|
97
243
|
}
|
|
98
244
|
/**
|
|
99
245
|
* AgentSpec is the caller-writable definition of an Agent. An AgentVersion
|
|
100
246
|
* holds a frozen copy of it.
|
|
101
247
|
*/
|
|
102
248
|
export interface AgentSpec {
|
|
103
|
-
/**
|
|
104
|
-
* The exact Sylphx AI catalog id (`ai_models`), set per Agent through the
|
|
105
|
-
* API as runtime state, never code or a deployed file. Agents in the same
|
|
106
|
-
* environment may use different models; the harness never remaps this id.
|
|
107
|
-
*/
|
|
108
|
-
model?: string;
|
|
109
249
|
/** The system instructions, at most 256 KiB. */
|
|
110
250
|
instructions?: string;
|
|
111
251
|
/** The tools the agent may call, at most 128, each `name` once. */
|
|
@@ -135,12 +275,27 @@ export interface AgentSpec {
|
|
|
135
275
|
* fields on that pinned default and requires a valid fresh finite lease.
|
|
136
276
|
*/
|
|
137
277
|
environment?: EnvironmentSpec;
|
|
138
|
-
/**
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
*
|
|
142
|
-
|
|
143
|
-
|
|
278
|
+
/** Exact owner and cheap-tool model ids. Neither is silently substituted. */
|
|
279
|
+
models?: AgentModels;
|
|
280
|
+
/**
|
|
281
|
+
* Read-only: the version holds no write grant, so it may verify another
|
|
282
|
+
* agent's work but never own it. Create and update refuse memory stores,
|
|
283
|
+
* MCP servers, `app_function` and `client` tools, the `memory`, `browser`
|
|
284
|
+
* and `computer` built-ins, and an HTTP tool whose pinned operation is not
|
|
285
|
+
* GET or HEAD unless it is `runtime_only`. The `shell` and `files`
|
|
286
|
+
* built-ins, and a `claude_code` or `codex` harness (which bring their own),
|
|
287
|
+
* need `environment.egress` that denies by default: `DENY`, or `ALLOWLIST`
|
|
288
|
+
* of the configured Sylphx API and inference gateways and the
|
|
289
|
+
* version's GET or HEAD tool hosts, with no CIDRs. Session create, `:send`
|
|
290
|
+
* and `:run` check the version and the session's effective environment
|
|
291
|
+
* again, and refuse any model-facing credential that is not a captured
|
|
292
|
+
* Access key holding only `<service>:read` and `ai:inference` scopes; a
|
|
293
|
+
* renewal's `credential_updates` value for a model-facing binding is held to
|
|
294
|
+
* the same rule. A run's `completion.result_fields` never map into the
|
|
295
|
+
* completion tool's path or query parameters. An OwnerPool never qualifies
|
|
296
|
+
* the version.
|
|
297
|
+
*/
|
|
298
|
+
readOnly?: boolean;
|
|
144
299
|
}
|
|
145
300
|
/** AgentStatus is the observed state of an Agent. */
|
|
146
301
|
export interface AgentStatus {
|
|
@@ -190,6 +345,25 @@ export interface Approval {
|
|
|
190
345
|
/** The reason given, if any. */
|
|
191
346
|
readonly reason?: string;
|
|
192
347
|
}
|
|
348
|
+
/** The request of ArchiveAgentSession. */
|
|
349
|
+
export interface ArchiveAgentSessionRequest {
|
|
350
|
+
/** The name of the session to archive. */
|
|
351
|
+
name: string;
|
|
352
|
+
}
|
|
353
|
+
/** The request of BeginAgentSessionTransfer. */
|
|
354
|
+
export interface BeginAgentSessionTransferRequest {
|
|
355
|
+
/** Empty idle destination Session, already created through the ordinary API. */
|
|
356
|
+
parent: string;
|
|
357
|
+
/** Permanent caller identity; exact retries return the original transfer. */
|
|
358
|
+
operationId: string;
|
|
359
|
+
/**
|
|
360
|
+
* sylphx.agents.session-continuity.v1 manifest. At most 256 parts of 256
|
|
361
|
+
* KiB, and 64 MiB overall. Source epoch must be a positive signed int64.
|
|
362
|
+
*/
|
|
363
|
+
manifest: Record<string, unknown>;
|
|
364
|
+
/** SHA-256 attestation of the original storage's durable writer marker. */
|
|
365
|
+
sourceFenceSha256: string;
|
|
366
|
+
}
|
|
193
367
|
/** A BuiltinTool is a tool the platform provides. */
|
|
194
368
|
export interface BuiltinTool {
|
|
195
369
|
/** The built-in tool's id. */
|
|
@@ -197,6 +371,22 @@ export interface BuiltinTool {
|
|
|
197
371
|
/** Tool-specific settings, at most 16 KiB of JSON. */
|
|
198
372
|
config?: Record<string, unknown>;
|
|
199
373
|
}
|
|
374
|
+
/** The request of CancelAgentSessionWait. */
|
|
375
|
+
export interface CancelAgentSessionWaitRequest {
|
|
376
|
+
/** Exact wait name. */
|
|
377
|
+
name: string;
|
|
378
|
+
/** Permanent caller mutation identity, at most 128 bytes. */
|
|
379
|
+
operationId: string;
|
|
380
|
+
}
|
|
381
|
+
/** The request of CancelQueuedSessionExecution. */
|
|
382
|
+
export interface CancelQueuedSessionExecutionRequest {
|
|
383
|
+
/** Exact reserved execution name. */
|
|
384
|
+
name: string;
|
|
385
|
+
/** Permanent caller mutation identity, at most 128 bytes. */
|
|
386
|
+
operationId: string;
|
|
387
|
+
/** The exact authority generation to cancel, never a newest-row selector. */
|
|
388
|
+
expectedGeneration: string;
|
|
389
|
+
}
|
|
200
390
|
/** Caller-owned grant capture; only opaque metadata is returned. */
|
|
201
391
|
export interface CaptureCredentialRequest {
|
|
202
392
|
/** The environment in which the caller holds the existing grant. */
|
|
@@ -250,6 +440,23 @@ export interface ContentPart {
|
|
|
250
440
|
/** A file, by Sylphx Data object URL or an https URL. */
|
|
251
441
|
file?: FileRef;
|
|
252
442
|
}
|
|
443
|
+
/** The request of ControlAgentSessionGoal. */
|
|
444
|
+
export interface ControlAgentSessionGoalRequest {
|
|
445
|
+
/** The exact Goal name; never a lookup of a Session's newest Goal. */
|
|
446
|
+
name: string;
|
|
447
|
+
/** The contract version observed by the owner. */
|
|
448
|
+
expectedVersion: number;
|
|
449
|
+
/** Explicit owner action. Only AMEND accepts objective/budget changes. */
|
|
450
|
+
action: GoalControlAction;
|
|
451
|
+
/** Caller-stable mutation identity, nonempty and at most 128 bytes. */
|
|
452
|
+
operationId: string;
|
|
453
|
+
/** New objective, only when amending. Omission preserves the existing text. */
|
|
454
|
+
objective?: string;
|
|
455
|
+
/** New explicit token budget, only when amending. Omission preserves it. */
|
|
456
|
+
tokenBudget?: string;
|
|
457
|
+
/** Explicitly remove a budget when amending; incompatible with token_budget. */
|
|
458
|
+
clearTokenBudget?: boolean;
|
|
459
|
+
}
|
|
253
460
|
/** The request of CreateAgent. */
|
|
254
461
|
export interface CreateAgentRequest {
|
|
255
462
|
/** The parent to create in. */
|
|
@@ -264,6 +471,15 @@ export interface CreateAgentRequest {
|
|
|
264
471
|
/** Validate and return the result without writing anything. */
|
|
265
472
|
validateOnly?: boolean;
|
|
266
473
|
}
|
|
474
|
+
/** The request of CreateAgentSessionGoal. */
|
|
475
|
+
export interface CreateAgentSessionGoalRequest {
|
|
476
|
+
/** The existing Session that owns this Goal. */
|
|
477
|
+
parent: string;
|
|
478
|
+
/** Only objective and optional token_budget are caller supplied. */
|
|
479
|
+
agentSessionGoal: AgentSessionGoal;
|
|
480
|
+
/** Caller-stable mutation identity, nonempty and at most 128 bytes. */
|
|
481
|
+
operationId: string;
|
|
482
|
+
}
|
|
267
483
|
/** The request of CreateAgentSession. */
|
|
268
484
|
export interface CreateAgentSessionRequest {
|
|
269
485
|
/** The parent to create in. */
|
|
@@ -278,6 +494,17 @@ export interface CreateAgentSessionRequest {
|
|
|
278
494
|
/** Validate and return the result without writing anything. */
|
|
279
495
|
validateOnly?: boolean;
|
|
280
496
|
}
|
|
497
|
+
/** The request of CreateAgentSessionWait. */
|
|
498
|
+
export interface CreateAgentSessionWaitRequest {
|
|
499
|
+
/** Existing owning Session. */
|
|
500
|
+
parent: string;
|
|
501
|
+
/** Only type, reference/deadline, resume_prompt and optional goal are writable. */
|
|
502
|
+
agentSessionWait: AgentSessionWait;
|
|
503
|
+
/** Permanent caller mutation identity, at most 128 bytes. */
|
|
504
|
+
operationId: string;
|
|
505
|
+
/** Required when the wait names a Goal; its exact observed contract version. */
|
|
506
|
+
expectedGoalVersion?: number;
|
|
507
|
+
}
|
|
281
508
|
/** The request of CreateMemory. */
|
|
282
509
|
export interface CreateMemoryRequest {
|
|
283
510
|
/** The memory store to create in. */
|
|
@@ -306,6 +533,15 @@ export interface CreateMemoryStoreRequest {
|
|
|
306
533
|
/** Validate and return the result without writing anything. */
|
|
307
534
|
validateOnly?: boolean;
|
|
308
535
|
}
|
|
536
|
+
/** The request of CreateOwnerPool. */
|
|
537
|
+
export interface CreateOwnerPoolRequest {
|
|
538
|
+
/** The parent to create in. */
|
|
539
|
+
parent: string;
|
|
540
|
+
/** The owner pool id, the final name segment. */
|
|
541
|
+
ownerPoolId: string;
|
|
542
|
+
/** The owner pool to create; only caller-writable fields are read. */
|
|
543
|
+
ownerPool: OwnerPool;
|
|
544
|
+
}
|
|
309
545
|
/**
|
|
310
546
|
* A CredentialBinding names where the gateway takes a credential from. The
|
|
311
547
|
* value is resolved at egress only; the model, the event log and traces see
|
|
@@ -416,6 +652,11 @@ export interface DeleteMemoryStoreRequest {
|
|
|
416
652
|
*/
|
|
417
653
|
force?: boolean;
|
|
418
654
|
}
|
|
655
|
+
/** The request of DeleteOwnerPool. */
|
|
656
|
+
export interface DeleteOwnerPoolRequest {
|
|
657
|
+
/** The name of the owner pool to delete. */
|
|
658
|
+
name: string;
|
|
659
|
+
}
|
|
419
660
|
/**
|
|
420
661
|
* EnvironmentSpec describes a session's Sandboxes environment. The pinned
|
|
421
662
|
* AgentVersion may provide a default. RunAgent overlays selected fields using
|
|
@@ -478,6 +719,11 @@ export interface FileRef {
|
|
|
478
719
|
/** Its display name. */
|
|
479
720
|
filename?: string;
|
|
480
721
|
}
|
|
722
|
+
/** The request of FinalizeAgentSessionTransfer. */
|
|
723
|
+
export interface FinalizeAgentSessionTransferRequest {
|
|
724
|
+
/** Exact transfer name. The immutable snapshot makes repetition idempotent. */
|
|
725
|
+
name: string;
|
|
726
|
+
}
|
|
481
727
|
/** A FunctionTool is a tool whose logic is the app's own server code. */
|
|
482
728
|
export interface FunctionTool {
|
|
483
729
|
/**
|
|
@@ -493,11 +739,26 @@ export interface GetAgentRequest {
|
|
|
493
739
|
/** The name of the agent to get. */
|
|
494
740
|
name: string;
|
|
495
741
|
}
|
|
742
|
+
/** The request of GetAgentSessionGoal. */
|
|
743
|
+
export interface GetAgentSessionGoalRequest {
|
|
744
|
+
/** The exact Goal name. */
|
|
745
|
+
name: string;
|
|
746
|
+
}
|
|
496
747
|
/** The request of GetAgentSession. */
|
|
497
748
|
export interface GetAgentSessionRequest {
|
|
498
749
|
/** The name of the session to get. */
|
|
499
750
|
name: string;
|
|
500
751
|
}
|
|
752
|
+
/** The request of GetAgentSessionTransfer. */
|
|
753
|
+
export interface GetAgentSessionTransferRequest {
|
|
754
|
+
/** Exact transfer name. */
|
|
755
|
+
name: string;
|
|
756
|
+
}
|
|
757
|
+
/** The request of GetAgentSessionWait. */
|
|
758
|
+
export interface GetAgentSessionWaitRequest {
|
|
759
|
+
/** Exact wait name. */
|
|
760
|
+
name: string;
|
|
761
|
+
}
|
|
501
762
|
/** The request of GetAgentVersion. */
|
|
502
763
|
export interface GetAgentVersionRequest {
|
|
503
764
|
/** The name of the agent version to get. */
|
|
@@ -513,6 +774,16 @@ export interface GetMemoryStoreRequest {
|
|
|
513
774
|
/** The name of the memory store to get. */
|
|
514
775
|
name: string;
|
|
515
776
|
}
|
|
777
|
+
/** The request of GetOwnerPool. */
|
|
778
|
+
export interface GetOwnerPoolRequest {
|
|
779
|
+
/** The name of the owner pool to get. */
|
|
780
|
+
name: string;
|
|
781
|
+
}
|
|
782
|
+
/** The request of GetQueuedSessionExecution. */
|
|
783
|
+
export interface GetQueuedSessionExecutionRequest {
|
|
784
|
+
/** Exact reserved execution name. */
|
|
785
|
+
name: string;
|
|
786
|
+
}
|
|
516
787
|
/** The request of GetSessionEvent. */
|
|
517
788
|
export interface GetSessionEventRequest {
|
|
518
789
|
/** The name of the session event to get. */
|
|
@@ -552,6 +823,22 @@ export interface InvokeToolRequest {
|
|
|
552
823
|
/** The stable operation identifier, reused for idempotent tool-call retries. */
|
|
553
824
|
opId: string;
|
|
554
825
|
}
|
|
826
|
+
/** The request of ListAgentSessionWaits. */
|
|
827
|
+
export interface ListAgentSessionWaitsRequest {
|
|
828
|
+
/** Existing owning Session. */
|
|
829
|
+
parent: string;
|
|
830
|
+
/** Default 50, clamped to 1000. */
|
|
831
|
+
pageSize?: number;
|
|
832
|
+
/** The preceding response's next_page_token. */
|
|
833
|
+
pageToken?: string;
|
|
834
|
+
}
|
|
835
|
+
/** The response of ListAgentSessionWaits. */
|
|
836
|
+
export interface ListAgentSessionWaitsResponse {
|
|
837
|
+
/** Ordered by conserved wait UUID. */
|
|
838
|
+
agentSessionWaits?: AgentSessionWait[];
|
|
839
|
+
/** Empty at the end. */
|
|
840
|
+
nextPageToken?: string;
|
|
841
|
+
}
|
|
555
842
|
/** The request of ListAgentSessions. */
|
|
556
843
|
export interface ListAgentSessionsRequest {
|
|
557
844
|
/** The parent to list in. */
|
|
@@ -646,6 +933,22 @@ export interface ListMemoryStoresResponse {
|
|
|
646
933
|
/** The token of the next page; empty on the last page. */
|
|
647
934
|
nextPageToken?: string;
|
|
648
935
|
}
|
|
936
|
+
/** The request of ListOwnerPools. */
|
|
937
|
+
export interface ListOwnerPoolsRequest {
|
|
938
|
+
/** The parent to list in. */
|
|
939
|
+
parent: string;
|
|
940
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
941
|
+
pageSize?: number;
|
|
942
|
+
/** `next_page_token` of the previous page. */
|
|
943
|
+
pageToken?: string;
|
|
944
|
+
}
|
|
945
|
+
/** The response of ListOwnerPools. */
|
|
946
|
+
export interface ListOwnerPoolsResponse {
|
|
947
|
+
/** The page. */
|
|
948
|
+
ownerPools?: OwnerPool[];
|
|
949
|
+
/** The token of the next page; empty on the last page. */
|
|
950
|
+
nextPageToken?: string;
|
|
951
|
+
}
|
|
649
952
|
/** The request of ListSessionEvents. */
|
|
650
953
|
export interface ListSessionEventsRequest {
|
|
651
954
|
/** The session to list in. */
|
|
@@ -724,8 +1027,9 @@ export interface MemoryProvenance {
|
|
|
724
1027
|
}
|
|
725
1028
|
/**
|
|
726
1029
|
* A MemoryStore holds long-term memory records with provenance, recalled by
|
|
727
|
-
* hybrid full-text and vector search.
|
|
728
|
-
* store
|
|
1030
|
+
* hybrid full-text and vector search. The records are Sylphx Knowledge
|
|
1031
|
+
* episodes in the store's Knowledge spaces, read and written as the caller.
|
|
1032
|
+
* Agents name the stores they use; a store may be shared by many agents.
|
|
729
1033
|
*/
|
|
730
1034
|
export interface MemoryStore {
|
|
731
1035
|
/** `orgs/{org}/projects/{project}/envs/{env}/memory_stores/{memory_store}`. */
|
|
@@ -747,12 +1051,15 @@ export interface MemoryStoreSpec {
|
|
|
747
1051
|
scope?: MemoryScope;
|
|
748
1052
|
/**
|
|
749
1053
|
* Memories older than this since their last update are deleted, 1d to
|
|
750
|
-
* 3650d; unset keeps them until deleted.
|
|
1054
|
+
* 3650d; unset keeps them until deleted. Not accepted yet: memories are
|
|
1055
|
+
* Knowledge episodes and Knowledge has no time-based deletion, so a set
|
|
1056
|
+
* value is refused with `INVALID_FIELD`.
|
|
751
1057
|
*/
|
|
752
1058
|
retention?: string;
|
|
753
1059
|
/**
|
|
754
1060
|
* Whether agents write memories themselves after each turn; otherwise
|
|
755
|
-
* only callers write them.
|
|
1061
|
+
* only callers write them. Not accepted yet: the turn runtime has no
|
|
1062
|
+
* after-turn memory hook, so `true` is refused with `INVALID_FIELD`.
|
|
756
1063
|
*/
|
|
757
1064
|
agentWrites?: boolean;
|
|
758
1065
|
}
|
|
@@ -764,7 +1071,7 @@ export interface MemoryStoreStatus {
|
|
|
764
1071
|
readonly conditions?: common.Condition[];
|
|
765
1072
|
/** The number of memories. */
|
|
766
1073
|
readonly memoryCount?: string;
|
|
767
|
-
/** Bytes
|
|
1074
|
+
/** Bytes of the memories' current content. Knowledge meters their storage. */
|
|
768
1075
|
readonly storedBytes?: string;
|
|
769
1076
|
}
|
|
770
1077
|
/** A Message is text and files from a user or the agent. */
|
|
@@ -772,6 +1079,154 @@ export interface Message {
|
|
|
772
1079
|
/** The content, in order; 1 to 64 parts. */
|
|
773
1080
|
parts?: ContentPart[];
|
|
774
1081
|
}
|
|
1082
|
+
/** The request of ObserveOwnerPoolMember. */
|
|
1083
|
+
export interface ObserveOwnerPoolMemberRequest {
|
|
1084
|
+
/** The owner pool. */
|
|
1085
|
+
name: string;
|
|
1086
|
+
/** The member version. */
|
|
1087
|
+
agentVersion: string;
|
|
1088
|
+
/**
|
|
1089
|
+
* The observed value per metric over the caller's window, lower is better;
|
|
1090
|
+
* 1 to 64. A demotion rule's metric is never negative.
|
|
1091
|
+
*/
|
|
1092
|
+
metrics: Record<string, number>;
|
|
1093
|
+
/** The number of outcomes the values summarize. */
|
|
1094
|
+
samples: string;
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* The organization layer of an agent's context: always-on instructions and a
|
|
1098
|
+
* skill index whose bodies load only on use (Agent Skills progressive
|
|
1099
|
+
* disclosure). Its versioned store and authoring belong to the caller (such
|
|
1100
|
+
* as a work layer); the engine keeps only the immutable pin a session
|
|
1101
|
+
* was admitted with. Per-kind roles add their own instructions and skills
|
|
1102
|
+
* above this layer; the Agent version's instructions remain additive.
|
|
1103
|
+
*/
|
|
1104
|
+
export interface OrganizationLayer {
|
|
1105
|
+
/** Always loaded organization instructions, at most 256 KiB. */
|
|
1106
|
+
instructions?: string;
|
|
1107
|
+
/** Up to 256 skills with unique names; the layer is at most 1 MiB in total. */
|
|
1108
|
+
skills?: OrganizationSkill[];
|
|
1109
|
+
}
|
|
1110
|
+
/** A discoverable organization instruction pack. */
|
|
1111
|
+
export interface OrganizationSkill {
|
|
1112
|
+
/** The model-facing name, [a-z0-9][a-z0-9_-]{0,62}. */
|
|
1113
|
+
name?: string;
|
|
1114
|
+
/** Discovery description, nonempty and at most 4 KiB. */
|
|
1115
|
+
description?: string;
|
|
1116
|
+
/** Instructions loaded by organization.skill.get, nonempty and at most 256 KiB. */
|
|
1117
|
+
body?: string;
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* An OwnerPool is the set of Agent versions qualified to own work. A version
|
|
1121
|
+
* joins only by passing the pool's admission suite (`:qualify`) and leaves
|
|
1122
|
+
* automatically when a live metric regresses past a demotion rule
|
|
1123
|
+
* (`:observe`). `:run` with `owner_pool` admits only a qualified member. The
|
|
1124
|
+
* suite, the metrics and their thresholds are the caller's own; the pool
|
|
1125
|
+
* stores no method of its own.
|
|
1126
|
+
*/
|
|
1127
|
+
export interface OwnerPool {
|
|
1128
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/owner_pools/{owner_pool}`. */
|
|
1129
|
+
name?: string;
|
|
1130
|
+
/** `aop_<cell><ulid>`; never reused. */
|
|
1131
|
+
readonly uid?: string;
|
|
1132
|
+
/** Resource metadata. */
|
|
1133
|
+
meta?: common.ResourceMeta;
|
|
1134
|
+
/** Desired state. */
|
|
1135
|
+
spec?: OwnerPoolSpec;
|
|
1136
|
+
/** Observed state: the members. */
|
|
1137
|
+
readonly status?: OwnerPoolStatus;
|
|
1138
|
+
}
|
|
1139
|
+
/** OwnerPoolAdmission is a fixed benchmark suite with minimum scores. */
|
|
1140
|
+
export interface OwnerPoolAdmission {
|
|
1141
|
+
/** The suite's id, matched exactly by `:qualify`; at most 200 characters. */
|
|
1142
|
+
suite?: string;
|
|
1143
|
+
/**
|
|
1144
|
+
* Minimum score per suite metric, higher is better; 1 to 64 metrics. A
|
|
1145
|
+
* member qualifies only when every metric is reported at or above its
|
|
1146
|
+
* minimum.
|
|
1147
|
+
*/
|
|
1148
|
+
minScores?: Record<string, number>;
|
|
1149
|
+
/**
|
|
1150
|
+
* The suite's version, matched exactly by `:qualify`; at most 200
|
|
1151
|
+
* characters.
|
|
1152
|
+
*/
|
|
1153
|
+
suiteVersion?: string;
|
|
1154
|
+
}
|
|
1155
|
+
/**
|
|
1156
|
+
* OwnerPoolDemotionRule demotes a member whose live metric, lower is better
|
|
1157
|
+
* and never negative, regresses past its baseline. The platform computes the
|
|
1158
|
+
* baseline; no caller sets it.
|
|
1159
|
+
*/
|
|
1160
|
+
export interface OwnerPoolDemotionRule {
|
|
1161
|
+
/** The live metric's name, as `:observe` reports it. */
|
|
1162
|
+
metric?: string;
|
|
1163
|
+
/**
|
|
1164
|
+
* The tolerated regression as a fraction of the baseline: a member is
|
|
1165
|
+
* demoted when the observed value exceeds `baseline * (1 + max_regression)`.
|
|
1166
|
+
*/
|
|
1167
|
+
maxRegression?: number;
|
|
1168
|
+
/**
|
|
1169
|
+
* Observations over fewer samples than this are recorded but never count
|
|
1170
|
+
* toward the baseline or demote; default 1.
|
|
1171
|
+
*/
|
|
1172
|
+
minSamples?: string;
|
|
1173
|
+
/**
|
|
1174
|
+
* The baseline is the median of the member's first this many counted
|
|
1175
|
+
* observations of the metric, set once it is finite and positive (while
|
|
1176
|
+
* the median is zero the window moves on). 1 to 100; default 5.
|
|
1177
|
+
*/
|
|
1178
|
+
baselineObservations?: string;
|
|
1179
|
+
}
|
|
1180
|
+
/** An OwnerPoolMember is one Agent version's standing in a pool. */
|
|
1181
|
+
export interface OwnerPoolMember {
|
|
1182
|
+
/** The member version. */
|
|
1183
|
+
readonly agentVersion?: string;
|
|
1184
|
+
/** The model the version pins. */
|
|
1185
|
+
readonly model?: string;
|
|
1186
|
+
/** Qualified, refused or demoted. */
|
|
1187
|
+
readonly state?: OwnerPoolMemberState;
|
|
1188
|
+
/** The suite of the latest `:qualify`. */
|
|
1189
|
+
readonly suite?: string;
|
|
1190
|
+
/** The scores of the latest `:qualify`. */
|
|
1191
|
+
readonly scores?: Record<string, number>;
|
|
1192
|
+
/**
|
|
1193
|
+
* The baseline per demotion metric, computed by the platform from counted
|
|
1194
|
+
* observations; a re-qualify keeps it.
|
|
1195
|
+
*/
|
|
1196
|
+
readonly baseline?: Record<string, number>;
|
|
1197
|
+
/** The latest observation per metric. */
|
|
1198
|
+
readonly observed?: Record<string, number>;
|
|
1199
|
+
/** When it last qualified. */
|
|
1200
|
+
readonly qualifyTime?: string;
|
|
1201
|
+
/** When it was last demoted. */
|
|
1202
|
+
readonly demoteTime?: string;
|
|
1203
|
+
/** Why it was refused or demoted. */
|
|
1204
|
+
readonly reason?: string;
|
|
1205
|
+
/** When the state last changed. */
|
|
1206
|
+
readonly updateTime?: string;
|
|
1207
|
+
/** The suite version of the latest `:qualify`. */
|
|
1208
|
+
readonly suiteVersion?: string;
|
|
1209
|
+
/** The suite result of the latest `:qualify`. */
|
|
1210
|
+
readonly result?: string;
|
|
1211
|
+
/** The principal that recorded the latest `:qualify`. */
|
|
1212
|
+
readonly qualifier?: string;
|
|
1213
|
+
}
|
|
1214
|
+
/** OwnerPoolSpec is the caller-writable state of an OwnerPool. */
|
|
1215
|
+
export interface OwnerPoolSpec {
|
|
1216
|
+
/** The admission test every member passes. */
|
|
1217
|
+
admission?: OwnerPoolAdmission;
|
|
1218
|
+
/** Live-metric rules that demote a member; at most 16, each metric once. */
|
|
1219
|
+
demotion?: OwnerPoolDemotionRule[];
|
|
1220
|
+
}
|
|
1221
|
+
/** OwnerPoolStatus is the observed state of an OwnerPool. */
|
|
1222
|
+
export interface OwnerPoolStatus {
|
|
1223
|
+
/** The generation this status was computed from. */
|
|
1224
|
+
readonly observedGeneration?: string;
|
|
1225
|
+
/** Ready. */
|
|
1226
|
+
readonly conditions?: common.Condition[];
|
|
1227
|
+
/** Every version ever submitted to `:qualify`, most recently changed first. */
|
|
1228
|
+
readonly members?: OwnerPoolMember[];
|
|
1229
|
+
}
|
|
775
1230
|
/** ProfileMount attaches a platform Profile by name, never its sign-in values. */
|
|
776
1231
|
export interface ProfileMount {
|
|
777
1232
|
/** `orgs/{org}/projects/{project}/envs/{env}/profiles/{profile}`. */
|
|
@@ -782,6 +1237,80 @@ export interface ProfileMount {
|
|
|
782
1237
|
*/
|
|
783
1238
|
mode?: string;
|
|
784
1239
|
}
|
|
1240
|
+
/** The request of QualifyOwnerPoolMember. */
|
|
1241
|
+
export interface QualifyOwnerPoolMemberRequest {
|
|
1242
|
+
/** The owner pool. */
|
|
1243
|
+
name: string;
|
|
1244
|
+
/** The Agent version that ran the suite, in the pool's environment. */
|
|
1245
|
+
agentVersion: string;
|
|
1246
|
+
/** The suite that ran; must equal the pool's `admission.suite`. */
|
|
1247
|
+
suite: string;
|
|
1248
|
+
/** The score per suite metric; at most 64. */
|
|
1249
|
+
scores: Record<string, number>;
|
|
1250
|
+
/**
|
|
1251
|
+
* The suite version that ran; must equal the pool's
|
|
1252
|
+
* `admission.suite_version`.
|
|
1253
|
+
*/
|
|
1254
|
+
suiteVersion: string;
|
|
1255
|
+
/**
|
|
1256
|
+
* The grader's id of this suite run, for example its evidence record; 1 to
|
|
1257
|
+
* 200 characters. Each result is recorded once per member.
|
|
1258
|
+
*/
|
|
1259
|
+
result: string;
|
|
1260
|
+
}
|
|
1261
|
+
/** The request of QueueAgentSessionExecution. */
|
|
1262
|
+
export interface QueueAgentSessionExecutionRequest {
|
|
1263
|
+
/** Existing owning Session. */
|
|
1264
|
+
name: string;
|
|
1265
|
+
/** Existing handles captured by this caller for this exact future turn. */
|
|
1266
|
+
execution: SessionTurnExecution;
|
|
1267
|
+
/** Exact current Goal, or empty only when the Session has no Goal. */
|
|
1268
|
+
goal?: string;
|
|
1269
|
+
/** Required for a Goal; its observed contract version when granting authority. */
|
|
1270
|
+
expectedGoalVersion?: number;
|
|
1271
|
+
/** Permanent caller mutation identity, at most 128 bytes. */
|
|
1272
|
+
operationId: string;
|
|
1273
|
+
/** Zero on first creation; replacing authority requires its exact generation. */
|
|
1274
|
+
expectedGeneration?: string;
|
|
1275
|
+
/**
|
|
1276
|
+
* Explicitly authorize automatic ready-wait resume with these exact captures.
|
|
1277
|
+
* Default false only reserves them. Requires captured agents:sessions as
|
|
1278
|
+
* well as runtime permissions; owner holds and ordinary admission still apply.
|
|
1279
|
+
*/
|
|
1280
|
+
automatic?: boolean;
|
|
1281
|
+
}
|
|
1282
|
+
/**
|
|
1283
|
+
* Explicit caller authority reserved for one exact future Session turn.
|
|
1284
|
+
* It reuses captured credentials; it never mints, clones or extends a grant.
|
|
1285
|
+
*/
|
|
1286
|
+
export interface QueuedSessionExecution {
|
|
1287
|
+
/** Exact Session and reserved public turn number. */
|
|
1288
|
+
name?: string;
|
|
1289
|
+
/** Immutable platform Resource UID. */
|
|
1290
|
+
readonly uid?: string;
|
|
1291
|
+
/** Standard metadata. */
|
|
1292
|
+
readonly meta?: common.ResourceMeta;
|
|
1293
|
+
/** Exact future turn; never selected by a model or a Task. */
|
|
1294
|
+
readonly turn?: string;
|
|
1295
|
+
/** queued, consumed, superseded or cancelled. Queued does not run inference. */
|
|
1296
|
+
readonly state?: string;
|
|
1297
|
+
/** Optional exact Goal whose objective and budget this authority covers. */
|
|
1298
|
+
readonly goal?: string;
|
|
1299
|
+
/** Earliest captured handle expiry; ordinary admission revalidates all grants. */
|
|
1300
|
+
readonly expireTime?: string;
|
|
1301
|
+
/** When the caller reserved this execution. */
|
|
1302
|
+
readonly createTime?: string;
|
|
1303
|
+
/** When the state last changed. */
|
|
1304
|
+
readonly updateTime?: string;
|
|
1305
|
+
/** Configuration generation, advanced only by explicit replacement. */
|
|
1306
|
+
readonly generation?: string;
|
|
1307
|
+
/** Whether the caller explicitly authorized automatic wait readmission. */
|
|
1308
|
+
readonly automatic?: boolean;
|
|
1309
|
+
/** disabled, unscheduled, pending, waiting or finished; no inference implied. */
|
|
1310
|
+
readonly continuationState?: string;
|
|
1311
|
+
/** Current delivery/authority/owner hold, when automatic continuation is blocked. */
|
|
1312
|
+
readonly blockedReason?: string;
|
|
1313
|
+
}
|
|
785
1314
|
/** A pinned tool called periodically while the accepted task owns its grant. */
|
|
786
1315
|
export interface RenewalCall {
|
|
787
1316
|
/** The authorized renewal tool name in the pinned agent version. */
|
|
@@ -811,6 +1340,34 @@ export interface RepositorySpec {
|
|
|
811
1340
|
/** The commit or ref to check out; empty uses the repository's default branch. */
|
|
812
1341
|
revision?: string;
|
|
813
1342
|
}
|
|
1343
|
+
/** The request of ResolveAgentSessionWait. */
|
|
1344
|
+
export interface ResolveAgentSessionWaitRequest {
|
|
1345
|
+
/** Exact wait name. */
|
|
1346
|
+
name: string;
|
|
1347
|
+
/** Permanent caller mutation identity, at most 128 bytes. */
|
|
1348
|
+
operationId: string;
|
|
1349
|
+
/** Exact recorded signal source; omitted for a timer. */
|
|
1350
|
+
reference?: string;
|
|
1351
|
+
/** Nonempty observed signal evidence; omitted for a timer. */
|
|
1352
|
+
evidence?: Record<string, unknown>;
|
|
1353
|
+
}
|
|
1354
|
+
/** The request of ResumeAgentSession. */
|
|
1355
|
+
export interface ResumeAgentSessionRequest {
|
|
1356
|
+
/** Existing owning Session, which must be idle or failed. */
|
|
1357
|
+
name: string;
|
|
1358
|
+
/** Permanent caller mutation identity, at most 128 bytes. */
|
|
1359
|
+
operationId: string;
|
|
1360
|
+
/** Exact ready owners, 1 to 16; must include all outstanding Session waits. */
|
|
1361
|
+
waits: string[];
|
|
1362
|
+
/** Fresh handles captured for this exact next turn; no Task is required. */
|
|
1363
|
+
execution: SessionTurnExecution;
|
|
1364
|
+
/**
|
|
1365
|
+
* Nonzero for automatic continuation: require this exact queued authority
|
|
1366
|
+
* generation, caller, Goal terms and execution. Zero is explicit fresh
|
|
1367
|
+
* caller admission. A delayed automatic callback never selects a replacement.
|
|
1368
|
+
*/
|
|
1369
|
+
queuedExecutionGeneration?: string;
|
|
1370
|
+
}
|
|
814
1371
|
/** The request to revoke a captured credential handle. */
|
|
815
1372
|
export interface RevokeCredentialRequest {
|
|
816
1373
|
/** The environment that owns the captured handle. */
|
|
@@ -881,6 +1438,32 @@ export interface RunAgentRequest {
|
|
|
881
1438
|
* explicit resets and whole-environment replacement.
|
|
882
1439
|
*/
|
|
883
1440
|
environmentMask?: string;
|
|
1441
|
+
/**
|
|
1442
|
+
* The caller's stable identity of the work item, not interpreted otherwise.
|
|
1443
|
+
* Every session and attempt with the same item key works on one repository
|
|
1444
|
+
* branch derived from it, so a new attempt continues the pushed work.
|
|
1445
|
+
* Omitted, the session is the item.
|
|
1446
|
+
*/
|
|
1447
|
+
itemKey?: string;
|
|
1448
|
+
/**
|
|
1449
|
+
* The OwnerPool this run owns work for. Admission refuses with
|
|
1450
|
+
* `INVALID_STATE` unless `agent_version` is a `QUALIFIED` member at that
|
|
1451
|
+
* moment; later turns of the session are not re-checked.
|
|
1452
|
+
*/
|
|
1453
|
+
ownerPool?: string;
|
|
1454
|
+
/**
|
|
1455
|
+
* The maker sessions this run verifies, 1 to 16; empty for an ordinary
|
|
1456
|
+
* run. Admission refuses with `PERMISSION_DENIED` unless `agent_version` is
|
|
1457
|
+
* read-only and its Agent differs from every maker session's Agent. The
|
|
1458
|
+
* verifier session never receives a maker transcript. Set at most one of
|
|
1459
|
+
* `owner_pool` and `verifies`.
|
|
1460
|
+
*/
|
|
1461
|
+
verifies?: string[];
|
|
1462
|
+
/**
|
|
1463
|
+
* The organization layer the caller binds at assignment, read from its own
|
|
1464
|
+
* versioned store. The session pins it; see AgentSession.organization_layer.
|
|
1465
|
+
*/
|
|
1466
|
+
organizationLayer?: OrganizationLayer;
|
|
884
1467
|
}
|
|
885
1468
|
/** Durable acceptance, not task completion or sandbox readiness. */
|
|
886
1469
|
export interface RunAgentResponse {
|
|
@@ -893,6 +1476,15 @@ export interface RunAgentResponse {
|
|
|
893
1476
|
/** Lease-cleanup progress; released requires terminal lease evidence. */
|
|
894
1477
|
readonly cleanup?: string;
|
|
895
1478
|
}
|
|
1479
|
+
/** A public lease fact recorded at allocation and confirmed physical release. */
|
|
1480
|
+
export interface SandboxActivity {
|
|
1481
|
+
/** The lease's resource name. */
|
|
1482
|
+
readonly lease?: string;
|
|
1483
|
+
/** `allocated` or `released` (the release was read back as ENDED). */
|
|
1484
|
+
readonly state?: string;
|
|
1485
|
+
/** On `released`: exact decimal seconds from allocation to release. */
|
|
1486
|
+
readonly sandboxSeconds?: string;
|
|
1487
|
+
}
|
|
896
1488
|
/** The request of SearchMemories. */
|
|
897
1489
|
export interface SearchMemoriesRequest {
|
|
898
1490
|
/** The memory store to search. */
|
|
@@ -921,6 +1513,12 @@ export interface SendAgentSessionMessageRequest {
|
|
|
921
1513
|
name: string;
|
|
922
1514
|
/** The message, 1 to 64 parts. */
|
|
923
1515
|
message: Message;
|
|
1516
|
+
/**
|
|
1517
|
+
* Captured authority for a new hosted turn. Required when starting a turn
|
|
1518
|
+
* with the hosted runtime; an active-turn steer must omit it. Admission
|
|
1519
|
+
* checks the exact turn and pins these inputs atomically with the message.
|
|
1520
|
+
*/
|
|
1521
|
+
execution?: SessionTurnExecution;
|
|
924
1522
|
}
|
|
925
1523
|
/**
|
|
926
1524
|
* A SessionEvent is one entry of a session's append-only log: a user
|
|
@@ -947,6 +1545,10 @@ export interface SessionEvent {
|
|
|
947
1545
|
readonly step?: string;
|
|
948
1546
|
/** When it was appended. */
|
|
949
1547
|
readonly createTime?: string;
|
|
1548
|
+
/** Observed accounting for this step; absent values are unknown, never zero. */
|
|
1549
|
+
readonly usage?: StepUsage;
|
|
1550
|
+
/** Stable runtime-assigned effect key, independent of invocation attempts. */
|
|
1551
|
+
readonly stepKey?: string;
|
|
950
1552
|
/** For USER_MESSAGE, STEER and AGENT_MESSAGE. */
|
|
951
1553
|
message?: Message;
|
|
952
1554
|
/** For TOOL_CALL. */
|
|
@@ -965,6 +1567,47 @@ export interface SessionEvent {
|
|
|
965
1567
|
response?: TurnResult;
|
|
966
1568
|
/** For ERROR. */
|
|
967
1569
|
error?: ErrorEvent;
|
|
1570
|
+
/** For SANDBOX: authoritative allocation/release history, including replacements. */
|
|
1571
|
+
sandbox?: SandboxActivity;
|
|
1572
|
+
/** For WAIT_CHANGED: a durable wait fact, without execution authority. */
|
|
1573
|
+
wait?: AgentSessionWait;
|
|
1574
|
+
/** For WAIT_CONTINUATION: ready owners consumed by exact turn admission. */
|
|
1575
|
+
waitContinuation?: SessionWaitContinuation;
|
|
1576
|
+
}
|
|
1577
|
+
/** An actual observation supporting terminal Goal settlement. */
|
|
1578
|
+
export interface SessionGoalReceipt {
|
|
1579
|
+
/** The observed delivery stage. */
|
|
1580
|
+
stage?: string;
|
|
1581
|
+
/** The concrete surface or artifact observed. */
|
|
1582
|
+
target?: string;
|
|
1583
|
+
/** Nonempty structured evidence from that surface. */
|
|
1584
|
+
evidence?: Record<string, unknown>;
|
|
1585
|
+
}
|
|
1586
|
+
/** A content-checked part receipt, without private state or source credentials. */
|
|
1587
|
+
export interface SessionTransferPart {
|
|
1588
|
+
/** Zero-based index in the immutable manifest. */
|
|
1589
|
+
index?: string;
|
|
1590
|
+
/** Exact stored byte count. */
|
|
1591
|
+
bytes?: string;
|
|
1592
|
+
/** SHA-256 of the exact binary body. */
|
|
1593
|
+
sha256?: string;
|
|
1594
|
+
}
|
|
1595
|
+
/**
|
|
1596
|
+
* Authority for one hosted turn of an existing session. Handles are captured
|
|
1597
|
+
* through the public credential API for this exact session and turn; raw
|
|
1598
|
+
* credentials never enter the conversation or model context. No Task or
|
|
1599
|
+
* completion callback is required.
|
|
1600
|
+
*/
|
|
1601
|
+
export interface SessionTurnExecution {
|
|
1602
|
+
/** The expected next turn. A concurrent admission never changes this pin. */
|
|
1603
|
+
turn?: string;
|
|
1604
|
+
/** Same-turn captured caller authority for Workflows and lazy Sandbox APIs. */
|
|
1605
|
+
runtimeCredentialHandle?: string;
|
|
1606
|
+
/**
|
|
1607
|
+
* Same-turn execution handles by alias, including inference and any pinned
|
|
1608
|
+
* tool or repository capabilities. Each retains its existing permission gate.
|
|
1609
|
+
*/
|
|
1610
|
+
credentials?: Record<string, CredentialBinding>;
|
|
968
1611
|
}
|
|
969
1612
|
/**
|
|
970
1613
|
* SessionUsage is what a session has used. Model tokens are on the Sylphx AI
|
|
@@ -978,6 +1621,24 @@ export interface SessionUsage {
|
|
|
978
1621
|
/** Spend so far in micro-USD, models and tools together. */
|
|
979
1622
|
readonly spendMicros?: string;
|
|
980
1623
|
}
|
|
1624
|
+
/** Runtime input produced by consuming actual wait owners, not a user message. */
|
|
1625
|
+
export interface SessionWaitContinuation {
|
|
1626
|
+
/** Conserved wait snapshots and observed evidence for this exact turn. */
|
|
1627
|
+
readonly waits?: AgentSessionWait[];
|
|
1628
|
+
}
|
|
1629
|
+
/** The request of SettleAgentSessionGoal. */
|
|
1630
|
+
export interface SettleAgentSessionGoalRequest {
|
|
1631
|
+
/** The exact Goal name. */
|
|
1632
|
+
name: string;
|
|
1633
|
+
/** The acceptance-contract version observed by the caller. */
|
|
1634
|
+
expectedVersion: number;
|
|
1635
|
+
/** Only COMPLETED and FAILED settle a Goal. Waiting is not success. */
|
|
1636
|
+
state: GoalState;
|
|
1637
|
+
/** An actual observation at the delivered environment surface. */
|
|
1638
|
+
receipt: SessionGoalReceipt;
|
|
1639
|
+
/** Caller-stable mutation identity, nonempty and at most 128 bytes. */
|
|
1640
|
+
operationId: string;
|
|
1641
|
+
}
|
|
981
1642
|
/**
|
|
982
1643
|
* A Skill is an instruction pack the agent loads when its description
|
|
983
1644
|
* matches the task.
|
|
@@ -1003,6 +1664,33 @@ export interface SteerAgentSessionRequest {
|
|
|
1003
1664
|
name: string;
|
|
1004
1665
|
/** The message, 1 to 64 parts. */
|
|
1005
1666
|
message: Message;
|
|
1667
|
+
/**
|
|
1668
|
+
* Captured authority for a new hosted turn. Required when starting a turn
|
|
1669
|
+
* with the hosted runtime; an active-turn steer must omit it. Admission
|
|
1670
|
+
* checks the exact turn and pins these inputs atomically with the message.
|
|
1671
|
+
*/
|
|
1672
|
+
execution?: SessionTurnExecution;
|
|
1673
|
+
}
|
|
1674
|
+
/** Observed per-step accounting. Exact decimal USD avoids binary rounding. */
|
|
1675
|
+
export interface StepUsage {
|
|
1676
|
+
/** Uncached input tokens the step was charged for; absent when unknown. */
|
|
1677
|
+
readonly inputTokens?: string;
|
|
1678
|
+
/** Input tokens served from the provider cache; absent when unknown. */
|
|
1679
|
+
readonly cachedTokens?: string;
|
|
1680
|
+
/** Output tokens; absent when unknown. */
|
|
1681
|
+
readonly outputTokens?: string;
|
|
1682
|
+
/** The exact decimal USD charge the gateway reported; absent when unknown. */
|
|
1683
|
+
readonly costUsd?: string;
|
|
1684
|
+
/** The catalog id the step ran on; empty for a step with no inference. */
|
|
1685
|
+
readonly model?: string;
|
|
1686
|
+
/** `model`, `tool`, `compaction` or `subcall`. */
|
|
1687
|
+
readonly kind?: string;
|
|
1688
|
+
/**
|
|
1689
|
+
* For a model step: when the runtime received the stream's first non-empty
|
|
1690
|
+
* assistant text or tool-call delta (not a role-only or empty chunk), on
|
|
1691
|
+
* the runtime's clock, from the attempt that produced the recorded step.
|
|
1692
|
+
*/
|
|
1693
|
+
readonly firstDeltaTime?: string;
|
|
1006
1694
|
}
|
|
1007
1695
|
/** The request of SubmitAgentSessionToolResult. */
|
|
1008
1696
|
export interface SubmitAgentSessionToolResultRequest {
|
|
@@ -1030,7 +1718,7 @@ export interface Tool {
|
|
|
1030
1718
|
inputSchema?: Record<string, unknown>;
|
|
1031
1719
|
/**
|
|
1032
1720
|
* A platform tool: `shell`, `files`, `browser`, `computer`, `web_fetch`,
|
|
1033
|
-
* `web_search` or `
|
|
1721
|
+
* `web_search`, `remember`, `recall`, `knowledge_search` or `skill_load`.
|
|
1034
1722
|
*/
|
|
1035
1723
|
builtin?: BuiltinTool;
|
|
1036
1724
|
/** An HTTP API described by OpenAPI. */
|
|
@@ -1045,6 +1733,11 @@ export interface Tool {
|
|
|
1045
1733
|
* event (`:submitToolResult`).
|
|
1046
1734
|
*/
|
|
1047
1735
|
client?: ClientTool;
|
|
1736
|
+
/**
|
|
1737
|
+
* Called only by the runtime, as a run's `completion` or `renewal` tool:
|
|
1738
|
+
* never offered to the model, which cannot call it.
|
|
1739
|
+
*/
|
|
1740
|
+
runtimeOnly?: boolean;
|
|
1048
1741
|
}
|
|
1049
1742
|
/**
|
|
1050
1743
|
* A ToolCall is the agent asking to call a tool. `id` is assigned by the
|
|
@@ -1060,8 +1753,16 @@ export interface ToolCall {
|
|
|
1060
1753
|
readonly input?: Record<string, unknown>;
|
|
1061
1754
|
/** The model's own id for the call, as sent; never used as a key. */
|
|
1062
1755
|
readonly modelCallId?: string;
|
|
1063
|
-
/**
|
|
1756
|
+
/**
|
|
1757
|
+
* Whether the client must execute this pending call. Calls rejected before
|
|
1758
|
+
* dispatch remain in history with this false and a corresponding ToolResult.
|
|
1759
|
+
*/
|
|
1064
1760
|
readonly client?: boolean;
|
|
1761
|
+
/**
|
|
1762
|
+
* The client call's fixed deadline. A reconnecting client never starts a
|
|
1763
|
+
* call after this time; retries retain the original deadline and call id.
|
|
1764
|
+
*/
|
|
1765
|
+
readonly deadline?: string;
|
|
1065
1766
|
}
|
|
1066
1767
|
/** The request for the tools available to a session execution capability. */
|
|
1067
1768
|
export interface ToolCatalogRequest {
|
|
@@ -1134,6 +1835,11 @@ export interface TurnResult {
|
|
|
1134
1835
|
readonly costMicros?: string;
|
|
1135
1836
|
/** How long the turn ran. */
|
|
1136
1837
|
readonly duration?: string;
|
|
1838
|
+
/**
|
|
1839
|
+
* The first non-empty assistant text or tool-call delta of the turn: the
|
|
1840
|
+
* earliest `first_delta_time` of its recorded model steps.
|
|
1841
|
+
*/
|
|
1842
|
+
readonly firstDeltaTime?: string;
|
|
1137
1843
|
}
|
|
1138
1844
|
/** TurnTokenUsage is the model token usage reported for a completed turn. */
|
|
1139
1845
|
export interface TurnTokenUsage {
|
|
@@ -1177,20 +1883,42 @@ export interface UpdateMemoryStoreRequest {
|
|
|
1177
1883
|
/** Validate and return the result without writing anything. */
|
|
1178
1884
|
validateOnly?: boolean;
|
|
1179
1885
|
}
|
|
1886
|
+
/** The request of UpdateOwnerPool. */
|
|
1887
|
+
export interface UpdateOwnerPoolRequest {
|
|
1888
|
+
/** The owner pool to update; `name` identifies it. */
|
|
1889
|
+
ownerPool: OwnerPool;
|
|
1890
|
+
/** The fields to write: `spec`, `meta` or both; unset writes both. */
|
|
1891
|
+
updateMask?: string;
|
|
1892
|
+
}
|
|
1893
|
+
/** The request of WriteAgentSessionTransferPart. */
|
|
1894
|
+
export interface WriteAgentSessionTransferPartRequest {
|
|
1895
|
+
/** Exact transfer name. */
|
|
1896
|
+
name: string;
|
|
1897
|
+
/** Zero-based declared part index. */
|
|
1898
|
+
index: string;
|
|
1899
|
+
/** Base64 on the JSON wire; exact binary bytes, at most 256 KiB decoded. */
|
|
1900
|
+
data: string;
|
|
1901
|
+
}
|
|
1180
1902
|
/** ApprovalDecision is a person's answer to an approval. */
|
|
1181
1903
|
export type ApprovalDecision = 'approve' | 'reject' | (string & {});
|
|
1904
|
+
/** An authenticated owner action; model-generated evidence cannot grant it. */
|
|
1905
|
+
export type GoalControlAction = 'pause' | 'resume' | 'amend' | (string & {});
|
|
1906
|
+
/** Goal lifecycle, independent of optional Task dispatch and execution controls. */
|
|
1907
|
+
export type GoalState = 'working' | 'waiting' | 'completed' | 'failed' | (string & {});
|
|
1182
1908
|
/** MemoryScope is whose memories a store keeps apart. */
|
|
1183
1909
|
export type MemoryScope = 'project' | 'agent' | 'end_user' | (string & {});
|
|
1184
1910
|
/** MemorySource is who wrote a memory. */
|
|
1185
1911
|
export type MemorySource = 'agent' | 'api' | 'import' | (string & {});
|
|
1912
|
+
/** The standing of an OwnerPool member. */
|
|
1913
|
+
export type OwnerPoolMemberState = 'qualified' | 'refused' | 'demoted' | (string & {});
|
|
1186
1914
|
/** PolicyDecision is what the tool policy does with a call. */
|
|
1187
1915
|
export type PolicyDecision = 'allow' | 'deny' | 'ask' | (string & {});
|
|
1188
1916
|
/** Runtime-produced fields mapped into an authorized completion tool call. */
|
|
1189
|
-
export type ResultField = 'text' | 'done' | 'next' | 'where' | 'outcome' | (string & {});
|
|
1917
|
+
export type ResultField = 'text' | 'done' | 'next' | 'where' | 'outcome' | 'awaits' | 'checkpoint' | 'counted' | 'retry_at' | (string & {});
|
|
1190
1918
|
/** SessionEventType is what a session event records. */
|
|
1191
|
-
export type SessionEventType = 'user_message' | 'steer' | 'agent_message' | 'tool_call' | 'tool_result' | 'approval_requested' | 'approval_decided' | 'status' | 'compaction' | 'thought' | 'file_change' | 'response' | 'error' | (string & {});
|
|
1919
|
+
export type SessionEventType = 'user_message' | 'steer' | 'agent_message' | 'tool_call' | 'tool_result' | 'approval_requested' | 'approval_decided' | 'status' | 'compaction' | 'thought' | 'file_change' | 'response' | 'error' | 'usage' | 'sandbox' | 'wait_changed' | 'wait_continuation' | (string & {});
|
|
1192
1920
|
/** SessionState is where a session is. */
|
|
1193
|
-
export type SessionState = 'idle' | 'running' | 'awaiting_approval' | 'awaiting_client' | 'failed' | (string & {});
|
|
1921
|
+
export type SessionState = 'idle' | 'running' | 'awaiting_approval' | 'awaiting_client' | 'failed' | 'archived' | (string & {});
|
|
1194
1922
|
/**
|
|
1195
1923
|
* AgentsService is Sylphx Agents, the platform's hosted agent runtime
|
|
1196
1924
|
* (ADR-01M495TCCBZGSQ68A4P4G428H2). Apps call it instead of building their
|
|
@@ -1198,27 +1926,101 @@ export type SessionState = 'idle' | 'running' | 'awaiting_approval' | 'awaiting_
|
|
|
1198
1926
|
*
|
|
1199
1927
|
* Scopes: `agents:read` and `agents:write` manage agents, versions and
|
|
1200
1928
|
* memory stores with a secret key. `agents:sessions` runs sessions and reads
|
|
1201
|
-
* and deletes session and memory records.
|
|
1202
|
-
*
|
|
1203
|
-
*
|
|
1929
|
+
* and deletes session and memory records. `agents:admin` governs owner pools
|
|
1930
|
+
* (their admission minimums and demotion rules); no wildcard reaches it.
|
|
1931
|
+
* `agents:qualify` records admission-suite results and live metrics for
|
|
1932
|
+
* owner pool members: a grader's grant, held only by name, and refused to the
|
|
1933
|
+
* principal whose create or update minted the version. All methods
|
|
1934
|
+
* currently require a secret key. Publishable-key access is deferred until
|
|
1935
|
+
* the backend enforces end-user ownership of sessions and memories and
|
|
1936
|
+
* `end_user_access` on Agents.
|
|
1204
1937
|
* Credential actions capture existing grants; handles are not CRUD resources.
|
|
1205
1938
|
*
|
|
1206
1939
|
* Namespace of Sylphx Agents on `Sylphx`.
|
|
1207
1940
|
*/
|
|
1208
1941
|
export declare class AgentsApi {
|
|
1942
|
+
/** The `transfers` collection. */
|
|
1943
|
+
readonly transfers: TransfersCollection;
|
|
1209
1944
|
/** The `agents` collection. */
|
|
1210
1945
|
readonly agents: AgentsCollection;
|
|
1211
1946
|
/** The `agent_versions` collection. */
|
|
1212
1947
|
readonly agentVersions: AgentVersionsCollection;
|
|
1213
1948
|
/** The `agent_sessions` collection. */
|
|
1214
1949
|
readonly agentSessions: AgentSessionsCollection;
|
|
1950
|
+
/** The `goals` collection. */
|
|
1951
|
+
readonly goals: GoalsCollection;
|
|
1952
|
+
/** The `waits` collection. */
|
|
1953
|
+
readonly waits: WaitsCollection;
|
|
1954
|
+
/** The `queued_executions` collection. */
|
|
1955
|
+
readonly queuedExecutions: QueuedExecutionsCollection;
|
|
1215
1956
|
/** The `session_events` collection. */
|
|
1216
1957
|
readonly sessionEvents: SessionEventsCollection;
|
|
1217
1958
|
/** The `memory_stores` collection. */
|
|
1218
1959
|
readonly memoryStores: MemoryStoresCollection;
|
|
1219
1960
|
/** The `memories` collection. */
|
|
1220
1961
|
readonly memories: MemoriesCollection;
|
|
1962
|
+
/** The `owner_pools` collection. */
|
|
1963
|
+
readonly ownerPools: OwnerPoolsCollection;
|
|
1964
|
+
constructor(client: runtime.Client);
|
|
1965
|
+
}
|
|
1966
|
+
/** `transfers` of Sylphx Agents: Resource type `agents.sylphx.com/AgentSessionTransfer`. */
|
|
1967
|
+
export declare class TransfersCollection {
|
|
1968
|
+
private readonly client;
|
|
1221
1969
|
constructor(client: runtime.Client);
|
|
1970
|
+
/**
|
|
1971
|
+
* Stages a uniquely identified source epoch on an empty idle Session.
|
|
1972
|
+
* The source adapter must already hold its durable one-writer fence.
|
|
1973
|
+
*
|
|
1974
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/agent_sessions/*}/transfers:begin` · permission `agents:sessions` · effect `write`
|
|
1975
|
+
*
|
|
1976
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`.
|
|
1977
|
+
*/
|
|
1978
|
+
begin(request: BeginAgentSessionTransferRequest): Promise<AgentSessionTransfer>;
|
|
1979
|
+
/**
|
|
1980
|
+
* Returns hashes and original/destination mappings, never private payload.
|
|
1981
|
+
*
|
|
1982
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/transfers/*}` · permission `agents:sessions` · effect `read`
|
|
1983
|
+
*
|
|
1984
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
|
|
1985
|
+
*/
|
|
1986
|
+
get(request: GetAgentSessionTransferRequest): Promise<AgentSessionTransfer>;
|
|
1987
|
+
/**
|
|
1988
|
+
* Stores at most 256 KiB of exact bytes under its declared part digest.
|
|
1989
|
+
* An acknowledgement loss can repeat the identical part without mutation.
|
|
1990
|
+
*
|
|
1991
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/transfers/*}:writePart` · permission `agents:sessions` · effect `write`
|
|
1992
|
+
*
|
|
1993
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`.
|
|
1994
|
+
*/
|
|
1995
|
+
writePart(request: WriteAgentSessionTransferPartRequest): Promise<SessionTransferPart>;
|
|
1996
|
+
/**
|
|
1997
|
+
* Re-reads ordered parts, checks the whole snapshot and validates the
|
|
1998
|
+
* portable state. An unknown effect stays held; this call never executes.
|
|
1999
|
+
*
|
|
2000
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/transfers/*}:finalize` · permission `agents:sessions` · effect `write`
|
|
2001
|
+
*
|
|
2002
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2003
|
+
*/
|
|
2004
|
+
finalize(request: FinalizeAgentSessionTransferRequest): Promise<AgentSessionTransfer>;
|
|
2005
|
+
/**
|
|
2006
|
+
* After the source durably records the exact verified receipt under its
|
|
2007
|
+
* writer fence, atomically projects conserved state without starting a turn.
|
|
2008
|
+
* Unknown outcomes or incompatible pinned model context remain held.
|
|
2009
|
+
*
|
|
2010
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/transfers/*}:adopt` · permission `agents:sessions` · effect `write`
|
|
2011
|
+
*
|
|
2012
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2013
|
+
*/
|
|
2014
|
+
adopt(request: AdoptAgentSessionTransferRequest): Promise<AgentSessionTransfer>;
|
|
2015
|
+
/**
|
|
2016
|
+
* Releases only a destination that has not adopted source state. Immutable
|
|
2017
|
+
* source bytes/epoch remain retained; source writer release is app-owned.
|
|
2018
|
+
*
|
|
2019
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/transfers/*}:abort` · permission `agents:sessions` · effect `write`
|
|
2020
|
+
*
|
|
2021
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`.
|
|
2022
|
+
*/
|
|
2023
|
+
abort(request: AbortAgentSessionTransferRequest): Promise<AgentSessionTransfer>;
|
|
1222
2024
|
}
|
|
1223
2025
|
/** `agents` of Sylphx Agents: Resource type `agents.sylphx.com/Agent`. */
|
|
1224
2026
|
export declare class AgentsCollection {
|
|
@@ -1297,7 +2099,7 @@ export declare class AgentsCollection {
|
|
|
1297
2099
|
*
|
|
1298
2100
|
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agents/*}:run` · permission `agents:sessions` · effect `write`
|
|
1299
2101
|
*
|
|
1300
|
-
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`, `SPEND_LIMIT_REACHED`.
|
|
2102
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`, `SPEND_LIMIT_REACHED`, `INVALID_STATE`.
|
|
1301
2103
|
*/
|
|
1302
2104
|
run(request: RunAgentRequest): Promise<RunAgentResponse>;
|
|
1303
2105
|
}
|
|
@@ -1385,6 +2187,34 @@ export declare class AgentSessionsCollection {
|
|
|
1385
2187
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_STATE`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1386
2188
|
*/
|
|
1387
2189
|
delete(request: DeleteAgentSessionRequest): Promise<Record<string, never>>;
|
|
2190
|
+
/**
|
|
2191
|
+
* Archives a session: the session and its event log stay readable, but no
|
|
2192
|
+
* new turn may start and the session's captured credential handles are
|
|
2193
|
+
* revoked. An idle or failed session archives at once; a running turn is
|
|
2194
|
+
* refused with `INVALID_STATE` (interrupt it first). Repeating the call
|
|
2195
|
+
* with the same `Idempotency-Key` returns the same session.
|
|
2196
|
+
*
|
|
2197
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*}:archive` · permission `agents:sessions` · effect `write`
|
|
2198
|
+
*
|
|
2199
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2200
|
+
*/
|
|
2201
|
+
archive(request: ArchiveAgentSessionRequest): Promise<AgentSession>;
|
|
2202
|
+
/**
|
|
2203
|
+
* Explicitly reserves existing captured authority for one future turn, without executing it.
|
|
2204
|
+
*
|
|
2205
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*}:queueExecution` · permission `agents:sessions` · effect `write`
|
|
2206
|
+
*
|
|
2207
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2208
|
+
*/
|
|
2209
|
+
queueExecution(request: QueueAgentSessionExecutionRequest): Promise<QueuedSessionExecution>;
|
|
2210
|
+
/**
|
|
2211
|
+
* Consumes all ready owners atomically with fresh exact-next-turn authority.
|
|
2212
|
+
*
|
|
2213
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*}:resume` · permission `agents:sessions` · effect `write`
|
|
2214
|
+
*
|
|
2215
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2216
|
+
*/
|
|
2217
|
+
resume(request: ResumeAgentSessionRequest): Promise<SessionEvent>;
|
|
1388
2218
|
/**
|
|
1389
2219
|
* Sends a user message. On an idle or failed session it starts a new turn;
|
|
1390
2220
|
* while a turn runs it is refused with `INVALID_STATE` (use `:steer`).
|
|
@@ -1430,6 +2260,115 @@ export declare class AgentSessionsCollection {
|
|
|
1430
2260
|
*/
|
|
1431
2261
|
submitToolResult(request: SubmitAgentSessionToolResultRequest): Promise<SessionEvent>;
|
|
1432
2262
|
}
|
|
2263
|
+
/** `goals` of Sylphx Agents: Resource type `agents.sylphx.com/AgentSessionGoal`. */
|
|
2264
|
+
export declare class GoalsCollection {
|
|
2265
|
+
private readonly client;
|
|
2266
|
+
constructor(client: runtime.Client);
|
|
2267
|
+
/**
|
|
2268
|
+
* Creates an optional objective owned by this Session, without an external Task.
|
|
2269
|
+
* The operation_id keeps the original receipt beyond request replay expiry.
|
|
2270
|
+
*
|
|
2271
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/agent_sessions/*}/goals` · permission `agents:sessions` · effect `write`
|
|
2272
|
+
*
|
|
2273
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2274
|
+
*/
|
|
2275
|
+
create(request: CreateAgentSessionGoalRequest): Promise<AgentSessionGoal>;
|
|
2276
|
+
/**
|
|
2277
|
+
* Reads the exact Goal, including its terminal receipt after a successor starts.
|
|
2278
|
+
*
|
|
2279
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/goals/*}` · permission `agents:sessions` · effect `read`
|
|
2280
|
+
*
|
|
2281
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
|
|
2282
|
+
*/
|
|
2283
|
+
get(request: GetAgentSessionGoalRequest): Promise<AgentSessionGoal>;
|
|
2284
|
+
/**
|
|
2285
|
+
* Settles only the named Goal/version with an observed environment receipt.
|
|
2286
|
+
* Replaying operation_id returns its original receipt, never its successor.
|
|
2287
|
+
*
|
|
2288
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/goals/*}:settle` · permission `agents:sessions` · effect `write`
|
|
2289
|
+
*
|
|
2290
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2291
|
+
*/
|
|
2292
|
+
settle(request: SettleAgentSessionGoalRequest): Promise<AgentSessionGoal>;
|
|
2293
|
+
/**
|
|
2294
|
+
* Applies an explicit owner control to this exact Goal/version. Pause
|
|
2295
|
+
* interrupts only its current execution; resume does not resolve a wait or
|
|
2296
|
+
* clear observed usage. Amend changes only supplied objective/budget fields.
|
|
2297
|
+
*
|
|
2298
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/goals/*}:control` · permission `agents:sessions` · effect `write`
|
|
2299
|
+
*
|
|
2300
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2301
|
+
*/
|
|
2302
|
+
control(request: ControlAgentSessionGoalRequest): Promise<AgentSessionGoal>;
|
|
2303
|
+
}
|
|
2304
|
+
/** `waits` of Sylphx Agents: Resource type `agents.sylphx.com/AgentSessionWait`. */
|
|
2305
|
+
export declare class WaitsCollection {
|
|
2306
|
+
private readonly client;
|
|
2307
|
+
constructor(client: runtime.Client);
|
|
2308
|
+
/**
|
|
2309
|
+
* Creates a durable wait on an idle Session, with permanent operation replay.
|
|
2310
|
+
*
|
|
2311
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/agent_sessions/*}/waits` · permission `agents:sessions` · effect `write`
|
|
2312
|
+
*
|
|
2313
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2314
|
+
*/
|
|
2315
|
+
create(request: CreateAgentSessionWaitRequest): Promise<AgentSessionWait>;
|
|
2316
|
+
/**
|
|
2317
|
+
* Reads an exact wait and its retained evidence.
|
|
2318
|
+
*
|
|
2319
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/waits/*}` · permission `agents:sessions` · effect `read`
|
|
2320
|
+
*
|
|
2321
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
|
|
2322
|
+
*/
|
|
2323
|
+
get(request: GetAgentSessionWaitRequest): Promise<AgentSessionWait>;
|
|
2324
|
+
/**
|
|
2325
|
+
* Lists durable waits, including ready undelivered owners.
|
|
2326
|
+
*
|
|
2327
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/agent_sessions/*}/waits` · permission `agents:sessions` · effect `read`
|
|
2328
|
+
*
|
|
2329
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
2330
|
+
*/
|
|
2331
|
+
list(request: ListAgentSessionWaitsRequest): Promise<ListAgentSessionWaitsResponse>;
|
|
2332
|
+
/** Every item of every page of `list`. */
|
|
2333
|
+
listAll(request: ListAgentSessionWaitsRequest): AsyncGenerator<AgentSessionWait>;
|
|
2334
|
+
/**
|
|
2335
|
+
* Records observed signal evidence or checks a timer against its actual due time.
|
|
2336
|
+
*
|
|
2337
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/waits/*}:resolve` · permission `agents:sessions` · effect `write`
|
|
2338
|
+
*
|
|
2339
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2340
|
+
*/
|
|
2341
|
+
resolve(request: ResolveAgentSessionWaitRequest): Promise<AgentSessionWait>;
|
|
2342
|
+
/**
|
|
2343
|
+
* Cancels only this exact undelivered wait; repeated operations retain receipts.
|
|
2344
|
+
*
|
|
2345
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/waits/*}:cancel` · permission `agents:sessions` · effect `write`
|
|
2346
|
+
*
|
|
2347
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2348
|
+
*/
|
|
2349
|
+
cancel(request: CancelAgentSessionWaitRequest): Promise<AgentSessionWait>;
|
|
2350
|
+
}
|
|
2351
|
+
/** `queued_executions` of Sylphx Agents: Resource type `agents.sylphx.com/QueuedSessionExecution`. */
|
|
2352
|
+
export declare class QueuedExecutionsCollection {
|
|
2353
|
+
private readonly client;
|
|
2354
|
+
constructor(client: runtime.Client);
|
|
2355
|
+
/**
|
|
2356
|
+
* Reads the state of an exact future-turn authorization.
|
|
2357
|
+
*
|
|
2358
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/queued_executions/*}` · permission `agents:sessions` · effect `read`
|
|
2359
|
+
*
|
|
2360
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
|
|
2361
|
+
*/
|
|
2362
|
+
get(request: GetQueuedSessionExecutionRequest): Promise<QueuedSessionExecution>;
|
|
2363
|
+
/**
|
|
2364
|
+
* Cancels only a queued future execution; an already admitted turn retains its receipt.
|
|
2365
|
+
*
|
|
2366
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/agent_sessions/*\/queued_executions/*}:cancel` · permission `agents:sessions` · effect `write`
|
|
2367
|
+
*
|
|
2368
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2369
|
+
*/
|
|
2370
|
+
cancel(request: CancelQueuedSessionExecutionRequest): Promise<QueuedSessionExecution>;
|
|
2371
|
+
}
|
|
1433
2372
|
/** `session_events` of Sylphx Agents: Resource type `agents.sylphx.com/SessionEvent`. */
|
|
1434
2373
|
export declare class SessionEventsCollection {
|
|
1435
2374
|
private readonly client;
|
|
@@ -1562,3 +2501,86 @@ export declare class MemoriesCollection {
|
|
|
1562
2501
|
*/
|
|
1563
2502
|
search(request: SearchMemoriesRequest): Promise<SearchMemoriesResponse>;
|
|
1564
2503
|
}
|
|
2504
|
+
/** `owner_pools` of Sylphx Agents: Resource type `agents.sylphx.com/OwnerPool`. */
|
|
2505
|
+
export declare class OwnerPoolsCollection {
|
|
2506
|
+
private readonly client;
|
|
2507
|
+
constructor(client: runtime.Client);
|
|
2508
|
+
/**
|
|
2509
|
+
* Gets an owner pool with its members.
|
|
2510
|
+
*
|
|
2511
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/owner_pools/*}` · permission `agents:read` · effect `read`
|
|
2512
|
+
*
|
|
2513
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
2514
|
+
*/
|
|
2515
|
+
get(request: GetOwnerPoolRequest): Promise<OwnerPool>;
|
|
2516
|
+
/**
|
|
2517
|
+
* Lists owner pools, newest first.
|
|
2518
|
+
*
|
|
2519
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/owner_pools` · permission `agents:read` · effect `read`
|
|
2520
|
+
*
|
|
2521
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
2522
|
+
*/
|
|
2523
|
+
list(request: ListOwnerPoolsRequest): Promise<ListOwnerPoolsResponse>;
|
|
2524
|
+
/** Every item of every page of `list`. */
|
|
2525
|
+
listAll(request: ListOwnerPoolsRequest): AsyncGenerator<OwnerPool>;
|
|
2526
|
+
/**
|
|
2527
|
+
* Creates an owner pool with no members. Its minimums and demotion rules
|
|
2528
|
+
* are governance, so the caller needs `agents:admin`.
|
|
2529
|
+
*
|
|
2530
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/owner_pools` · permission `agents:admin` · effect `write`
|
|
2531
|
+
*
|
|
2532
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2533
|
+
*/
|
|
2534
|
+
create(request: CreateOwnerPoolRequest): Promise<OwnerPool>;
|
|
2535
|
+
/**
|
|
2536
|
+
* Replaces an owner pool's spec (`agents:admin`). Members keep their
|
|
2537
|
+
* standing; a changed suite or minimum applies from the next `:qualify`.
|
|
2538
|
+
*
|
|
2539
|
+
* `PATCH /v1/{owner_pool.name=orgs/*\/projects/*\/envs/*\/owner_pools/*}` · permission `agents:admin` · effect `write`
|
|
2540
|
+
*
|
|
2541
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2542
|
+
*/
|
|
2543
|
+
update(request: UpdateOwnerPoolRequest): Promise<OwnerPool>;
|
|
2544
|
+
/**
|
|
2545
|
+
* Deletes an owner pool and its members (`agents:admin`). Sessions already
|
|
2546
|
+
* admitted keep running.
|
|
2547
|
+
*
|
|
2548
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/owner_pools/*}` · permission `agents:admin` · effect `destructive`
|
|
2549
|
+
*
|
|
2550
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2551
|
+
*/
|
|
2552
|
+
delete(request: DeleteOwnerPoolRequest): Promise<Record<string, never>>;
|
|
2553
|
+
/**
|
|
2554
|
+
* Records an admission suite result for an Agent version. The caller holds
|
|
2555
|
+
* `agents:qualify` and is not the principal whose create or update minted
|
|
2556
|
+
* the version (`PERMISSION_DENIED`). Every minimum
|
|
2557
|
+
* met: the member is `QUALIFIED`. Any score missing or below its minimum:
|
|
2558
|
+
* the member is recorded `REFUSED` with the reason. Each qualification is
|
|
2559
|
+
* recorded with its suite, suite version, result and caller; a `result`
|
|
2560
|
+
* already recorded for the member is refused with `INVALID_FIELD`, so a
|
|
2561
|
+
* demoted member returns only with a new suite result. A read-only version
|
|
2562
|
+
* is refused with `PERMISSION_DENIED`; a suite or suite version other than
|
|
2563
|
+
* the pool's with `INVALID_FIELD`. Re-qualifying keeps the member's
|
|
2564
|
+
* baseline: the baseline belongs to the version and its pinned model.
|
|
2565
|
+
*
|
|
2566
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/owner_pools/*}:qualify` · permission `agents:qualify` · effect `write`
|
|
2567
|
+
*
|
|
2568
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2569
|
+
*/
|
|
2570
|
+
qualify(request: QualifyOwnerPoolMemberRequest): Promise<OwnerPoolMember>;
|
|
2571
|
+
/**
|
|
2572
|
+
* Records a live-metric observation for a member and applies the pool's
|
|
2573
|
+
* demotion rules (`agents:qualify`, refused to the version's authors as in
|
|
2574
|
+
* `:qualify`). The platform computes each rule's baseline: the median of
|
|
2575
|
+
* the member's first `baseline_observations` counted observations of the
|
|
2576
|
+
* metric, set only when it is finite and positive. Values of a rule metric
|
|
2577
|
+
* are lower-is-better and must not be negative. Once the baseline is set, a
|
|
2578
|
+
* metric past `baseline * (1 + max_regression)` demotes a qualified member.
|
|
2579
|
+
* Only `:qualify` brings a demoted member back.
|
|
2580
|
+
*
|
|
2581
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/owner_pools/*}:observe` · permission `agents:qualify` · effect `write`
|
|
2582
|
+
*
|
|
2583
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2584
|
+
*/
|
|
2585
|
+
observe(request: ObserveOwnerPoolMemberRequest): Promise<OwnerPoolMember>;
|
|
2586
|
+
}
|