Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanksdesign committed Nov 15, 2024
1 parent bbca9e6 commit 286b231
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 5 additions & 1 deletion src/pages/[platform]/ai/conversation/history/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ const { data: conversation } = await client.conversations.chat.get({ id: convers
const { data: messages } = await conversation.listMessages();

// You can now send a message to the conversation
conversation.sendMessage({})
conversation.sendMessage({
content: [
{text: "hello"}
]
})
```

</InlineFilter>
Expand Down
10 changes: 4 additions & 6 deletions src/pages/[platform]/ai/conversation/tools/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,10 @@ const thermometer: ExecutableTool = {
name: 'thermometer',
description: 'Returns current temperature in a city',
execute: (input): Promise<ToolResultContentBlock> => {
if (input && typeof input === 'object' && 'city' in input) {
if (input.city === 'Seattle') {
return Promise.resolve({
text: `75F`,
});
}
if (input.city === 'Seattle') {
return Promise.resolve({
text: `75F`,
});
}
return Promise.resolve({
text: 'unknown'
Expand Down

0 comments on commit 286b231

Please sign in to comment.