@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.
- package/compatibility.json +3 -3
- package/dist/bff.cjs +4 -0
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +6 -2
- package/dist/bff.d.ts +6 -2
- package/dist/bff.js +4 -0
- package/dist/bff.js.map +1 -1
- package/dist/{client-BIn7miCx.d.cts → client-vFBe6Sfx.d.cts} +58 -3
- package/dist/{client-BIn7miCx.d.ts → client-vFBe6Sfx.d.ts} +58 -3
- package/dist/index.cjs +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/types/agents.d.ts.map +1 -1
- package/dist/types/bff-agent-resolution.d.ts +16 -0
- package/dist/types/bff-agent-resolution.d.ts.map +1 -1
- package/dist/types/bff.d.ts.map +1 -1
- package/dist/types/embed-types.d.ts +12 -0
- package/dist/types/embed-types.d.ts.map +1 -1
- package/dist/types/embed.d.ts.map +1 -1
- package/dist/types/generated/ingestion-types.d.ts +20 -0
- package/dist/types/generated/ingestion-types.d.ts.map +1 -1
- package/dist/types/types.d.ts +23 -1
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
package/compatibility.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractHash": "
|
|
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": "
|
|
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": "
|
|
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,
|