@inkeep/agents-sdk 0.18.1 → 0.19.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/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