Skip to content

Commit 04006eb

Browse files
committed
Trigger release
1 parent 60f798b commit 04006eb

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- [2025-12-11] [Trigger release](https://github.com/RubricLab/agents/commit/a20ba71d6077a243583fdac901a6825dde0d0e30)
12
- [2025-12-06] [Support reasoning effort. Add agent unit test.](https://github.com/RubricLab/agents/commit/154de7bcf031219a3f04814109172b38b32f4730)
23
- [2025-12-06] [Support reasoning model agents](https://github.com/RubricLab/agents/commit/c0c00dadc63e694fb73581c574fff1e382edaa5b)
34
- [2025-12-04] [Pin versions](https://github.com/RubricLab/agents/commit/286146b75f68750ff26608abe0105a03cceff3e5)

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ const result = await generateObject({
5050

5151
### Agent with Tools
5252
A tool agent will recurse until it has what it needs to export a final answer.
53-
By default, the format of the final answer is { answer: string }
53+
By default, the format of the final answer is `{ answer: string }`.
54+
5455
```ts
5556
import { createAgent, createTool } from '@rubriclab/agents'
5657
import { z } from 'zod'
@@ -70,6 +71,7 @@ const { executeAgent, eventTypes, __ToolEvent, __ResponseEvent } = createAgent({
7071
tools: { getWeather: weatherTool }
7172
})
7273
```
74+
7375
```ts
7476
// Execute the agent
7577

@@ -102,6 +104,7 @@ export async function sendMessage({ userId, message }: { userId: string; message
102104
### Response Format
103105
You can override the default response format and agents that return complex types.
104106
Supplying an agent BOTH tools and response format will cause the agent to recurse using tools, and when ready, the response in the right format.
107+
105108
```ts
106109
const responseFormat = createResponseFormat({
107110
name: 'research_results',
@@ -111,6 +114,7 @@ const responseFormat = createResponseFormat({
111114
})
112115
})
113116
```
117+
114118
```ts
115119
const { executeAgent } = createAgent({
116120
systemPrompt,
@@ -122,7 +126,8 @@ const { executeAgent } = createAgent({
122126
## Usage with other packages
123127

124128
### Usage with [@rubriclab/events](https://github.com/RubricLab/events)
125-
The `createAgent(...)` function returns `eventTypes` which is a record of zod types.
129+
The `createAgent(...)` function returns `eventTypes` which is a record of Zod types.
130+
126131
```ts
127132
const { executeAgent, eventTypes } = createAgent({
128133
systemPrompt,
@@ -144,6 +149,7 @@ export const eventTypes = createEventTypes({
144149
```
145150

146151
You can then publish them safely:
152+
147153
```ts
148154
import env from '~/env'
149155
import { executeResearchAgent } from './agent'
@@ -174,6 +180,7 @@ await executeResearchAgent({
174180
```
175181

176182
And consume them on the client with end to end safety:
183+
177184
```ts
178185
useEvents({
179186
id: userId,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
"simple-git-hooks": {
2121
"post-commit": "bun x @rubriclab/package post-commit"
2222
},
23-
"version": "0.0.73"
23+
"version": "0.0.74"
2424
}

0 commit comments

Comments
 (0)