add missing .with_recipient('assistant') to tool message in demo code

This commit is contained in:
Amirhossein Ghanipour 2025-08-18 01:22:23 +03:30
parent 508cbaa7f6
commit 72de695703

View file

@ -100,7 +100,9 @@ convo = Conversation.from_messages(
Message.from_author_and_content(
Author.new(Role.TOOL, "functions.lookup_weather"),
'{ "temperature": 20, "sunny": true }',
).with_channel("commentary"),
)
.with_channel("commentary")
.with_recipient("assistant"),
]
)