Skip to content

Commit 286b231

Browse files
committed
updates
1 parent bbca9e6 commit 286b231

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/pages/[platform]/ai/conversation/history/index.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ const { data: conversation } = await client.conversations.chat.get({ id: convers
8282
const { data: messages } = await conversation.listMessages();
8383

8484
// You can now send a message to the conversation
85-
conversation.sendMessage({})
85+
conversation.sendMessage({
86+
content: [
87+
{text: "hello"}
88+
]
89+
})
8690
```
8791

8892
</InlineFilter>

src/pages/[platform]/ai/conversation/tools/index.mdx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,10 @@ const thermometer: ExecutableTool = {
229229
name: 'thermometer',
230230
description: 'Returns current temperature in a city',
231231
execute: (input): Promise<ToolResultContentBlock> => {
232-
if (input && typeof input === 'object' && 'city' in input) {
233-
if (input.city === 'Seattle') {
234-
return Promise.resolve({
235-
text: `75F`,
236-
});
237-
}
232+
if (input.city === 'Seattle') {
233+
return Promise.resolve({
234+
text: `75F`,
235+
});
238236
}
239237
return Promise.resolve({
240238
text: 'unknown'

0 commit comments

Comments
 (0)