@labelbox/recursion-sdk 0.0.166 → 0.0.167

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.
@@ -37,7 +37,7 @@ export declare class ManagedAgents extends HeyApiClient {
37
37
  /**
38
38
  * Create an agent and immutable version
39
39
  *
40
- * Creates an agent and its first immutable version, and returns the agent resolved to that version. Exactly one of model or model_ref_id is required alongside name and system. The body is also accepted as application/x-yaml with the same schema. Any vault named in default_vault_ids must already exist.
40
+ * Creates an agent and its first immutable version, and returns the agent resolved to that version. Exactly one of model or model_ref_id is required alongside name and system. The body is also accepted as application/x-yaml with the same schema. Any vault named in default_vault_ids must already exist. Invalid model_config and unsupported reasoning_effort values return 400, including when a reachable gateway model publishes no exact options; an unconfigured or unreachable gateway that prevents verification returns 503.
41
41
  */
42
42
  createAgent<ThrowOnError extends boolean = false>(parameters?: {
43
43
  body?: ManagedAgentsCreateAgentRequest;
@@ -61,7 +61,7 @@ export declare class ManagedAgents extends HeyApiClient {
61
61
  /**
62
62
  * Update agent and create a new immutable version
63
63
  *
64
- * Applies a partial update and returns the agent resolved to the new version. Agent versions are immutable, so every accepted update mints a new one rather than editing history; omitted fields keep their current values. Running sessions keep the version they started with.
64
+ * Applies a partial update and returns the agent resolved to the new version. Agent versions are immutable, so every accepted update mints a new one rather than editing history; omitted fields keep their current values. Running sessions keep the version they started with. Invalid model_config and unsupported new or changed reasoning_effort values return 400, including when a reachable gateway model publishes no exact options; an unconfigured or unreachable gateway that prevents verification returns 503.
65
65
  */
66
66
  updateAgent<ThrowOnError extends boolean = false>(parameters: {
67
67
  agent_id: string;
@@ -488,7 +488,7 @@ export declare class ManagedAgents extends HeyApiClient {
488
488
  /**
489
489
  * Start a managed session
490
490
  *
491
- * Starts a managed agent session and returns 202 with its session_id and status_path; the agent runs asynchronously, so poll getSession or subscribe with streamSessionEvents to follow it. Sandbox compute is provisioned here, which is where a session begins costing money. Send an Idempotency-Key header to make retries safe: the same key with the same body returns the original session, and with a different body is rejected.
491
+ * Starts a managed agent session and returns 202 with its session_id and status_path; the agent runs asynchronously, so poll getSession or subscribe with streamSessionEvents to follow it. Sandbox compute is provisioned here, which is where a session begins costing money. Send an Idempotency-Key header to make retries safe: the same key with the same body returns the original session, and with a different body is rejected. A reasoning_effort incompatible with the selected model or its frozen output capacity returns 400 before provisioning; a temporarily unavailable model reference or catalog dependency returns 503.
492
492
  */
493
493
  startSession<ThrowOnError extends boolean = false>(parameters?: {
494
494
  'Idempotency-Key'?: string;
@@ -40,7 +40,7 @@ export class ManagedAgents extends HeyApiClient {
40
40
  /**
41
41
  * Create an agent and immutable version
42
42
  *
43
- * Creates an agent and its first immutable version, and returns the agent resolved to that version. Exactly one of model or model_ref_id is required alongside name and system. The body is also accepted as application/x-yaml with the same schema. Any vault named in default_vault_ids must already exist.
43
+ * Creates an agent and its first immutable version, and returns the agent resolved to that version. Exactly one of model or model_ref_id is required alongside name and system. The body is also accepted as application/x-yaml with the same schema. Any vault named in default_vault_ids must already exist. Invalid model_config and unsupported reasoning_effort values return 400, including when a reachable gateway model publishes no exact options; an unconfigured or unreachable gateway that prevents verification returns 503.
44
44
  */
45
45
  createAgent(parameters, options) {
46
46
  const params = buildClientParams([parameters], [{ args: [{ key: 'body', map: 'body' }] }]);
@@ -90,7 +90,7 @@ export class ManagedAgents extends HeyApiClient {
90
90
  /**
91
91
  * Update agent and create a new immutable version
92
92
  *
93
- * Applies a partial update and returns the agent resolved to the new version. Agent versions are immutable, so every accepted update mints a new one rather than editing history; omitted fields keep their current values. Running sessions keep the version they started with.
93
+ * Applies a partial update and returns the agent resolved to the new version. Agent versions are immutable, so every accepted update mints a new one rather than editing history; omitted fields keep their current values. Running sessions keep the version they started with. Invalid model_config and unsupported new or changed reasoning_effort values return 400, including when a reachable gateway model publishes no exact options; an unconfigured or unreachable gateway that prevents verification returns 503.
94
94
  */
95
95
  updateAgent(parameters, options) {
96
96
  const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'agent_id' }, { key: 'body', map: 'body' }] }]);
@@ -929,7 +929,7 @@ export class ManagedAgents extends HeyApiClient {
929
929
  /**
930
930
  * Start a managed session
931
931
  *
932
- * Starts a managed agent session and returns 202 with its session_id and status_path; the agent runs asynchronously, so poll getSession or subscribe with streamSessionEvents to follow it. Sandbox compute is provisioned here, which is where a session begins costing money. Send an Idempotency-Key header to make retries safe: the same key with the same body returns the original session, and with a different body is rejected.
932
+ * Starts a managed agent session and returns 202 with its session_id and status_path; the agent runs asynchronously, so poll getSession or subscribe with streamSessionEvents to follow it. Sandbox compute is provisioned here, which is where a session begins costing money. Send an Idempotency-Key header to make retries safe: the same key with the same body returns the original session, and with a different body is rejected. A reasoning_effort incompatible with the selected model or its frozen output capacity returns 400 before provisioning; a temporarily unavailable model reference or catalog dependency returns 503.
933
933
  */
934
934
  startSession(parameters, options) {
935
935
  const params = buildClientParams([parameters], [{ args: [{ in: 'headers', key: 'Idempotency-Key' }, { key: 'body', map: 'body' }] }]);
@@ -8982,6 +8982,10 @@ export type ManagedAgentsGatewayModel = {
8982
8982
  * Whether the gateway can stream responses for this model. False means turns are only available as a single complete response.
8983
8983
  */
8984
8984
  streaming?: boolean;
8985
+ /**
8986
+ * Exact reasoning_effort strings LiteLLM reports for this model group. Omitted means unknown; [] means no explicit effort is supported; a non-empty list is exhaustive. Omit reasoning_effort to use the provider's current default.
8987
+ */
8988
+ supported_reasoning_efforts?: unknown;
8985
8989
  /**
8986
8990
  * Whether the gateway reports that this exact model accepts user image content on its configured wire.
8987
8991
  */
@@ -9015,7 +9019,7 @@ export type ManagedAgentsInferenceConfig = {
9015
9019
  [key: string]: unknown;
9016
9020
  };
9017
9021
  /**
9018
- * Thinking-budget hint for reasoning-capable models, e.g. low, medium, or high. Ignored by models that do not support reasoning.
9022
+ * Provider-native reasoning depth value. For gateway models, use one of supported_reasoning_efforts from the models catalog; omit it to follow the provider's current default.
9019
9023
  */
9020
9024
  reasoning_effort?: string;
9021
9025
  /**
@@ -2671,7 +2671,7 @@ export const RESOURCE_REFERENCE = {
2671
2671
  name: 'reasoning_effort',
2672
2672
  required: false,
2673
2673
  type: 'string',
2674
- description: 'Thinking-budget hint for reasoning-capable models, e.g. low, medium, or high. Ignored by models that do not support reasoning.',
2674
+ description: "Provider-native reasoning depth value. For gateway models, use one of supported_reasoning_efforts from the models catalog; omit it to follow the provider's current default.",
2675
2675
  },
2676
2676
  {
2677
2677
  name: 'response_format',
@@ -44872,7 +44872,7 @@ export const SDK_REFERENCE = {
44872
44872
  cliExample: "rl managed-agents create-agent \\\n --name 'example-name' \\\n --system 'example' \\\n --from-json body.json",
44873
44873
  curlExample: 'curl -X POST \'https://api.recursion.labelbox.com/managed-agents/v1/agents\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "custom_tools": [\n {\n "config": {\n "key": "example"\n },\n "name": "example-name",\n "type": "example"\n }\n ],\n "default_credential_refs": [\n {\n "credential_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "vault_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d"\n }\n ],\n "default_rubric": "example",\n "default_vault_ids": [\n "example"\n ],\n "description": "example",\n "mcp_servers": [\n {\n "key": "example"\n }\n ],\n "metadata": {\n "key": "example"\n },\n "model": "example",\n "model_config": {\n "max_tokens": 1,\n "provider_params": {\n "key": "example"\n },\n "reasoning_effort": "example",\n "response_format": "example",\n "temperature": 1.5,\n "tool_choice": "example",\n "top_p": 1.5\n },\n "model_ref_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "multiagent": {\n "key": "example"\n },\n "name": "example-name",\n "runtime_adapters": [\n {\n "key": "example"\n }\n ],\n "skills": [\n {\n "key": "example"\n }\n ],\n "system": "example",\n "tools": [\n {\n "config": {\n "key": "example"\n },\n "name": "example-name",\n "type": "example"\n }\n ],\n "toolsets": [\n {\n "config": {\n "key": "example"\n },\n "name": "example-name",\n "type": "example"\n }\n ],\n "web_search_enabled": true\n }\'',
44874
44874
  summary: 'Create an agent and immutable version',
44875
- description: 'Creates an agent and its first immutable version, and returns the agent resolved to that version. Exactly one of model or model_ref_id is required alongside name and system. The body is also accepted as application/x-yaml with the same schema. Any vault named in default_vault_ids must already exist.',
44875
+ description: 'Creates an agent and its first immutable version, and returns the agent resolved to that version. Exactly one of model or model_ref_id is required alongside name and system. The body is also accepted as application/x-yaml with the same schema. Any vault named in default_vault_ids must already exist. Invalid model_config and unsupported reasoning_effort values return 400, including when a reachable gateway model publishes no exact options; an unconfigured or unreachable gateway that prevents verification returns 503.',
44876
44876
  httpMethod: 'post',
44877
44877
  path: '/managed-agents/v1/agents',
44878
44878
  requiredPermissions: ['managed-agents:create'],
@@ -44980,7 +44980,7 @@ export const SDK_REFERENCE = {
44980
44980
  in: 'body',
44981
44981
  required: false,
44982
44982
  type: 'ManagedAgentsInferenceConfig',
44983
- description: 'Default inference config applied to sessions started from this agent.',
44983
+ description: "Default inference config applied to sessions started from this agent. Omit model_config or send {} to use provider defaults; null is invalid. reasoning_effort is normalized and validated for direct providers, and must exactly match the selected gateway model's published options. An unsupported value, including a reachable gateway model that publishes no exact options, returns 400; an unconfigured or unreachable gateway that prevents verification returns 503.",
44984
44984
  fields: [
44985
44985
  {
44986
44986
  name: 'max_tokens',
@@ -44999,7 +44999,7 @@ export const SDK_REFERENCE = {
44999
44999
  name: 'reasoning_effort',
45000
45000
  required: false,
45001
45001
  type: 'string',
45002
- description: 'Thinking-budget hint for reasoning-capable models, e.g. low, medium, or high. Ignored by models that do not support reasoning.',
45002
+ description: "Provider-native reasoning depth value. For gateway models, use one of supported_reasoning_efforts from the models catalog; omit it to follow the provider's current default.",
45003
45003
  },
45004
45004
  {
45005
45005
  name: 'response_format',
@@ -45234,7 +45234,7 @@ export const SDK_REFERENCE = {
45234
45234
  name: 'reasoning_effort',
45235
45235
  required: false,
45236
45236
  type: 'string',
45237
- description: 'Thinking-budget hint for reasoning-capable models, e.g. low, medium, or high. Ignored by models that do not support reasoning.',
45237
+ description: "Provider-native reasoning depth value. For gateway models, use one of supported_reasoning_efforts from the models catalog; omit it to follow the provider's current default.",
45238
45238
  },
45239
45239
  {
45240
45240
  name: 'response_format',
@@ -48639,7 +48639,7 @@ export const SDK_REFERENCE = {
48639
48639
  name: 'reasoning_effort',
48640
48640
  required: false,
48641
48641
  type: 'string',
48642
- description: 'Thinking-budget hint for reasoning-capable models, e.g. low, medium, or high. Ignored by models that do not support reasoning.',
48642
+ description: "Provider-native reasoning depth value. For gateway models, use one of supported_reasoning_efforts from the models catalog; omit it to follow the provider's current default.",
48643
48643
  },
48644
48644
  {
48645
48645
  name: 'response_format',
@@ -49025,7 +49025,7 @@ export const SDK_REFERENCE = {
49025
49025
  name: 'reasoning_effort',
49026
49026
  required: false,
49027
49027
  type: 'string',
49028
- description: 'Thinking-budget hint for reasoning-capable models, e.g. low, medium, or high. Ignored by models that do not support reasoning.',
49028
+ description: "Provider-native reasoning depth value. For gateway models, use one of supported_reasoning_efforts from the models catalog; omit it to follow the provider's current default.",
49029
49029
  },
49030
49030
  {
49031
49031
  name: 'response_format',
@@ -55184,7 +55184,7 @@ export const SDK_REFERENCE = {
55184
55184
  cliExample: "rl managed-agents start-session \\\n --agent_id '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d' \\\n --environment_id '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d' \\\n --from-json body.json",
55185
55185
  curlExample: 'curl -X POST \'https://api.recursion.labelbox.com/managed-agents/v1/sessions\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "agent_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "credential_refs": [\n {\n "credential_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "vault_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d"\n }\n ],\n "environment_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "external_source_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "external_source_type": "example",\n "idempotency_key": "example",\n "message": "example",\n "metadata": {\n "key": "example"\n },\n "outcome": {\n "description": "example",\n "grader_model_ref_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "max_iterations": 1,\n "rubric": "example"\n },\n "project_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "skip_default_outcome": true,\n "vault_ids": [\n "example"\n ]\n }\'',
55186
55186
  summary: 'Start a managed session',
55187
- description: 'Starts a managed agent session and returns 202 with its session_id and status_path; the agent runs asynchronously, so poll getSession or subscribe with streamSessionEvents to follow it. Sandbox compute is provisioned here, which is where a session begins costing money. Send an Idempotency-Key header to make retries safe: the same key with the same body returns the original session, and with a different body is rejected.',
55187
+ description: 'Starts a managed agent session and returns 202 with its session_id and status_path; the agent runs asynchronously, so poll getSession or subscribe with streamSessionEvents to follow it. Sandbox compute is provisioned here, which is where a session begins costing money. Send an Idempotency-Key header to make retries safe: the same key with the same body returns the original session, and with a different body is rejected. A reasoning_effort incompatible with the selected model or its frozen output capacity returns 400 before provisioning; a temporarily unavailable model reference or catalog dependency returns 503.',
55188
55188
  httpMethod: 'post',
55189
55189
  path: '/managed-agents/v1/sessions',
55190
55190
  requiredPermissions: ['managed-agents:create'],
@@ -55351,7 +55351,7 @@ export const SDK_REFERENCE = {
55351
55351
  cliExample: 'rl managed-agents update-agent \\\n --agent_id <agent_id> \\\n --from-json body.json',
55352
55352
  curlExample: 'curl -X PATCH \'https://api.recursion.labelbox.com/managed-agents/v1/agents/<agent_id>\' \\\n -H \'Authorization: Bearer $LABELBOX_API_KEY\' \\\n -H \'Content-Type: application/json\' \\\n -d \'{\n "agent_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "created_at": "2026-02-18T09:30:00Z",\n "custom_tools": [\n {\n "config": {\n "key": "example"\n },\n "name": "example-name",\n "type": "example"\n }\n ],\n "default_credential_refs": [\n {\n "credential_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "vault_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d"\n }\n ],\n "default_rubric": "example",\n "default_vault_ids": [\n "example"\n ],\n "description": "example",\n "latest_agent_version_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "mcp_servers": [\n {\n "key": "example"\n }\n ],\n "metadata": {\n "key": "example"\n },\n "model": "example",\n "model_config": {\n "max_tokens": 1,\n "provider_params": {\n "key": "example"\n },\n "reasoning_effort": "example",\n "response_format": "example",\n "temperature": 1.5,\n "tool_choice": "example",\n "top_p": 1.5\n },\n "model_ref_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "multiagent": {\n "key": "example"\n },\n "name": "example-name",\n "organization_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",\n "runtime_adapters": [\n {\n "key": "example"\n }\n ],\n "skills": [\n {\n "key": "example"\n }\n ],\n "system": "example",\n "toolsets": [\n {\n "config": {\n "key": "example"\n },\n "name": "example-name",\n "type": "example"\n }\n ],\n "updated_at": "2026-02-18T09:30:00Z",\n "web_search_enabled": true\n }\'',
55353
55353
  summary: 'Update agent and create a new immutable version',
55354
- description: 'Applies a partial update and returns the agent resolved to the new version. Agent versions are immutable, so every accepted update mints a new one rather than editing history; omitted fields keep their current values. Running sessions keep the version they started with.',
55354
+ description: 'Applies a partial update and returns the agent resolved to the new version. Agent versions are immutable, so every accepted update mints a new one rather than editing history; omitted fields keep their current values. Running sessions keep the version they started with. Invalid model_config and unsupported new or changed reasoning_effort values return 400, including when a reachable gateway model publishes no exact options; an unconfigured or unreachable gateway that prevents verification returns 503.',
55355
55355
  httpMethod: 'patch',
55356
55356
  path: '/managed-agents/v1/agents/{agent_id}',
55357
55357
  requiredPermissions: ['managed-agents:update'],
@@ -55447,7 +55447,7 @@ export const SDK_REFERENCE = {
55447
55447
  in: 'body',
55448
55448
  required: false,
55449
55449
  type: 'ManagedAgentsInferenceConfig',
55450
- description: 'Default inference settings applied to every turn unless a session overrides them.',
55450
+ description: "Default inference config for the new version. Omit model_config to preserve the current config; send {} to clear the entire config and use provider defaults; null is invalid. reasoning_effort is normalized and validated for direct providers, and must exactly match the selected gateway model's published options. An unsupported new or changed value, including a reachable gateway model that publishes no exact options, returns 400; an unconfigured or unreachable gateway that prevents verification returns 503.",
55451
55451
  fields: [
55452
55452
  {
55453
55453
  name: 'max_tokens',
@@ -55466,7 +55466,7 @@ export const SDK_REFERENCE = {
55466
55466
  name: 'reasoning_effort',
55467
55467
  required: false,
55468
55468
  type: 'string',
55469
- description: 'Thinking-budget hint for reasoning-capable models, e.g. low, medium, or high. Ignored by models that do not support reasoning.',
55469
+ description: "Provider-native reasoning depth value. For gateway models, use one of supported_reasoning_efforts from the models catalog; omit it to follow the provider's current default.",
55470
55470
  },
55471
55471
  {
55472
55472
  name: 'response_format',
@@ -55661,7 +55661,7 @@ export const SDK_REFERENCE = {
55661
55661
  name: 'reasoning_effort',
55662
55662
  required: false,
55663
55663
  type: 'string',
55664
- description: 'Thinking-budget hint for reasoning-capable models, e.g. low, medium, or high. Ignored by models that do not support reasoning.',
55664
+ description: "Provider-native reasoning depth value. For gateway models, use one of supported_reasoning_efforts from the models catalog; omit it to follow the provider's current default.",
55665
55665
  },
55666
55666
  {
55667
55667
  name: 'response_format',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@labelbox/recursion-sdk",
3
- "version": "0.0.166",
3
+ "version": "0.0.167",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",