Skip to content

Commit 5dc7949

Browse files
authored
Python: Use the public URI constructor in the Message example (#9332)
Assisted-by: OpenAI Codex
1 parent bfc4fdb commit 5dc7949

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • python/packages/core/agent_framework

‎python/packages/core/agent_framework/_types.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2321,7 +2321,7 @@ class Message(SerializationMixin):
23212321
# Create a message with mixed content types
23222322
assistant_msg = Message(
23232323
"assistant",
2324-
["The weather is sunny!", Content.from_image_uri("https://...")],
2324+
["The weather is sunny!", Content.from_uri("https://example.com/image.png", media_type="image/png")],
23252325
)
23262326
print(assistant_msg.text) # "The weather is sunny!"
23272327

0 commit comments

Comments
 (0)