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 ea3ca62 commit 67e9be0Copy full SHA for 67e9be0
articles/ai-services/agents/how-to/tools/bing-grounding.md
@@ -290,7 +290,22 @@ ThreadMessage message = agentClient.CreateMessage(
290
"How does wikipedia explain Euler's Identity?");
291
```
292
293
+# [JavaScript](#javascript)
294
+
295
+```javascript
296
+// create a thread
297
+const thread = await client.agents.createThread();
298
299
+// add a message to thread
300
+await client.agents.createMessage(
301
+ thread.id, {
302
+ role: "user",
303
+ content: "What is the weather in Seattle?",
304
+});
305
+```
306
307
# [REST API](#tab/rest)
308
309
### Create a thread
310
311
```console
0 commit comments