create-agentuity 0.0.67 → 0.0.68
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 +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -76,18 +76,18 @@ Runs TypeScript type checking
|
|
|
76
76
|
|
|
77
77
|
After creating your project:
|
|
78
78
|
|
|
79
|
-
1. **Customize the example agent** - Edit `src/
|
|
80
|
-
2. **Add new agents** - Create new folders in `src/
|
|
81
|
-
3. **Add API routes** - Create new routes in `src/
|
|
79
|
+
1. **Customize the example agent** - Edit `src/agent/hello/agent.ts`
|
|
80
|
+
2. **Add new agents** - Create new folders in `src/agent/`
|
|
81
|
+
3. **Add API routes** - Create new routes in `src/web/`
|
|
82
82
|
4. **Customize the UI** - Edit `src/web/app.tsx`
|
|
83
83
|
5. **Configure your app** - Modify `app.ts` to add middleware, configure services, etc.
|
|
84
84
|
|
|
85
85
|
## Creating Custom Agents
|
|
86
86
|
|
|
87
|
-
Create a new agent by adding a folder in `src/
|
|
87
|
+
Create a new agent by adding a folder in `src/agent/`:
|
|
88
88
|
|
|
89
89
|
```typescript
|
|
90
|
-
// src/
|
|
90
|
+
// src/agent/my-agent/agent.ts
|
|
91
91
|
import { type AgentContext, createAgent } from '@agentuity/runtime';
|
|
92
92
|
import { z } from 'zod';
|
|
93
93
|
|
|
@@ -113,10 +113,10 @@ export default agent;
|
|
|
113
113
|
|
|
114
114
|
## Adding API Routes
|
|
115
115
|
|
|
116
|
-
Create custom routes in `src/
|
|
116
|
+
Create custom routes in `src/web/` or add routes to an agent folder:
|
|
117
117
|
|
|
118
118
|
```typescript
|
|
119
|
-
// src/
|
|
119
|
+
// src/agent/my-agent/route.ts
|
|
120
120
|
import { createRouter } from '@agentuity/runtime';
|
|
121
121
|
import { zValidator } from '@hono/zod-validator';
|
|
122
122
|
import agent from './agent';
|