Skip to content

Commit 33744bf

Browse files
committed
Add README
1 parent c6cbf65 commit 33744bf

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Create Rubric App
2+
3+
The fastest, safest way to bootstrap an AI chat app.
4+
15
```sh
26
bun x create-rubric-app@latest init
37
```
8+
9+
With:
10+
11+
- 🔒 Auth
12+
- 🛠️ Type-safe tool-calling and response shaping
13+
- 💬 Type-safe event streaming
14+
- 💾 Persistence
15+
- 🎨 Default styling

templates/chat/src/lib/agents/todo.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createAgent, createResponseFormat } from '@rubriclab/agents'
1+
import { createAgent, createResponseFormat, noTabs } from '@rubriclab/agents'
22
import { z } from 'zod/v4'
33
import createTodo from '~/tools/createTodo'
44
import getTodoList from '~/tools/getTodoList'
@@ -10,10 +10,11 @@ const responseFormat = createResponseFormat({
1010
})
1111
})
1212

13-
const systemPrompt =
14-
'You are a todo agent. The user will ask you to do CRUD operations against a TODO database. You should use tools to help them.'
15-
16-
// console.dir(responseFormat, { depth: null })
13+
const systemPrompt = noTabs`
14+
You are a todo agent.
15+
The user will ask you to do CRUD operations against a TODO database.
16+
You should use tools to help them.
17+
`
1718

1819
const { executeAgent, eventTypes, __ToolEvent, __ResponseEvent } = createAgent({
1920
model: 'gpt-4.1-mini',

0 commit comments

Comments
 (0)