Skip to content

Commit 7035674

Browse files
authored
Merge pull request #409 from nas887/feature/assistant-message-updates
add documentation that shows how to update a message
2 parents 29078f5 + d1249bd commit 7035674

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,15 @@ new_messages.each { |msg|
712712
}
713713
```
714714

715+
You can also update the metadata on messages, including messages that come from the assistant.
716+
717+
```ruby
718+
metadata = {
719+
user_id: "abc123"
720+
}
721+
message = client.messages.modify(id: message_id, thread_id: thread_id, parameters: { metadata: metadata })
722+
```
723+
715724
At any time you can list all runs which have been performed on a particular thread or are currently running:
716725

717726
```ruby

0 commit comments

Comments
 (0)