We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ace76c3 commit d306123Copy full SHA for d306123
sdk/README.md
@@ -31,6 +31,9 @@ async function main() {
31
const run1 = await client.run({
32
agent: 'base',
33
prompt: 'Create a simple calculator class',
34
+ handleEvent: (event) => {
35
+ console.log(event) // Log all events
36
+ },
37
})
38
39
// Continue the same session with a follow-up
@@ -39,8 +42,7 @@ async function main() {
42
prompt: 'Add unit tests for the calculator',
40
43
previousRun: run1,
41
44
handleEvent: (event) => {
- // Log all events
- console.log('Progress:', event)
45
46
},
47
48
0 commit comments