@inkeep/agents-sdk 0.19.3 → 0.19.5

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 { ArtifactComponentInsert, MCPToolConfig as MCPToolConfig$1, CredentialReferenceApiInsert, DataComponentInsert, CredentialReferenceSelect, FunctionToolConfig, SubAgentApiInsert, DataComponentApiInsert, ArtifactComponentApiInsert, AgentConversationHistoryConfig, AgentStopWhen, ModelSettings, StatusUpdateSettings, FullAgentDefinition, ToolInsert, McpTransportConfig, StopWhen, SandboxConfig, FullProjectDefinition } from '@inkeep/agents-core';
1
+ import { ArtifactComponentInsert, MCPToolConfig as MCPToolConfig$1, DataComponentApiInsert, ArtifactComponentApiInsert, CredentialReferenceApiInsert, DataComponentInsert, CredentialReferenceSelect, FunctionToolConfig, SubAgentApiInsert, AgentConversationHistoryConfig, AgentStopWhen, ModelSettings, StatusUpdateSettings, FullAgentDefinition, ToolInsert, McpTransportConfig, StopWhen, SandboxConfig, FullProjectDefinition } from '@inkeep/agents-core';
2
2
  export { ANTHROPIC_MODELS, FunctionToolConfig, GOOGLE_MODELS, ModelSettings, OPENAI_MODELS, SandboxConfig } from '@inkeep/agents-core';
3
3
  import { z } from 'zod';
4
4
 
@@ -61,6 +61,48 @@ declare class Tool implements ToolInterface {
61
61
  private upsertTool;
62
62
  }
63
63
 
64
+ declare class SubAgent implements SubAgentInterface {
65
+ config: SubAgentConfig;
66
+ readonly type: "internal";
67
+ private baseURL;
68
+ private tenantId;
69
+ private projectId;
70
+ private initialized;
71
+ constructor(config: SubAgentConfig);
72
+ setContext(tenantId: string, projectId: string, baseURL?: string): void;
73
+ getId(): string;
74
+ getName(): string;
75
+ getInstructions(): string;
76
+ /**
77
+ * Get the agent's description (the human-readable description field)
78
+ */
79
+ getDescription(): string;
80
+ getTools(): Record<string, AgentTool>;
81
+ getModels(): typeof this$1.config.models;
82
+ setModels(models: typeof this$1.config.models): void;
83
+ getTransfers(): SubAgentInterface[];
84
+ getDelegates(): AllSubAgentInterface[];
85
+ getDataComponents(): DataComponentApiInsert[];
86
+ getArtifactComponents(): ArtifactComponentApiInsert[];
87
+ addTool(_name: string, tool: Tool): void;
88
+ addTransfer(...agents: SubAgentInterface[]): void;
89
+ addDelegate(...agents: AllSubAgentInterface[]): void;
90
+ init(): Promise<void>;
91
+ private upsertAgent;
92
+ private saveToolsAndRelations;
93
+ private saveDataComponents;
94
+ private saveArtifactComponents;
95
+ private loadDataComponents;
96
+ private loadArtifactComponents;
97
+ private createFunctionTool;
98
+ private createTool;
99
+ private createDataComponent;
100
+ private createArtifactComponent;
101
+ private createAgentDataComponentRelation;
102
+ private createAgentArtifactComponentRelation;
103
+ private createAgentToolRelation;
104
+ }
105
+
64
106
  /**
65
107
  * Function signature for transfer conditions
66
108
  */
@@ -507,48 +549,6 @@ interface BuilderAgentConfig {
507
549
  relations?: BuilderRelationConfig[];
508
550
  }
509
551
 
510
- declare class SubAgent implements SubAgentInterface {
511
- config: SubAgentConfig;
512
- readonly type: "internal";
513
- private baseURL;
514
- private tenantId;
515
- private projectId;
516
- private initialized;
517
- constructor(config: SubAgentConfig);
518
- setContext(tenantId: string, projectId: string, baseURL?: string): void;
519
- getId(): string;
520
- getName(): string;
521
- getInstructions(): string;
522
- /**
523
- * Get the agent's description (the human-readable description field)
524
- */
525
- getDescription(): string;
526
- getTools(): Record<string, AgentTool>;
527
- getModels(): typeof this$1.config.models;
528
- setModels(models: typeof this$1.config.models): void;
529
- getTransfers(): SubAgentInterface[];
530
- getDelegates(): AllSubAgentInterface[];
531
- getDataComponents(): DataComponentApiInsert[];
532
- getArtifactComponents(): ArtifactComponentApiInsert[];
533
- addTool(_name: string, tool: Tool): void;
534
- addTransfer(...agents: SubAgentInterface[]): void;
535
- addDelegate(...agents: AllSubAgentInterface[]): void;
536
- init(): Promise<void>;
537
- private upsertAgent;
538
- private saveToolsAndRelations;
539
- private saveDataComponents;
540
- private saveArtifactComponents;
541
- private loadDataComponents;
542
- private loadArtifactComponents;
543
- private createFunctionTool;
544
- private createTool;
545
- private createDataComponent;
546
- private createArtifactComponent;
547
- private createAgentDataComponentRelation;
548
- private createAgentArtifactComponentRelation;
549
- private createAgentToolRelation;
550
- }
551
-
552
552
  declare class Agent implements AgentInterface {
553
553
  private subAgents;
554
554
  private agentMap;
@@ -787,8 +787,8 @@ interface ProjectInterface {
787
787
  /**
788
788
  * Project class for managing agent projects
789
789
  *
790
- * Projects are the top-level organizational unit that contains agent, agents, and shared configurations.
791
- * They provide model inheritance and execution limits that cascade down to agent and agents.
790
+ * Projects are the top-level organizational unit that contains Agents, Sub Agents, and shared configurations.
791
+ * They provide model inheritance and execution limits that cascade down to Agents and Sub Agents.
792
792
  *
793
793
  * @example
794
794
  * ```typescript
@@ -931,8 +931,8 @@ declare function agent(config: AgentConfig): Agent;
931
931
  /**
932
932
  * Helper function to create projects - OpenAI style
933
933
  *
934
- * Projects are the top-level organizational unit that contains agent, agents, and shared configurations.
935
- * They provide model inheritance and execution limits that cascade down to agent and agents.
934
+ * Projects are the top-level organizational unit that contains Agents, Sub Agents, and shared configurations.
935
+ * They provide model inheritance and execution limits that cascade down to Agents and Sub Agents.
936
936
  *
937
937
  * @param config - Project configuration
938
938
  * @returns A new Project instance
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ArtifactComponentInsert, MCPToolConfig as MCPToolConfig$1, CredentialReferenceApiInsert, DataComponentInsert, CredentialReferenceSelect, FunctionToolConfig, SubAgentApiInsert, DataComponentApiInsert, ArtifactComponentApiInsert, AgentConversationHistoryConfig, AgentStopWhen, ModelSettings, StatusUpdateSettings, FullAgentDefinition, ToolInsert, McpTransportConfig, StopWhen, SandboxConfig, FullProjectDefinition } from '@inkeep/agents-core';
1
+ import { ArtifactComponentInsert, MCPToolConfig as MCPToolConfig$1, DataComponentApiInsert, ArtifactComponentApiInsert, CredentialReferenceApiInsert, DataComponentInsert, CredentialReferenceSelect, FunctionToolConfig, SubAgentApiInsert, AgentConversationHistoryConfig, AgentStopWhen, ModelSettings, StatusUpdateSettings, FullAgentDefinition, ToolInsert, McpTransportConfig, StopWhen, SandboxConfig, FullProjectDefinition } from '@inkeep/agents-core';
2
2
  export { ANTHROPIC_MODELS, FunctionToolConfig, GOOGLE_MODELS, ModelSettings, OPENAI_MODELS, SandboxConfig } from '@inkeep/agents-core';
3
3
  import { z } from 'zod';
4
4
 
@@ -61,6 +61,48 @@ declare class Tool implements ToolInterface {
61
61
  private upsertTool;
62
62
  }
63
63
 
64
+ declare class SubAgent implements SubAgentInterface {
65
+ config: SubAgentConfig;
66
+ readonly type: "internal";
67
+ private baseURL;
68
+ private tenantId;
69
+ private projectId;
70
+ private initialized;
71
+ constructor(config: SubAgentConfig);
72
+ setContext(tenantId: string, projectId: string, baseURL?: string): void;
73
+ getId(): string;
74
+ getName(): string;
75
+ getInstructions(): string;
76
+ /**
77
+ * Get the agent's description (the human-readable description field)
78
+ */
79
+ getDescription(): string;
80
+ getTools(): Record<string, AgentTool>;
81
+ getModels(): typeof this$1.config.models;
82
+ setModels(models: typeof this$1.config.models): void;
83
+ getTransfers(): SubAgentInterface[];
84
+ getDelegates(): AllSubAgentInterface[];
85
+ getDataComponents(): DataComponentApiInsert[];
86
+ getArtifactComponents(): ArtifactComponentApiInsert[];
87
+ addTool(_name: string, tool: Tool): void;
88
+ addTransfer(...agents: SubAgentInterface[]): void;
89
+ addDelegate(...agents: AllSubAgentInterface[]): void;
90
+ init(): Promise<void>;
91
+ private upsertAgent;
92
+ private saveToolsAndRelations;
93
+ private saveDataComponents;
94
+ private saveArtifactComponents;
95
+ private loadDataComponents;
96
+ private loadArtifactComponents;
97
+ private createFunctionTool;
98
+ private createTool;
99
+ private createDataComponent;
100
+ private createArtifactComponent;
101
+ private createAgentDataComponentRelation;
102
+ private createAgentArtifactComponentRelation;
103
+ private createAgentToolRelation;
104
+ }
105
+
64
106
  /**
65
107
  * Function signature for transfer conditions
66
108
  */
@@ -507,48 +549,6 @@ interface BuilderAgentConfig {
507
549
  relations?: BuilderRelationConfig[];
508
550
  }
509
551
 
510
- declare class SubAgent implements SubAgentInterface {
511
- config: SubAgentConfig;
512
- readonly type: "internal";
513
- private baseURL;
514
- private tenantId;
515
- private projectId;
516
- private initialized;
517
- constructor(config: SubAgentConfig);
518
- setContext(tenantId: string, projectId: string, baseURL?: string): void;
519
- getId(): string;
520
- getName(): string;
521
- getInstructions(): string;
522
- /**
523
- * Get the agent's description (the human-readable description field)
524
- */
525
- getDescription(): string;
526
- getTools(): Record<string, AgentTool>;
527
- getModels(): typeof this$1.config.models;
528
- setModels(models: typeof this$1.config.models): void;
529
- getTransfers(): SubAgentInterface[];
530
- getDelegates(): AllSubAgentInterface[];
531
- getDataComponents(): DataComponentApiInsert[];
532
- getArtifactComponents(): ArtifactComponentApiInsert[];
533
- addTool(_name: string, tool: Tool): void;
534
- addTransfer(...agents: SubAgentInterface[]): void;
535
- addDelegate(...agents: AllSubAgentInterface[]): void;
536
- init(): Promise<void>;
537
- private upsertAgent;
538
- private saveToolsAndRelations;
539
- private saveDataComponents;
540
- private saveArtifactComponents;
541
- private loadDataComponents;
542
- private loadArtifactComponents;
543
- private createFunctionTool;
544
- private createTool;
545
- private createDataComponent;
546
- private createArtifactComponent;
547
- private createAgentDataComponentRelation;
548
- private createAgentArtifactComponentRelation;
549
- private createAgentToolRelation;
550
- }
551
-
552
552
  declare class Agent implements AgentInterface {
553
553
  private subAgents;
554
554
  private agentMap;
@@ -787,8 +787,8 @@ interface ProjectInterface {
787
787
  /**
788
788
  * Project class for managing agent projects
789
789
  *
790
- * Projects are the top-level organizational unit that contains agent, agents, and shared configurations.
791
- * They provide model inheritance and execution limits that cascade down to agent and agents.
790
+ * Projects are the top-level organizational unit that contains Agents, Sub Agents, and shared configurations.
791
+ * They provide model inheritance and execution limits that cascade down to Agents and Sub Agents.
792
792
  *
793
793
  * @example
794
794
  * ```typescript
@@ -931,8 +931,8 @@ declare function agent(config: AgentConfig): Agent;
931
931
  /**
932
932
  * Helper function to create projects - OpenAI style
933
933
  *
934
- * Projects are the top-level organizational unit that contains agent, agents, and shared configurations.
935
- * They provide model inheritance and execution limits that cascade down to agent and agents.
934
+ * Projects are the top-level organizational unit that contains Agents, Sub Agents, and shared configurations.
935
+ * They provide model inheritance and execution limits that cascade down to Agents and Sub Agents.
936
936
  *
937
937
  * @param config - Project configuration
938
938
  * @returns A new Project instance