@agents24/node 0.5.30 → 0.5.31

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractHash": "84648af5ad658098ca046a3fd190ea95704e8cdffc2199c030c829e0dcefa482",
2
+ "contractHash": "14149b86a07d0734407ee2a8a137281cb7c4e6ac9066f404d6de5fa201518612",
3
3
  "contractVersion": "0.3.0",
4
4
  "corpus": "conformance/v1/corpus.json",
5
5
  "generatedBy": "@agents24/sdk-contract",
@@ -19,7 +19,7 @@
19
19
  "runtime": "run-stream.v3"
20
20
  },
21
21
  "@agents24/node": {
22
- "contract": "84648af5ad658098ca046a3fd190ea95704e8cdffc2199c030c829e0dcefa482",
22
+ "contract": "14149b86a07d0734407ee2a8a137281cb7c4e6ac9066f404d6de5fa201518612",
23
23
  "node": "^22.0.0 || ^24.0.0"
24
24
  },
25
25
  "@agents24/react": {
@@ -31,7 +31,7 @@
31
31
  "protocolOwner": "@agents24/client"
32
32
  },
33
33
  "agents24": {
34
- "contract": "84648af5ad658098ca046a3fd190ea95704e8cdffc2199c030c829e0dcefa482",
34
+ "contract": "14149b86a07d0734407ee2a8a137281cb7c4e6ac9066f404d6de5fa201518612",
35
35
  "python": ">=3.10"
36
36
  }
37
37
  },
package/dist/bff.cjs CHANGED
@@ -650,11 +650,13 @@ function createAgents24BffHandlerWithResolver(options, resolveCustomerIdentity)
650
650
  mode: "queue",
651
651
  input,
652
652
  attachmentIds,
653
+ ...resolution.customerTenant === void 0 ? {} : { customerTenant: resolution.customerTenant },
653
654
  ...stringValue(body.requestedModelId) ? { requestedModelId: stringValue(body.requestedModelId) } : {},
654
655
  ...resolution.knowledgeNamespaces === void 0 ? {} : { knowledgeNamespaces: resolution.knowledgeNamespaces },
655
656
  toolInputs: objectValue(body.toolInputs),
656
657
  ...body.metadata === void 0 ? {} : { metadata: objectValue(body.metadata) }
657
658
  }, { idempotencyKey }) : await embed.startAgentRun(agentId, {
659
+ ...resolution.customerTenant === void 0 ? {} : { customer_tenant: resolution.customerTenant },
658
660
  ...identity,
659
661
  integration_id: integrationId,
660
662
  ...resolution.chatScope === void 0 ? {} : { chat_scope: resolution.chatScope },
@@ -1151,11 +1153,13 @@ function createResolvedAgents24BffHandler(options) {
1151
1153
  mode: "queue",
1152
1154
  input: input ?? "",
1153
1155
  attachmentIds,
1156
+ ...resolution.customerTenant === void 0 ? {} : { customerTenant: resolution.customerTenant },
1154
1157
  ...stringValue(body.requestedModelId) ? { requestedModelId: stringValue(body.requestedModelId) } : {},
1155
1158
  ...resolution.knowledgeNamespaces === void 0 ? {} : { knowledgeNamespaces: resolution.knowledgeNamespaces },
1156
1159
  toolInputs: objectValue(body.toolInputs),
1157
1160
  ...body.metadata === void 0 ? {} : { metadata: objectValue(body.metadata) }
1158
1161
  }, { idempotencyKey: stringValue(request.headers.get("idempotency-key")) }) : await options.client.embed.startAgentRun(selected.agentId, {
1162
+ ...resolution.customerTenant === void 0 ? {} : { customer_tenant: resolution.customerTenant },
1159
1163
  ...identity,
1160
1164
  ...selected.agentVersionId ? { agent_version_id: selected.agentVersionId } : {},
1161
1165
  runtime_target: runtimeTarget,