@inkeep/agents-sdk 0.0.0-dev-20251012045242 → 0.0.0-dev-20251012052609

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/README.md CHANGED
@@ -11,23 +11,23 @@ npm install @inkeep/agents-sdk
11
11
  ## Usage
12
12
 
13
13
  ```typescript
14
- import { agent, agentGraph, tool } from '@inkeep/agents-sdk';
14
+ import { agent, subAgent, tool } from '@inkeep/agents-sdk';
15
+
16
+ // Create a sub-agent
17
+ const mySubAgent = subAgent({
18
+ id: 'my-sub-agent',
19
+ name: 'My Sub Agent',
20
+ description: 'A helpful sub-agent',
21
+ prompt: 'You are a helpful assistant.',
22
+ });
15
23
 
16
24
  // Create an agent
17
- const myAgent = agent({
25
+ export const myAgent = agent({
18
26
  id: 'my-agent',
19
27
  name: 'My Agent',
20
- description: 'A helpful agent',
21
- instructions: 'You are a helpful assistant.',
22
- });
23
-
24
- // Create a graph
25
- export const graph = agentGraph({
26
- id: 'my-graph',
27
- name: 'My Graph',
28
- description: 'My agent graph',
29
- defaultSubAgent: myAgent,
30
- subAgents: () => [myAgent],
28
+ description: 'My agent',
29
+ defaultSubAgent: mySubAgent,
30
+ subAgents: () => [mySubAgent],
31
31
  });
32
32
  ```
33
33
 
@@ -35,8 +35,8 @@ export const graph = agentGraph({
35
35
 
36
36
  ### Builders
37
37
 
38
- - `agent()` - Create an agent configuration
39
- - `agentGraph()` - Create an agent graph
38
+ - `agent()` - Create an agent (top-level container with multiple sub-agents)
39
+ - `subAgent()` - Create a sub-agent configuration
40
40
  - `tool()` - Create a tool configuration
41
41
  - `mcpServer()` - Create an MCP server configuration
42
42
  - `mcpTool()` - Create an MCP tool
package/dist/index.cjs CHANGED
@@ -1823,7 +1823,7 @@ var Agent = class {
1823
1823
  agentId: this.agentId,
1824
1824
  agentCount: this.subAgents.length
1825
1825
  },
1826
- "Initializing agent agent using new agent endpoint"
1826
+ "Initializing agent using new agent endpoint"
1827
1827
  );
1828
1828
  try {
1829
1829
  await this.initializeAllTools();
@@ -1849,7 +1849,7 @@ var Agent = class {
1849
1849
  agentId: this.agentId,
1850
1850
  agentCount: Object.keys(createdAgent.subAgents || {}).length
1851
1851
  },
1852
- "Agent agent initialized successfully using agent endpoint"
1852
+ "Agent initialized successfully using agent endpoint"
1853
1853
  );
1854
1854
  this.initialized = true;
1855
1855
  } catch (error) {
@@ -1858,7 +1858,7 @@ var Agent = class {
1858
1858
  agentId: this.agentId,
1859
1859
  error: error instanceof Error ? error.message : "Unknown error"
1860
1860
  },
1861
- "Failed to initialize agent agent using agent endpoint"
1861
+ "Failed to initialize agent using agent endpoint"
1862
1862
  );
1863
1863
  throw error;
1864
1864
  }
@@ -1877,7 +1877,7 @@ var Agent = class {
1877
1877
  agentId: this.agentId,
1878
1878
  agentCount: this.subAgents.length
1879
1879
  },
1880
- "Initializing agent agent"
1880
+ "Initializing agent"
1881
1881
  );
1882
1882
  try {
1883
1883
  if (this.contextConfig) {
@@ -1924,7 +1924,7 @@ var Agent = class {
1924
1924
  agentId: this.agentId,
1925
1925
  agentCount: this.subAgents.length
1926
1926
  },
1927
- "Agent agent initialized successfully"
1927
+ "Agent initialized successfully"
1928
1928
  );
1929
1929
  } catch (error) {
1930
1930
  logger8.error(
@@ -1932,7 +1932,7 @@ var Agent = class {
1932
1932
  agentId: this.agentId,
1933
1933
  error: error instanceof Error ? error.message : "Unknown error"
1934
1934
  },
1935
- "Failed to initialize agent agent"
1935
+ "Failed to initialize agent"
1936
1936
  );
1937
1937
  throw error;
1938
1938
  }
package/dist/index.js CHANGED
@@ -1796,7 +1796,7 @@ var Agent = class {
1796
1796
  agentId: this.agentId,
1797
1797
  agentCount: this.subAgents.length
1798
1798
  },
1799
- "Initializing agent agent using new agent endpoint"
1799
+ "Initializing agent using new agent endpoint"
1800
1800
  );
1801
1801
  try {
1802
1802
  await this.initializeAllTools();
@@ -1822,7 +1822,7 @@ var Agent = class {
1822
1822
  agentId: this.agentId,
1823
1823
  agentCount: Object.keys(createdAgent.subAgents || {}).length
1824
1824
  },
1825
- "Agent agent initialized successfully using agent endpoint"
1825
+ "Agent initialized successfully using agent endpoint"
1826
1826
  );
1827
1827
  this.initialized = true;
1828
1828
  } catch (error) {
@@ -1831,7 +1831,7 @@ var Agent = class {
1831
1831
  agentId: this.agentId,
1832
1832
  error: error instanceof Error ? error.message : "Unknown error"
1833
1833
  },
1834
- "Failed to initialize agent agent using agent endpoint"
1834
+ "Failed to initialize agent using agent endpoint"
1835
1835
  );
1836
1836
  throw error;
1837
1837
  }
@@ -1850,7 +1850,7 @@ var Agent = class {
1850
1850
  agentId: this.agentId,
1851
1851
  agentCount: this.subAgents.length
1852
1852
  },
1853
- "Initializing agent agent"
1853
+ "Initializing agent"
1854
1854
  );
1855
1855
  try {
1856
1856
  if (this.contextConfig) {
@@ -1897,7 +1897,7 @@ var Agent = class {
1897
1897
  agentId: this.agentId,
1898
1898
  agentCount: this.subAgents.length
1899
1899
  },
1900
- "Agent agent initialized successfully"
1900
+ "Agent initialized successfully"
1901
1901
  );
1902
1902
  } catch (error) {
1903
1903
  logger8.error(
@@ -1905,7 +1905,7 @@ var Agent = class {
1905
1905
  agentId: this.agentId,
1906
1906
  error: error instanceof Error ? error.message : "Unknown error"
1907
1907
  },
1908
- "Failed to initialize agent agent"
1908
+ "Failed to initialize agent"
1909
1909
  );
1910
1910
  throw error;
1911
1911
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-sdk",
3
- "version": "0.0.0-dev-20251012045242",
3
+ "version": "0.0.0-dev-20251012052609",
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",
@@ -12,7 +12,7 @@
12
12
  "nanoid": "^5.1.5",
13
13
  "typescript": "^5.3.3",
14
14
  "zod": "^4.1.11",
15
- "@inkeep/agents-core": "^0.0.0-dev-20251012045242"
15
+ "@inkeep/agents-core": "^0.0.0-dev-20251012052609"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/js-yaml": "^4.0.9",