Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function main() {
// First run
const runState1 = await client.run({
// The agent id. Any agent on the store (https://codebuff.com/store)
agent: 'codebuff/base@0.0.16',
agent: 'codebuff/base@0.10.7',
prompt: 'Create a simple calculator class',
handleEvent: (event) => {
// All events that happen during the run: agent start/finish, tool calls/results, text responses, errors.
Expand All @@ -40,7 +40,7 @@ async function main() {

// Continue the same session with a follow-up
const runOrError2 = await client.run({
agent: 'codebuff/base@0.0.16',
agent: 'codebuff/base@0.10.7',
prompt: 'Add unit tests for the calculator',
previousRun: runState1, // <-- this is where your next run differs from the previous run
handleEvent: (event) => {
Expand Down Expand Up @@ -147,7 +147,7 @@ Override with `knowledgeFiles` (replaces project files) or `userKnowledgeFiles`

```typescript
await client.run({
agent: 'codebuff/base@0.0.16',
agent: 'codebuff/base@0.10.7',
prompt: 'Help me refactor',
knowledgeFiles: { 'knowledge.md': '# Guidelines\n- Use TypeScript' },
userKnowledgeFiles: { '~/.knowledge.md': '# Preferences\n- Be concise' },
Expand Down
4 changes: 2 additions & 2 deletions sdk/examples/readme-example-1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function main() {
// First run
const runState1 = await client.run({
// The agent id. Any agent on the store (https://codebuff.com/store)
agent: 'codebuff/base@0.0.16',
agent: 'codebuff/base@0.10.7',
prompt: 'Create a simple calculator class',
handleEvent: (event) => {
// All events that happen during the run: agent start/finish, tool calls/results, text responses, errors.
Expand All @@ -21,7 +21,7 @@ async function main() {

// Continue the same session with a follow-up
const _runOrError2 = await client.run({
agent: 'codebuff/base@0.0.16',
agent: 'codebuff/base@0.10.7',
prompt: 'Add unit tests for the calculator',
previousRun: runState1, // <-- this is where your next run differs from the previous run
handleEvent: (event) => {
Expand Down