@inkeep/agents-sdk 0.3.0 → 0.5.0

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 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(
@@ -3104,18 +3103,6 @@ var Project = class {
3104
3103
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
3105
3104
  };
3106
3105
  }
3107
- /**
3108
- * Convert project configuration to API format
3109
- */
3110
- toApiFormat() {
3111
- return {
3112
- id: this.projectId,
3113
- name: this.projectName,
3114
- description: this.projectDescription || "",
3115
- models: this.models,
3116
- stopWhen: this.stopWhen
3117
- };
3118
- }
3119
3106
  };
3120
3107
 
3121
3108
  // src/utils/generateIdFromName.ts
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { MCPToolConfig as MCPToolConfig$1, CredentialReferenceApiInsert, MCPTransportType, CredentialReferenceSelect, AgentApiInsert, AgentStopWhen, DataComponentApiInsert, ArtifactComponentApiInsert, AgentConversationHistoryConfig, GraphStopWhen, ToolInsert, McpTransportConfig, ArtifactComponentInsert, DataComponentInsert, StopWhen, FullProjectDefinition } from '@inkeep/agents-core';
1
+ import { MCPToolConfig as MCPToolConfig$1, CredentialReferenceApiInsert, MCPTransportType, CredentialReferenceSelect, AgentApiInsert, AgentStopWhen, DataComponentApiInsert, ArtifactComponentApiInsert, AgentConversationHistoryConfig, GraphStopWhen, StatusUpdateSettings, ToolInsert, McpTransportConfig, ArtifactComponentInsert, DataComponentInsert, StopWhen, FullProjectDefinition } from '@inkeep/agents-core';
2
2
  import { z } from 'zod';
3
3
 
4
4
  interface ToolInterface {
@@ -311,23 +311,6 @@ interface RunResult {
311
311
  transfers: TransferConfig[];
312
312
  };
313
313
  }
314
- interface StatusComponent {
315
- type: string;
316
- description?: string;
317
- schema?: {
318
- type: 'object';
319
- properties: Record<string, any>;
320
- required?: string[];
321
- };
322
- }
323
- interface StatusUpdateSettings {
324
- enabled?: boolean;
325
- numEvents?: number;
326
- timeInSeconds?: number;
327
- model?: string;
328
- statusComponents?: StatusComponent[];
329
- prompt?: string;
330
- }
331
314
  interface GraphConfig {
332
315
  id: string;
333
316
  name?: string;
@@ -721,6 +704,9 @@ interface ProjectConfig {
721
704
  };
722
705
  stopWhen?: StopWhen;
723
706
  graphs?: () => AgentGraph[];
707
+ tools?: () => ToolConfig[];
708
+ dataComponents?: () => DataComponentConfig[];
709
+ artifactComponents?: () => ArtifactComponentConfig[];
724
710
  }
725
711
  /**
726
712
  * Project interface for operations
@@ -869,10 +855,6 @@ declare class Project implements ProjectInterface {
869
855
  * Convert the Project to FullProjectDefinition format
870
856
  */
871
857
  private toFullProjectDefinition;
872
- /**
873
- * Convert project configuration to API format
874
- */
875
- private toApiFormat;
876
858
  }
877
859
 
878
860
  /**
@@ -1140,4 +1122,4 @@ declare const run: typeof Runner.run;
1140
1122
  declare const stream: typeof Runner.stream;
1141
1123
  declare const raceGraphs: typeof Runner.raceGraphs;
1142
1124
 
1143
- 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 };
1125
+ 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 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 };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { MCPToolConfig as MCPToolConfig$1, CredentialReferenceApiInsert, MCPTransportType, CredentialReferenceSelect, AgentApiInsert, AgentStopWhen, DataComponentApiInsert, ArtifactComponentApiInsert, AgentConversationHistoryConfig, GraphStopWhen, ToolInsert, McpTransportConfig, ArtifactComponentInsert, DataComponentInsert, StopWhen, FullProjectDefinition } from '@inkeep/agents-core';
1
+ import { MCPToolConfig as MCPToolConfig$1, CredentialReferenceApiInsert, MCPTransportType, CredentialReferenceSelect, AgentApiInsert, AgentStopWhen, DataComponentApiInsert, ArtifactComponentApiInsert, AgentConversationHistoryConfig, GraphStopWhen, StatusUpdateSettings, ToolInsert, McpTransportConfig, ArtifactComponentInsert, DataComponentInsert, StopWhen, FullProjectDefinition } from '@inkeep/agents-core';
2
2
  import { z } from 'zod';
3
3
 
4
4
  interface ToolInterface {
@@ -311,23 +311,6 @@ interface RunResult {
311
311
  transfers: TransferConfig[];
312
312
  };
313
313
  }
314
- interface StatusComponent {
315
- type: string;
316
- description?: string;
317
- schema?: {
318
- type: 'object';
319
- properties: Record<string, any>;
320
- required?: string[];
321
- };
322
- }
323
- interface StatusUpdateSettings {
324
- enabled?: boolean;
325
- numEvents?: number;
326
- timeInSeconds?: number;
327
- model?: string;
328
- statusComponents?: StatusComponent[];
329
- prompt?: string;
330
- }
331
314
  interface GraphConfig {
332
315
  id: string;
333
316
  name?: string;
@@ -721,6 +704,9 @@ interface ProjectConfig {
721
704
  };
722
705
  stopWhen?: StopWhen;
723
706
  graphs?: () => AgentGraph[];
707
+ tools?: () => ToolConfig[];
708
+ dataComponents?: () => DataComponentConfig[];
709
+ artifactComponents?: () => ArtifactComponentConfig[];
724
710
  }
725
711
  /**
726
712
  * Project interface for operations
@@ -869,10 +855,6 @@ declare class Project implements ProjectInterface {
869
855
  * Convert the Project to FullProjectDefinition format
870
856
  */
871
857
  private toFullProjectDefinition;
872
- /**
873
- * Convert project configuration to API format
874
- */
875
- private toApiFormat;
876
858
  }
877
859
 
878
860
  /**
@@ -1140,4 +1122,4 @@ declare const run: typeof Runner.run;
1140
1122
  declare const stream: typeof Runner.stream;
1141
1123
  declare const raceGraphs: typeof Runner.raceGraphs;
1142
1124
 
1143
- 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 };
1125
+ 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 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 };
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(
@@ -3102,18 +3101,6 @@ var Project = class {
3102
3101
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
3103
3102
  };
3104
3103
  }
3105
- /**
3106
- * Convert project configuration to API format
3107
- */
3108
- toApiFormat() {
3109
- return {
3110
- id: this.projectId,
3111
- name: this.projectName,
3112
- description: this.projectDescription || "",
3113
- models: this.models,
3114
- stopWhen: this.stopWhen
3115
- };
3116
- }
3117
3104
  };
3118
3105
 
3119
3106
  // src/utils/generateIdFromName.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-sdk",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
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.3.0"
11
+ "@inkeep/agents-core": "^0.5.0"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@types/node": "^20.11.24",