Skip to content

Commit 2786ff5

Browse files
authored
Update handleAllEvents.ts - Strict equality (#204)
Just a tiny change, but with big energy. Swapped out == for === because, well… we like our comparisons like we like our coffee — strong and unambiguous. ☕️
1 parent ed66acf commit 2786ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/docs/streaming/handleAllEvents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ for await (const event of result) {
1616
console.log(`${event.type} %o`, event.data);
1717
}
1818
// agent updated events
19-
if (event.type == 'agent_updated_stream_event') {
19+
if (event.type === 'agent_updated_stream_event') {
2020
console.log(`${event.type} %s`, event.agent.name);
2121
}
2222
// Agent SDK specific events

0 commit comments

Comments
 (0)