We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5de2f2 commit 59bbc2fCopy full SHA for 59bbc2f
README.md
@@ -243,8 +243,13 @@ const agent = new Agent({
243
244
245
await agent.loadTools();
246
-for await (const chunk of agent.run("Draw a picture of a cat wearing a top hat. Then caption the picture and read it out loud.")) {
247
- console.log(chunk);
+for await (const chunk of agent.run("What are the top 5 trending models on Hugging Face?")) {
+ if ("choices" in chunk) {
248
+ const delta = chunk.choices[0]?.delta;
249
+ if (delta.content) {
250
+ console.log(delta.content);
251
+ }
252
253
}
254
```
255
0 commit comments