@inkeep/agents-sdk 0.0.0-dev-20250920002849 → 0.0.0-dev-20250924193535
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 +17 -1
- package/dist/index.d.cts +21 -2
- package/dist/index.d.ts +21 -2
- package/dist/index.js +15 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2345,7 +2345,6 @@ var AgentGraph = class {
|
|
|
2345
2345
|
throw error;
|
|
2346
2346
|
}
|
|
2347
2347
|
}
|
|
2348
|
-
// enableComponentMode removed – feature deprecated
|
|
2349
2348
|
async createExternalAgentRelation(sourceAgent, externalAgent2, relationType) {
|
|
2350
2349
|
try {
|
|
2351
2350
|
const response = await fetch(
|
|
@@ -3204,6 +3203,20 @@ function transfer(targetAgent, description, condition) {
|
|
|
3204
3203
|
return config;
|
|
3205
3204
|
}
|
|
3206
3205
|
|
|
3206
|
+
// src/default-status-schemas.ts
|
|
3207
|
+
var retrieveStatusSchema = {
|
|
3208
|
+
type: "retrieve",
|
|
3209
|
+
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.'
|
|
3210
|
+
};
|
|
3211
|
+
var actionStatusSchema = {
|
|
3212
|
+
type: "action",
|
|
3213
|
+
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.'
|
|
3214
|
+
};
|
|
3215
|
+
var defaultStatusSchemas = [
|
|
3216
|
+
retrieveStatusSchema,
|
|
3217
|
+
actionStatusSchema
|
|
3218
|
+
];
|
|
3219
|
+
|
|
3207
3220
|
// src/environment-settings.ts
|
|
3208
3221
|
function createEnvironmentSettings(environments) {
|
|
3209
3222
|
return {
|
|
@@ -3432,6 +3445,7 @@ exports.ExternalAgent = ExternalAgent;
|
|
|
3432
3445
|
exports.Project = Project;
|
|
3433
3446
|
exports.Runner = Runner;
|
|
3434
3447
|
exports.Tool = Tool;
|
|
3448
|
+
exports.actionStatusSchema = actionStatusSchema;
|
|
3435
3449
|
exports.agent = agent;
|
|
3436
3450
|
exports.agentGraph = agentGraph;
|
|
3437
3451
|
exports.agentMcp = agentMcp;
|
|
@@ -3440,6 +3454,7 @@ exports.createEnvironmentSettings = createEnvironmentSettings;
|
|
|
3440
3454
|
exports.createFullProjectViaAPI = createFullProjectViaAPI;
|
|
3441
3455
|
exports.credential = credential;
|
|
3442
3456
|
exports.dataComponent = dataComponent;
|
|
3457
|
+
exports.defaultStatusSchemas = defaultStatusSchemas;
|
|
3443
3458
|
exports.deleteFullProjectViaAPI = deleteFullProjectViaAPI;
|
|
3444
3459
|
exports.externalAgent = externalAgent;
|
|
3445
3460
|
exports.externalAgents = externalAgents;
|
|
@@ -3449,6 +3464,7 @@ exports.mcpTool = mcpTool;
|
|
|
3449
3464
|
exports.project = project;
|
|
3450
3465
|
exports.raceGraphs = raceGraphs;
|
|
3451
3466
|
exports.registerEnvironmentSettings = registerEnvironmentSettings;
|
|
3467
|
+
exports.retrieveStatusSchema = retrieveStatusSchema;
|
|
3452
3468
|
exports.run = run;
|
|
3453
3469
|
exports.stream = stream;
|
|
3454
3470
|
exports.transfer = transfer;
|
package/dist/index.d.cts
CHANGED
|
@@ -314,7 +314,7 @@ interface RunResult {
|
|
|
314
314
|
interface StatusComponent {
|
|
315
315
|
type: string;
|
|
316
316
|
description?: string;
|
|
317
|
-
|
|
317
|
+
detailsSchema?: {
|
|
318
318
|
type: 'object';
|
|
319
319
|
properties: Record<string, any>;
|
|
320
320
|
required?: string[];
|
|
@@ -1064,6 +1064,25 @@ declare function artifactComponent(config: ArtifactComponentConfig): ArtifactCom
|
|
|
1064
1064
|
declare function dataComponent(config: DataComponentConfig): DataComponent;
|
|
1065
1065
|
declare function agentMcp(config: AgentMcpConfig): AgentMcpConfig;
|
|
1066
1066
|
|
|
1067
|
+
/**
|
|
1068
|
+
* Default status component schemas for AI agent operations
|
|
1069
|
+
*/
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* Schema for retrieve operations - when agents are looking up, searching,
|
|
1073
|
+
* or researching information in web or downstream services
|
|
1074
|
+
*/
|
|
1075
|
+
declare const retrieveStatusSchema: StatusComponent;
|
|
1076
|
+
/**
|
|
1077
|
+
* Schema for action operations - when agents are using tools or delegating
|
|
1078
|
+
* tasks with side-effects to update, create, or modify downstream services
|
|
1079
|
+
*/
|
|
1080
|
+
declare const actionStatusSchema: StatusComponent;
|
|
1081
|
+
/**
|
|
1082
|
+
* Default status component schemas collection
|
|
1083
|
+
*/
|
|
1084
|
+
declare const defaultStatusSchemas: StatusComponent[];
|
|
1085
|
+
|
|
1067
1086
|
interface EnvironmentSettingsConfig {
|
|
1068
1087
|
credentials?: {
|
|
1069
1088
|
[settingId: string]: CredentialReferenceApiInsert;
|
|
@@ -1139,4 +1158,4 @@ declare const run: typeof Runner.run;
|
|
|
1139
1158
|
declare const stream: typeof Runner.stream;
|
|
1140
1159
|
declare const raceGraphs: typeof Runner.raceGraphs;
|
|
1141
1160
|
|
|
1142
|
-
export { Agent, type AgentCanUseType, type AgentConfig, AgentError, type AgentInterface, type AgentResponse, type AllAgentInterface, ArtifactComponent, type AssistantMessage, type BuilderAgentConfig, type BuilderRelationConfig, type BuilderToolConfig, DataComponent, ExternalAgent, type ExternalAgentInterface, type FetchDefinitionConfig, type GenerateOptions, type GraphConfig, type GraphInterface, type MCPToolConfig, MaxTurnsExceededError, type Message, type MessageInput, type ModelSettings, ModelSettingsSchema, Project, type RequestSchemaConfig, type RequestSchemaDefinition, type RunResult, Runner, type ServerConfig, type StatusComponent, type StatusUpdateSettings, type StreamEvent, type StreamResponse, type SystemMessage, Tool, type ToolCall, type ToolConfig, ToolExecutionError, type ToolMessage, type ToolResult, type TransferConfig, TransferError, type UserMessage, agent, agentGraph, agentMcp, artifactComponent, createEnvironmentSettings, createFullProjectViaAPI, credential, dataComponent, deleteFullProjectViaAPI, externalAgent, externalAgents, getFullProjectViaAPI, mcpServer, mcpTool, project, raceGraphs, registerEnvironmentSettings, run, stream, transfer, updateFullProjectViaAPI };
|
|
1161
|
+
export { Agent, type AgentCanUseType, type AgentConfig, AgentError, type AgentInterface, type AgentResponse, type AllAgentInterface, ArtifactComponent, type AssistantMessage, type BuilderAgentConfig, type BuilderRelationConfig, type BuilderToolConfig, DataComponent, ExternalAgent, type ExternalAgentInterface, type FetchDefinitionConfig, type GenerateOptions, type GraphConfig, type GraphInterface, type MCPToolConfig, MaxTurnsExceededError, type Message, type MessageInput, type ModelSettings, ModelSettingsSchema, Project, type RequestSchemaConfig, type RequestSchemaDefinition, type RunResult, Runner, type ServerConfig, type StatusComponent, type StatusUpdateSettings, type StreamEvent, type StreamResponse, type SystemMessage, Tool, type ToolCall, type ToolConfig, ToolExecutionError, type ToolMessage, type ToolResult, type TransferConfig, TransferError, type UserMessage, actionStatusSchema, agent, agentGraph, agentMcp, artifactComponent, createEnvironmentSettings, createFullProjectViaAPI, credential, dataComponent, defaultStatusSchemas, deleteFullProjectViaAPI, externalAgent, externalAgents, getFullProjectViaAPI, mcpServer, mcpTool, project, raceGraphs, registerEnvironmentSettings, retrieveStatusSchema, run, stream, transfer, updateFullProjectViaAPI };
|
package/dist/index.d.ts
CHANGED
|
@@ -314,7 +314,7 @@ interface RunResult {
|
|
|
314
314
|
interface StatusComponent {
|
|
315
315
|
type: string;
|
|
316
316
|
description?: string;
|
|
317
|
-
|
|
317
|
+
detailsSchema?: {
|
|
318
318
|
type: 'object';
|
|
319
319
|
properties: Record<string, any>;
|
|
320
320
|
required?: string[];
|
|
@@ -1064,6 +1064,25 @@ declare function artifactComponent(config: ArtifactComponentConfig): ArtifactCom
|
|
|
1064
1064
|
declare function dataComponent(config: DataComponentConfig): DataComponent;
|
|
1065
1065
|
declare function agentMcp(config: AgentMcpConfig): AgentMcpConfig;
|
|
1066
1066
|
|
|
1067
|
+
/**
|
|
1068
|
+
* Default status component schemas for AI agent operations
|
|
1069
|
+
*/
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* Schema for retrieve operations - when agents are looking up, searching,
|
|
1073
|
+
* or researching information in web or downstream services
|
|
1074
|
+
*/
|
|
1075
|
+
declare const retrieveStatusSchema: StatusComponent;
|
|
1076
|
+
/**
|
|
1077
|
+
* Schema for action operations - when agents are using tools or delegating
|
|
1078
|
+
* tasks with side-effects to update, create, or modify downstream services
|
|
1079
|
+
*/
|
|
1080
|
+
declare const actionStatusSchema: StatusComponent;
|
|
1081
|
+
/**
|
|
1082
|
+
* Default status component schemas collection
|
|
1083
|
+
*/
|
|
1084
|
+
declare const defaultStatusSchemas: StatusComponent[];
|
|
1085
|
+
|
|
1067
1086
|
interface EnvironmentSettingsConfig {
|
|
1068
1087
|
credentials?: {
|
|
1069
1088
|
[settingId: string]: CredentialReferenceApiInsert;
|
|
@@ -1139,4 +1158,4 @@ declare const run: typeof Runner.run;
|
|
|
1139
1158
|
declare const stream: typeof Runner.stream;
|
|
1140
1159
|
declare const raceGraphs: typeof Runner.raceGraphs;
|
|
1141
1160
|
|
|
1142
|
-
export { Agent, type AgentCanUseType, type AgentConfig, AgentError, type AgentInterface, type AgentResponse, type AllAgentInterface, ArtifactComponent, type AssistantMessage, type BuilderAgentConfig, type BuilderRelationConfig, type BuilderToolConfig, DataComponent, ExternalAgent, type ExternalAgentInterface, type FetchDefinitionConfig, type GenerateOptions, type GraphConfig, type GraphInterface, type MCPToolConfig, MaxTurnsExceededError, type Message, type MessageInput, type ModelSettings, ModelSettingsSchema, Project, type RequestSchemaConfig, type RequestSchemaDefinition, type RunResult, Runner, type ServerConfig, type StatusComponent, type StatusUpdateSettings, type StreamEvent, type StreamResponse, type SystemMessage, Tool, type ToolCall, type ToolConfig, ToolExecutionError, type ToolMessage, type ToolResult, type TransferConfig, TransferError, type UserMessage, agent, agentGraph, agentMcp, artifactComponent, createEnvironmentSettings, createFullProjectViaAPI, credential, dataComponent, deleteFullProjectViaAPI, externalAgent, externalAgents, getFullProjectViaAPI, mcpServer, mcpTool, project, raceGraphs, registerEnvironmentSettings, run, stream, transfer, updateFullProjectViaAPI };
|
|
1161
|
+
export { Agent, type AgentCanUseType, type AgentConfig, AgentError, type AgentInterface, type AgentResponse, type AllAgentInterface, ArtifactComponent, type AssistantMessage, type BuilderAgentConfig, type BuilderRelationConfig, type BuilderToolConfig, DataComponent, ExternalAgent, type ExternalAgentInterface, type FetchDefinitionConfig, type GenerateOptions, type GraphConfig, type GraphInterface, type MCPToolConfig, MaxTurnsExceededError, type Message, type MessageInput, type ModelSettings, ModelSettingsSchema, Project, type RequestSchemaConfig, type RequestSchemaDefinition, type RunResult, Runner, type ServerConfig, type StatusComponent, type StatusUpdateSettings, type StreamEvent, type StreamResponse, type SystemMessage, Tool, type ToolCall, type ToolConfig, ToolExecutionError, type ToolMessage, type ToolResult, type TransferConfig, TransferError, type UserMessage, actionStatusSchema, agent, agentGraph, agentMcp, artifactComponent, createEnvironmentSettings, createFullProjectViaAPI, credential, dataComponent, defaultStatusSchemas, deleteFullProjectViaAPI, externalAgent, externalAgents, getFullProjectViaAPI, mcpServer, mcpTool, project, raceGraphs, registerEnvironmentSettings, retrieveStatusSchema, run, stream, transfer, updateFullProjectViaAPI };
|
package/dist/index.js
CHANGED
|
@@ -2343,7 +2343,6 @@ var AgentGraph = class {
|
|
|
2343
2343
|
throw error;
|
|
2344
2344
|
}
|
|
2345
2345
|
}
|
|
2346
|
-
// enableComponentMode removed – feature deprecated
|
|
2347
2346
|
async createExternalAgentRelation(sourceAgent, externalAgent2, relationType) {
|
|
2348
2347
|
try {
|
|
2349
2348
|
const response = await fetch(
|
|
@@ -3202,6 +3201,20 @@ function transfer(targetAgent, description, condition) {
|
|
|
3202
3201
|
return config;
|
|
3203
3202
|
}
|
|
3204
3203
|
|
|
3204
|
+
// src/default-status-schemas.ts
|
|
3205
|
+
var retrieveStatusSchema = {
|
|
3206
|
+
type: "retrieve",
|
|
3207
|
+
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.'
|
|
3208
|
+
};
|
|
3209
|
+
var actionStatusSchema = {
|
|
3210
|
+
type: "action",
|
|
3211
|
+
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.'
|
|
3212
|
+
};
|
|
3213
|
+
var defaultStatusSchemas = [
|
|
3214
|
+
retrieveStatusSchema,
|
|
3215
|
+
actionStatusSchema
|
|
3216
|
+
];
|
|
3217
|
+
|
|
3205
3218
|
// src/environment-settings.ts
|
|
3206
3219
|
function createEnvironmentSettings(environments) {
|
|
3207
3220
|
return {
|
|
@@ -3423,4 +3436,4 @@ var run = Runner.run.bind(Runner);
|
|
|
3423
3436
|
var stream = Runner.stream.bind(Runner);
|
|
3424
3437
|
var raceGraphs = Runner.raceGraphs.bind(Runner);
|
|
3425
3438
|
|
|
3426
|
-
export { Agent, ArtifactComponent, DataComponent, ExternalAgent, Project, Runner, Tool, agent, agentGraph, agentMcp, artifactComponent, createEnvironmentSettings, createFullProjectViaAPI, credential, dataComponent, deleteFullProjectViaAPI, externalAgent, externalAgents, getFullProjectViaAPI, mcpServer, mcpTool, project, raceGraphs, registerEnvironmentSettings, run, stream, transfer, updateFullProjectViaAPI };
|
|
3439
|
+
export { Agent, ArtifactComponent, DataComponent, ExternalAgent, Project, Runner, Tool, actionStatusSchema, agent, agentGraph, agentMcp, artifactComponent, createEnvironmentSettings, createFullProjectViaAPI, credential, dataComponent, defaultStatusSchemas, deleteFullProjectViaAPI, externalAgent, externalAgents, getFullProjectViaAPI, mcpServer, mcpTool, project, raceGraphs, registerEnvironmentSettings, retrieveStatusSchema, run, stream, transfer, updateFullProjectViaAPI };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-sdk",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20250924193535",
|
|
4
4
|
"description": "Agents SDK for building and managing agents in the Inkeep Agent Framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"nanoid": "^5.1.5",
|
|
10
10
|
"zod": "^4.1.5",
|
|
11
|
-
"@inkeep/agents-core": "^0.0.0-dev-
|
|
11
|
+
"@inkeep/agents-core": "^0.0.0-dev-20250924193535"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@types/node": "^20.11.24",
|