@inkeep/agents-run-api 0.0.0-dev-20250924214135 → 0.0.0-dev-20250924224100
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 +12 -2
- package/dist/index.js +11 -1
- package/package.json +2 -3
package/dist/index.cjs
CHANGED
|
@@ -27,7 +27,6 @@ var streaming = require('hono/streaming');
|
|
|
27
27
|
var destr = require('destr');
|
|
28
28
|
var traverse = require('traverse');
|
|
29
29
|
var ai = require('ai');
|
|
30
|
-
var agentsSdk = require('@inkeep/agents-sdk');
|
|
31
30
|
var anthropic = require('@ai-sdk/anthropic');
|
|
32
31
|
var gateway = require('@ai-sdk/gateway');
|
|
33
32
|
var google = require('@ai-sdk/google');
|
|
@@ -1400,6 +1399,17 @@ __publicField(_ArtifactReferenceSchema, "ARTIFACT_PROPS_SCHEMA", {
|
|
|
1400
1399
|
required: ["artifact_id", "task_id"]
|
|
1401
1400
|
});
|
|
1402
1401
|
var ArtifactReferenceSchema = _ArtifactReferenceSchema;
|
|
1402
|
+
|
|
1403
|
+
// src/utils/default-status-schemas.ts
|
|
1404
|
+
var retrieveStatusSchema = {
|
|
1405
|
+
type: "retrieve",
|
|
1406
|
+
description: 'Use this when the system found or retrieved specific information from searches, queries, or lookups. ONLY report ACTUAL findings that appear explicitly in the tool results - never make up data, names, numbers, or details. The label must state the SPECIFIC discovery (e.g., "Found 3 authentication methods", "Database contains 500 records", "API supports JSON format") not the act of searching. Every detail must be traceable to actual tool output. NEVER invent placeholder names, fictional data, or information not present in the activities.'
|
|
1407
|
+
};
|
|
1408
|
+
var actionStatusSchema = {
|
|
1409
|
+
type: "action",
|
|
1410
|
+
description: 'Use this when the system executed a tool or performed an operation that modified state or had side effects. ONLY report ACTUAL tool executions and their results as they appear in the tool outputs - never make up tool names, parameters, or outcomes. The label must describe what specific action was performed and its concrete result based on actual tool execution data. DO NOT make up examples like "Ran test suite with X passes" unless a test suite was ACTUALLY run and reported X passes. DO NOT say "Executed database query" unless a database query was ACTUALLY executed. Only report what literally happened. NEVER invent tool names, execution results, or details not explicitly present in the tool execution activities. If a tool failed, report the actual failure, not imagined success.'
|
|
1411
|
+
};
|
|
1412
|
+
var defaultStatusSchemas = [retrieveStatusSchema, actionStatusSchema];
|
|
1403
1413
|
var logger5 = agentsCore.getLogger("ModelFactory");
|
|
1404
1414
|
var _ModelFactory = class _ModelFactory {
|
|
1405
1415
|
/**
|
|
@@ -1929,7 +1939,7 @@ var GraphSession = class {
|
|
|
1929
1939
|
}
|
|
1930
1940
|
const now = Date.now();
|
|
1931
1941
|
const elapsedTime = now - statusUpdateState.startTime;
|
|
1932
|
-
const statusComponents = statusUpdateState.config.statusComponents && statusUpdateState.config.statusComponents.length > 0 ? statusUpdateState.config.statusComponents :
|
|
1942
|
+
const statusComponents = statusUpdateState.config.statusComponents && statusUpdateState.config.statusComponents.length > 0 ? statusUpdateState.config.statusComponents : defaultStatusSchemas;
|
|
1933
1943
|
const result = await this.generateStructuredStatusUpdate(
|
|
1934
1944
|
this.events.slice(statusUpdateState.lastEventCount),
|
|
1935
1945
|
elapsedTime,
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,6 @@ import { nanoid } from 'nanoid';
|
|
|
24
24
|
import destr from 'destr';
|
|
25
25
|
import traverse from 'traverse';
|
|
26
26
|
import { createUIMessageStream, JsonToSseTransformStream, parsePartialJson, generateObject, tool, streamText, generateText, streamObject } from 'ai';
|
|
27
|
-
import { defaultStatusSchemas } from '@inkeep/agents-sdk';
|
|
28
27
|
import { createAnthropic, anthropic } from '@ai-sdk/anthropic';
|
|
29
28
|
import { createGateway, gateway } from '@ai-sdk/gateway';
|
|
30
29
|
import { createGoogleGenerativeAI, google } from '@ai-sdk/google';
|
|
@@ -1133,6 +1132,17 @@ __publicField(_ArtifactReferenceSchema, "ARTIFACT_PROPS_SCHEMA", {
|
|
|
1133
1132
|
required: ["artifact_id", "task_id"]
|
|
1134
1133
|
});
|
|
1135
1134
|
var ArtifactReferenceSchema = _ArtifactReferenceSchema;
|
|
1135
|
+
|
|
1136
|
+
// src/utils/default-status-schemas.ts
|
|
1137
|
+
var retrieveStatusSchema = {
|
|
1138
|
+
type: "retrieve",
|
|
1139
|
+
description: 'Use this when the system found or retrieved specific information from searches, queries, or lookups. ONLY report ACTUAL findings that appear explicitly in the tool results - never make up data, names, numbers, or details. The label must state the SPECIFIC discovery (e.g., "Found 3 authentication methods", "Database contains 500 records", "API supports JSON format") not the act of searching. Every detail must be traceable to actual tool output. NEVER invent placeholder names, fictional data, or information not present in the activities.'
|
|
1140
|
+
};
|
|
1141
|
+
var actionStatusSchema = {
|
|
1142
|
+
type: "action",
|
|
1143
|
+
description: 'Use this when the system executed a tool or performed an operation that modified state or had side effects. ONLY report ACTUAL tool executions and their results as they appear in the tool outputs - never make up tool names, parameters, or outcomes. The label must describe what specific action was performed and its concrete result based on actual tool execution data. DO NOT make up examples like "Ran test suite with X passes" unless a test suite was ACTUALLY run and reported X passes. DO NOT say "Executed database query" unless a database query was ACTUALLY executed. Only report what literally happened. NEVER invent tool names, execution results, or details not explicitly present in the tool execution activities. If a tool failed, report the actual failure, not imagined success.'
|
|
1144
|
+
};
|
|
1145
|
+
var defaultStatusSchemas = [retrieveStatusSchema, actionStatusSchema];
|
|
1136
1146
|
var logger5 = getLogger("ModelFactory");
|
|
1137
1147
|
var _ModelFactory = class _ModelFactory {
|
|
1138
1148
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-run-api",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20250924224100",
|
|
4
4
|
"description": "Agents Run API for Inkeep Agent Framework - handles chat, agent execution, and streaming",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -48,8 +48,7 @@
|
|
|
48
48
|
"traverse": "^0.6.11",
|
|
49
49
|
"ts-pattern": "^5.7.1",
|
|
50
50
|
"zod": "^4.1.5",
|
|
51
|
-
"@inkeep/agents-
|
|
52
|
-
"@inkeep/agents-core": "^0.0.0-dev-20250924214135"
|
|
51
|
+
"@inkeep/agents-core": "^0.0.0-dev-20250924224100"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
54
|
"@hono/vite-dev-server": "^0.20.1",
|