File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
src/pages/[platform]/ai/conversation Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,11 @@ const { data: conversation } = await client.conversations.chat.get({ id: convers
82
82
const { data : messages } = await conversation .listMessages ();
83
83
84
84
// You can now send a message to the conversation
85
- conversation .sendMessage ({})
85
+ conversation .sendMessage ({
86
+ content: [
87
+ {text: " hello" }
88
+ ]
89
+ })
86
90
```
87
91
88
92
</InlineFilter >
Original file line number Diff line number Diff line change @@ -229,12 +229,10 @@ const thermometer: ExecutableTool = {
229
229
name: ' thermometer' ,
230
230
description: ' Returns current temperature in a city' ,
231
231
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
+ });
238
236
}
239
237
return Promise .resolve ({
240
238
text: ' unknown'
You can’t perform that action at this time.
0 commit comments