@inkeep/agents-core 0.8.5 → 0.8.6
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/dist/index.cjs +4 -2
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1861,15 +1861,17 @@ var ContextConfigBuilder = class {
|
|
|
1861
1861
|
if (options.contextVariables) {
|
|
1862
1862
|
for (const [key, definition] of Object.entries(options.contextVariables)) {
|
|
1863
1863
|
const { credentialReference, ...rest } = definition;
|
|
1864
|
+
const credentialReferenceId = credentialReference?.id || rest.credentialReferenceId;
|
|
1864
1865
|
processedContextVariables[key] = {
|
|
1865
1866
|
...rest,
|
|
1866
1867
|
responseSchema: convertZodToJsonSchema(definition.responseSchema),
|
|
1867
|
-
credentialReferenceId
|
|
1868
|
+
credentialReferenceId
|
|
1868
1869
|
};
|
|
1869
1870
|
logger.debug(
|
|
1870
1871
|
{
|
|
1871
1872
|
contextVariableKey: key,
|
|
1872
|
-
originalSchema: definition.responseSchema
|
|
1873
|
+
originalSchema: definition.responseSchema,
|
|
1874
|
+
credentialReferenceId
|
|
1873
1875
|
},
|
|
1874
1876
|
"Converting contextVariable responseSchema to JSON Schema for database storage"
|
|
1875
1877
|
);
|
package/dist/index.js
CHANGED
|
@@ -250,15 +250,17 @@ var ContextConfigBuilder = class {
|
|
|
250
250
|
if (options.contextVariables) {
|
|
251
251
|
for (const [key, definition] of Object.entries(options.contextVariables)) {
|
|
252
252
|
const { credentialReference, ...rest } = definition;
|
|
253
|
+
const credentialReferenceId = credentialReference?.id || rest.credentialReferenceId;
|
|
253
254
|
processedContextVariables[key] = {
|
|
254
255
|
...rest,
|
|
255
256
|
responseSchema: convertZodToJsonSchema(definition.responseSchema),
|
|
256
|
-
credentialReferenceId
|
|
257
|
+
credentialReferenceId
|
|
257
258
|
};
|
|
258
259
|
logger.debug(
|
|
259
260
|
{
|
|
260
261
|
contextVariableKey: key,
|
|
261
|
-
originalSchema: definition.responseSchema
|
|
262
|
+
originalSchema: definition.responseSchema,
|
|
263
|
+
credentialReferenceId
|
|
262
264
|
},
|
|
263
265
|
"Converting contextVariable responseSchema to JSON Schema for database storage"
|
|
264
266
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-core",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.6",
|
|
4
4
|
"description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|