@inkeep/agents-sdk 0.0.0-dev-20251009194333 → 0.0.0-dev-20251009215610

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.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { MCPToolConfig as MCPToolConfig$1, ArtifactComponentInsert, CredentialReferenceApiInsert, DataComponentInsert, CredentialReferenceSelect, FunctionToolConfig, AgentApiInsert, ModelSettings, AgentStopWhen, DataComponentApiInsert, ArtifactComponentApiInsert, AgentConversationHistoryConfig, GraphStopWhen, StatusUpdateSettings, FullGraphDefinition, ToolInsert, McpTransportConfig, StopWhen, SandboxConfig, FullProjectDefinition } from '@inkeep/agents-core';
1
+ import { MCPToolConfig as MCPToolConfig$1, ArtifactComponentInsert, CredentialReferenceApiInsert, DataComponentInsert, CredentialReferenceSelect, FunctionToolConfig, SubAgentApiInsert, ModelSettings, AgentStopWhen, DataComponentApiInsert, ArtifactComponentApiInsert, AgentConversationHistoryConfig, GraphStopWhen, StatusUpdateSettings, FullGraphDefinition, ToolInsert, McpTransportConfig, StopWhen, SandboxConfig, FullProjectDefinition } from '@inkeep/agents-core';
2
2
  export { FunctionToolConfig, ModelSettings, SandboxConfig } from '@inkeep/agents-core';
3
3
  import { z } from 'zod';
4
4
 
@@ -291,7 +291,7 @@ interface ToolResult {
291
291
  }
292
292
  type AllAgentInterface = AgentInterface | ExternalAgentInterface;
293
293
  type AgentCanUseType = Tool | AgentMcpConfig | FunctionTool;
294
- interface AgentConfig extends Omit<AgentApiInsert, 'projectId'> {
294
+ interface AgentConfig extends Omit<SubAgentApiInsert, 'projectId'> {
295
295
  type?: 'internal';
296
296
  canUse?: () => AgentCanUseType[];
297
297
  canTransferTo?: () => AgentInterface[];
@@ -414,7 +414,7 @@ interface GraphConfig {
414
414
  id: string;
415
415
  name?: string;
416
416
  description?: string;
417
- defaultAgent?: AgentInterface;
417
+ defaultSubAgent?: AgentInterface;
418
418
  agents?: () => AllAgentInterface[];
419
419
  contextConfig?: any;
420
420
  credentials?: () => CredentialReferenceApiInsert[];
@@ -481,7 +481,7 @@ interface GraphInterface {
481
481
  generate(input: MessageInput, options?: GenerateOptions): Promise<string>;
482
482
  stream(input: MessageInput, options?: GenerateOptions): Promise<StreamResponse>;
483
483
  generateStream(input: MessageInput, options?: GenerateOptions): Promise<StreamResponse>;
484
- getDefaultAgent(): AgentInterface | undefined;
484
+ getdefaultSubAgent(): AgentInterface | undefined;
485
485
  getAgent(name: string): AllAgentInterface | undefined;
486
486
  getAgents(): AllAgentInterface[];
487
487
  toFullGraphDefinition(): Promise<FullGraphDefinition>;
@@ -557,7 +557,7 @@ declare class Agent implements AgentInterface {
557
557
  declare class AgentGraph implements GraphInterface {
558
558
  private agents;
559
559
  private agentMap;
560
- private defaultAgent?;
560
+ private defaultSubAgent?;
561
561
  private baseURL;
562
562
  private tenantId;
563
563
  private projectId;
@@ -610,7 +610,7 @@ declare class AgentGraph implements GraphInterface {
610
610
  /**
611
611
  * Run with a specific agent from the graph
612
612
  */
613
- runWith(agentId: string, input: MessageInput, options?: GenerateOptions): Promise<RunResult>;
613
+ runWith(subAgentId: string, input: MessageInput, options?: GenerateOptions): Promise<RunResult>;
614
614
  /**
615
615
  * Get an agent by name (unified method for all agent types)
616
616
  */
@@ -634,11 +634,11 @@ declare class AgentGraph implements GraphInterface {
634
634
  /**
635
635
  * Set the default agent
636
636
  */
637
- setDefaultAgent(agent: AgentInterface): void;
637
+ setdefaultSubAgent(agent: AgentInterface): void;
638
638
  /**
639
639
  * Get the default agent
640
640
  */
641
- getDefaultAgent(): AgentInterface | undefined;
641
+ getdefaultSubAgent(): AgentInterface | undefined;
642
642
  /**
643
643
  * Get the graph ID
644
644
  */
@@ -675,7 +675,7 @@ declare class AgentGraph implements GraphInterface {
675
675
  */
676
676
  getStats(): {
677
677
  agentCount: number;
678
- defaultAgent: string | null;
678
+ defaultSubAgent: string | null;
679
679
  initialized: boolean;
680
680
  graphId: string;
681
681
  tenantId: string;
@@ -1275,7 +1275,7 @@ declare class Runner {
1275
1275
  estimatedTurns: number;
1276
1276
  estimatedTokens: number;
1277
1277
  agentCount: number;
1278
- defaultAgent: string | undefined;
1278
+ defaultSubAgent: string | undefined;
1279
1279
  }>;
1280
1280
  }
1281
1281
  declare const run: typeof Runner.run;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { MCPToolConfig as MCPToolConfig$1, ArtifactComponentInsert, CredentialReferenceApiInsert, DataComponentInsert, CredentialReferenceSelect, FunctionToolConfig, AgentApiInsert, ModelSettings, AgentStopWhen, DataComponentApiInsert, ArtifactComponentApiInsert, AgentConversationHistoryConfig, GraphStopWhen, StatusUpdateSettings, FullGraphDefinition, ToolInsert, McpTransportConfig, StopWhen, SandboxConfig, FullProjectDefinition } from '@inkeep/agents-core';
1
+ import { MCPToolConfig as MCPToolConfig$1, ArtifactComponentInsert, CredentialReferenceApiInsert, DataComponentInsert, CredentialReferenceSelect, FunctionToolConfig, SubAgentApiInsert, ModelSettings, AgentStopWhen, DataComponentApiInsert, ArtifactComponentApiInsert, AgentConversationHistoryConfig, GraphStopWhen, StatusUpdateSettings, FullGraphDefinition, ToolInsert, McpTransportConfig, StopWhen, SandboxConfig, FullProjectDefinition } from '@inkeep/agents-core';
2
2
  export { FunctionToolConfig, ModelSettings, SandboxConfig } from '@inkeep/agents-core';
3
3
  import { z } from 'zod';
4
4
 
@@ -291,7 +291,7 @@ interface ToolResult {
291
291
  }
292
292
  type AllAgentInterface = AgentInterface | ExternalAgentInterface;
293
293
  type AgentCanUseType = Tool | AgentMcpConfig | FunctionTool;
294
- interface AgentConfig extends Omit<AgentApiInsert, 'projectId'> {
294
+ interface AgentConfig extends Omit<SubAgentApiInsert, 'projectId'> {
295
295
  type?: 'internal';
296
296
  canUse?: () => AgentCanUseType[];
297
297
  canTransferTo?: () => AgentInterface[];
@@ -414,7 +414,7 @@ interface GraphConfig {
414
414
  id: string;
415
415
  name?: string;
416
416
  description?: string;
417
- defaultAgent?: AgentInterface;
417
+ defaultSubAgent?: AgentInterface;
418
418
  agents?: () => AllAgentInterface[];
419
419
  contextConfig?: any;
420
420
  credentials?: () => CredentialReferenceApiInsert[];
@@ -481,7 +481,7 @@ interface GraphInterface {
481
481
  generate(input: MessageInput, options?: GenerateOptions): Promise<string>;
482
482
  stream(input: MessageInput, options?: GenerateOptions): Promise<StreamResponse>;
483
483
  generateStream(input: MessageInput, options?: GenerateOptions): Promise<StreamResponse>;
484
- getDefaultAgent(): AgentInterface | undefined;
484
+ getdefaultSubAgent(): AgentInterface | undefined;
485
485
  getAgent(name: string): AllAgentInterface | undefined;
486
486
  getAgents(): AllAgentInterface[];
487
487
  toFullGraphDefinition(): Promise<FullGraphDefinition>;
@@ -557,7 +557,7 @@ declare class Agent implements AgentInterface {
557
557
  declare class AgentGraph implements GraphInterface {
558
558
  private agents;
559
559
  private agentMap;
560
- private defaultAgent?;
560
+ private defaultSubAgent?;
561
561
  private baseURL;
562
562
  private tenantId;
563
563
  private projectId;
@@ -610,7 +610,7 @@ declare class AgentGraph implements GraphInterface {
610
610
  /**
611
611
  * Run with a specific agent from the graph
612
612
  */
613
- runWith(agentId: string, input: MessageInput, options?: GenerateOptions): Promise<RunResult>;
613
+ runWith(subAgentId: string, input: MessageInput, options?: GenerateOptions): Promise<RunResult>;
614
614
  /**
615
615
  * Get an agent by name (unified method for all agent types)
616
616
  */
@@ -634,11 +634,11 @@ declare class AgentGraph implements GraphInterface {
634
634
  /**
635
635
  * Set the default agent
636
636
  */
637
- setDefaultAgent(agent: AgentInterface): void;
637
+ setdefaultSubAgent(agent: AgentInterface): void;
638
638
  /**
639
639
  * Get the default agent
640
640
  */
641
- getDefaultAgent(): AgentInterface | undefined;
641
+ getdefaultSubAgent(): AgentInterface | undefined;
642
642
  /**
643
643
  * Get the graph ID
644
644
  */
@@ -675,7 +675,7 @@ declare class AgentGraph implements GraphInterface {
675
675
  */
676
676
  getStats(): {
677
677
  agentCount: number;
678
- defaultAgent: string | null;
678
+ defaultSubAgent: string | null;
679
679
  initialized: boolean;
680
680
  graphId: string;
681
681
  tenantId: string;
@@ -1275,7 +1275,7 @@ declare class Runner {
1275
1275
  estimatedTurns: number;
1276
1276
  estimatedTokens: number;
1277
1277
  agentCount: number;
1278
- defaultAgent: string | undefined;
1278
+ defaultSubAgent: string | undefined;
1279
1279
  }>;
1280
1280
  }
1281
1281
  declare const run: typeof Runner.run;