@labelbox/recursion-sdk 0.0.164 → 0.0.165
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.
|
@@ -562,6 +562,7 @@ export declare class ManagedAgents extends HeyApiClient {
|
|
|
562
562
|
after_event_id?: string;
|
|
563
563
|
limit?: number;
|
|
564
564
|
hydrate?: 'images';
|
|
565
|
+
image_urls?: 'signed';
|
|
565
566
|
payloads?: 'refs';
|
|
566
567
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetManagedAgentsV1SessionsBySessionIdEventsResponses, GetManagedAgentsV1SessionsBySessionIdEventsErrors, ThrowOnError, "data">;
|
|
567
568
|
/**
|
|
@@ -646,6 +647,7 @@ export declare class ManagedAgents extends HeyApiClient {
|
|
|
646
647
|
getSessionTree<ThrowOnError extends boolean = false>(parameters: {
|
|
647
648
|
session_id: string;
|
|
648
649
|
hydrate?: 'images';
|
|
650
|
+
image_urls?: 'signed';
|
|
649
651
|
payloads?: 'refs';
|
|
650
652
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetManagedAgentsV1SessionsBySessionIdTreeResponses, GetManagedAgentsV1SessionsBySessionIdTreeErrors, ThrowOnError, "data">;
|
|
651
653
|
/**
|
|
@@ -1068,6 +1068,7 @@ export class ManagedAgents extends HeyApiClient {
|
|
|
1068
1068
|
{ in: 'query', key: 'after_event_id' },
|
|
1069
1069
|
{ in: 'query', key: 'limit' },
|
|
1070
1070
|
{ in: 'query', key: 'hydrate' },
|
|
1071
|
+
{ in: 'query', key: 'image_urls' },
|
|
1071
1072
|
{ in: 'query', key: 'payloads' }
|
|
1072
1073
|
] }]);
|
|
1073
1074
|
return (options?.client ?? this.client).get({
|
|
@@ -1229,6 +1230,7 @@ export class ManagedAgents extends HeyApiClient {
|
|
|
1229
1230
|
const params = buildClientParams([parameters], [{ args: [
|
|
1230
1231
|
{ in: 'path', key: 'session_id' },
|
|
1231
1232
|
{ in: 'query', key: 'hydrate' },
|
|
1233
|
+
{ in: 'query', key: 'image_urls' },
|
|
1232
1234
|
{ in: 'query', key: 'payloads' }
|
|
1233
1235
|
] }]);
|
|
1234
1236
|
return (options?.client ?? this.client).get({
|
|
@@ -8130,6 +8130,14 @@ export type ManagedAgentsContentBlock = {
|
|
|
8130
8130
|
* Private typed content reference. Fetch through the authenticated session image proxy; clients cannot read this gs:// URI directly.
|
|
8131
8131
|
*/
|
|
8132
8132
|
uri?: string;
|
|
8133
|
+
/**
|
|
8134
|
+
* Short-lived HTTPS URL for the image bytes. Present only when the read asked for image_urls=signed and the deployment has signing configured. Never stored; fetch a fresh read after url_expires_at.
|
|
8135
|
+
*/
|
|
8136
|
+
url?: string;
|
|
8137
|
+
/**
|
|
8138
|
+
* When url stops working. Absent whenever url is.
|
|
8139
|
+
*/
|
|
8140
|
+
url_expires_at?: unknown;
|
|
8133
8141
|
/**
|
|
8134
8142
|
* Validated image width in pixels.
|
|
8135
8143
|
*/
|
|
@@ -26727,6 +26735,10 @@ export type GetManagedAgentsV1SessionsBySessionIdEventsData = {
|
|
|
26727
26735
|
* Opt-in compatibility mode. images rehydrates private image refs under strict response caps; omitted by default.
|
|
26728
26736
|
*/
|
|
26729
26737
|
hydrate?: 'images';
|
|
26738
|
+
/**
|
|
26739
|
+
* Set to signed to add a short-lived url (and url_expires_at) to every stored image block the caller may read. Omitted when the deployment has no URL signing configured; the authenticated /images proxy always works.
|
|
26740
|
+
*/
|
|
26741
|
+
image_urls?: 'signed';
|
|
26730
26742
|
/**
|
|
26731
26743
|
* External event payloads hydrate by default. Set refs to return bounded stubs and private reference metadata only.
|
|
26732
26744
|
*/
|
|
@@ -27230,6 +27242,10 @@ export type GetManagedAgentsV1SessionsBySessionIdTreeData = {
|
|
|
27230
27242
|
* Opt-in compatibility mode. images rehydrates private image refs under strict response caps; omitted by default.
|
|
27231
27243
|
*/
|
|
27232
27244
|
hydrate?: 'images';
|
|
27245
|
+
/**
|
|
27246
|
+
* Set to signed to add a short-lived url (and url_expires_at) to every stored image block the caller may read. Omitted when the deployment has no URL signing configured; the authenticated /images proxy always works.
|
|
27247
|
+
*/
|
|
27248
|
+
image_urls?: 'signed';
|
|
27233
27249
|
/**
|
|
27234
27250
|
* External event payloads hydrate by default. Set refs to return bounded stubs and private reference metadata only.
|
|
27235
27251
|
*/
|
|
@@ -51960,7 +51960,7 @@ export const SDK_REFERENCE = {
|
|
|
51960
51960
|
namespace: 'managedAgents',
|
|
51961
51961
|
method: 'getSessionTree',
|
|
51962
51962
|
signature: 'rl.managedAgents.getSessionTree({ session_id })',
|
|
51963
|
-
example: "const result = await rl.managedAgents.getSessionTree({\n session_id: '<session_id>',\n // optional: hydrate, payloads\n});",
|
|
51963
|
+
example: "const result = await rl.managedAgents.getSessionTree({\n session_id: '<session_id>',\n // optional: hydrate, image_urls, payloads\n});",
|
|
51964
51964
|
cliInvocation: 'rl managed-agents get-session-tree',
|
|
51965
51965
|
cliExample: 'rl managed-agents get-session-tree \\\n --session_id <session_id>',
|
|
51966
51966
|
curlExample: "curl -X GET 'https://api.recursion.labelbox.com/managed-agents/v1/sessions/<session_id>/tree' \\\n -H 'Authorization: Bearer $LABELBOX_API_KEY'",
|
|
@@ -51978,6 +51978,14 @@ export const SDK_REFERENCE = {
|
|
|
51978
51978
|
description: 'Opt-in compatibility mode. images rehydrates private image refs under strict response caps; omitted by default.',
|
|
51979
51979
|
enum: ['images'],
|
|
51980
51980
|
},
|
|
51981
|
+
{
|
|
51982
|
+
name: 'image_urls',
|
|
51983
|
+
in: 'query',
|
|
51984
|
+
required: false,
|
|
51985
|
+
type: 'string',
|
|
51986
|
+
description: 'Set to signed to add a short-lived url (and url_expires_at) to every stored image block the caller may read. Omitted when the deployment has no URL signing configured; the authenticated /images proxy always works.',
|
|
51987
|
+
enum: ['signed'],
|
|
51988
|
+
},
|
|
51981
51989
|
{
|
|
51982
51990
|
name: 'payloads',
|
|
51983
51991
|
in: 'query',
|
|
@@ -53397,7 +53405,7 @@ export const SDK_REFERENCE = {
|
|
|
53397
53405
|
namespace: 'managedAgents',
|
|
53398
53406
|
method: 'listSessionEvents',
|
|
53399
53407
|
signature: 'rl.managedAgents.listSessionEvents({ session_id })',
|
|
53400
|
-
example: "const result = await rl.managedAgents.listSessionEvents({\n session_id: '<session_id>',\n // optional: after_event_id, limit, hydrate, payloads\n});",
|
|
53408
|
+
example: "const result = await rl.managedAgents.listSessionEvents({\n session_id: '<session_id>',\n // optional: after_event_id, limit, hydrate, image_urls, payloads\n});",
|
|
53401
53409
|
cliInvocation: 'rl managed-agents list-session-events',
|
|
53402
53410
|
cliExample: 'rl managed-agents list-session-events \\\n --session_id <session_id>',
|
|
53403
53411
|
curlExample: "curl -X GET 'https://api.recursion.labelbox.com/managed-agents/v1/sessions/<session_id>/events' \\\n -H 'Authorization: Bearer $LABELBOX_API_KEY'",
|
|
@@ -53429,6 +53437,14 @@ export const SDK_REFERENCE = {
|
|
|
53429
53437
|
description: 'Opt-in compatibility mode. images rehydrates private image refs under strict response caps; omitted by default.',
|
|
53430
53438
|
enum: ['images'],
|
|
53431
53439
|
},
|
|
53440
|
+
{
|
|
53441
|
+
name: 'image_urls',
|
|
53442
|
+
in: 'query',
|
|
53443
|
+
required: false,
|
|
53444
|
+
type: 'string',
|
|
53445
|
+
description: 'Set to signed to add a short-lived url (and url_expires_at) to every stored image block the caller may read. Omitted when the deployment has no URL signing configured; the authenticated /images proxy always works.',
|
|
53446
|
+
enum: ['signed'],
|
|
53447
|
+
},
|
|
53432
53448
|
{
|
|
53433
53449
|
name: 'payloads',
|
|
53434
53450
|
in: 'query',
|
|
@@ -54887,10 +54903,10 @@ export const SDK_REFERENCE = {
|
|
|
54887
54903
|
method: 'sendSessionEvents',
|
|
54888
54904
|
bodyKey: 'body',
|
|
54889
54905
|
signature: 'rl.managedAgents.sendSessionEvents({ session_id, body })',
|
|
54890
|
-
example: 'const result = await rl.managedAgents.sendSessionEvents({\n session_id: \'<session_id>\',\n body: {\n actor: "human:api",\n events: [\n {\n actor: "human:api",\n content: [\n {\n byte_size: 1,\n content: [],\n data: "example",\n encrypted_content: "example",\n height: 1,\n id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n input: {\n key: "example"\n },\n is_error: true,\n media_type: "example",\n name: "example-name",\n omitted_bytes: 1,\n payload: "example",\n provider: "example",\n provider_payload: "example",\n redacted: true,\n semantic_hint: "example",\n sha256: "example",\n signature: "example",\n summary: [],\n text: "example",\n tool_use_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n type: "example",\n uri: "example",\n width: 1\n }\n ],\n text: "example",\n type: "user.message"\n }\n ],\n message: "example"\n },\n});',
|
|
54906
|
+
example: 'const result = await rl.managedAgents.sendSessionEvents({\n session_id: \'<session_id>\',\n body: {\n actor: "human:api",\n events: [\n {\n actor: "human:api",\n content: [\n {\n byte_size: 1,\n content: [],\n data: "example",\n encrypted_content: "example",\n height: 1,\n id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n input: {\n key: "example"\n },\n is_error: true,\n media_type: "example",\n name: "example-name",\n omitted_bytes: 1,\n payload: "example",\n provider: "example",\n provider_payload: "example",\n redacted: true,\n semantic_hint: "example",\n sha256: "example",\n signature: "example",\n summary: [],\n text: "example",\n tool_use_id: "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n type: "example",\n uri: "example",\n url: "https://example.com",\n url_expires_at: "2026-02-18T09:30:00Z",\n width: 1\n }\n ],\n text: "example",\n type: "user.message"\n }\n ],\n message: "example"\n },\n});',
|
|
54891
54907
|
cliInvocation: 'rl managed-agents send-session-events',
|
|
54892
54908
|
cliExample: 'rl managed-agents send-session-events \\\n --session_id <session_id> \\\n --from-json body.json',
|
|
54893
|
-
curlExample: 'curl -X POST \'https://api.recursion.labelbox.com/managed-agents/v1/sessions/<session_id>/events\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "actor": "human:api",\n "events": [\n {\n "actor": "human:api",\n "content": [\n {\n "byte_size": 1,\n "content": [],\n "data": "example",\n "encrypted_content": "example",\n "height": 1,\n "id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "input": {\n "key": "example"\n },\n "is_error": true,\n "media_type": "example",\n "name": "example-name",\n "omitted_bytes": 1,\n "payload": "example",\n "provider": "example",\n "provider_payload": "example",\n "redacted": true,\n "semantic_hint": "example",\n "sha256": "example",\n "signature": "example",\n "summary": [],\n "text": "example",\n "tool_use_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "type": "example",\n "uri": "example",\n "width": 1\n }\n ],\n "text": "example",\n "type": "user.message"\n }\n ],\n "message": "example"\n }\'',
|
|
54909
|
+
curlExample: 'curl -X POST \'https://api.recursion.labelbox.com/managed-agents/v1/sessions/<session_id>/events\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "actor": "human:api",\n "events": [\n {\n "actor": "human:api",\n "content": [\n {\n "byte_size": 1,\n "content": [],\n "data": "example",\n "encrypted_content": "example",\n "height": 1,\n "id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "input": {\n "key": "example"\n },\n "is_error": true,\n "media_type": "example",\n "name": "example-name",\n "omitted_bytes": 1,\n "payload": "example",\n "provider": "example",\n "provider_payload": "example",\n "redacted": true,\n "semantic_hint": "example",\n "sha256": "example",\n "signature": "example",\n "summary": [],\n "text": "example",\n "tool_use_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "type": "example",\n "uri": "example",\n "url": "https://example.com",\n "url_expires_at": "2026-02-18T09:30:00Z",\n "width": 1\n }\n ],\n "text": "example",\n "type": "user.message"\n }\n ],\n "message": "example"\n }\'',
|
|
54894
54910
|
summary: 'Append user/system events to a session',
|
|
54895
54911
|
description: 'Appends user or system events to a session and returns how many were accepted. A running session is signalled so the agent wakes and sees them; once the workflow is gone the events are appended to the transcript instead, which the temporal_signaled field distinguishes. Events are appended in the order given. An omitted or empty events array yields exactly one user turn built from message; the request fails with 400 only when every entry sent was dropped, leaving nothing to append.',
|
|
54896
54912
|
httpMethod: 'post',
|