File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,17 @@ def create_text_message_object(
1212 extensions : list [Any ] | None = None ,
1313 metadata : dict [Any , Any ] | None = None ,
1414) -> Message :
15- """Create a Message object containing a single TextPart."""
15+ """Create a Message object containing a single TextPart.
16+
17+ Args:
18+ role: The role of the message sender (user or agent). Defaults to Role.user.
19+ content: The text content of the message. Defaults to an empty string.
20+ extensions: The extensions of the message. Defaults to an empty list.
21+ metadata: The metadata of the message. Defaults to an empty dictionary.
22+
23+ Returns:
24+ A `Message` object with a new UUID message_id.
25+ """
1626 return Message (
1727 role = role ,
1828 parts = [Part (TextPart (text = content or '' ))],
You can’t perform that action at this time.
0 commit comments