@@ -15,17 +15,13 @@ def new_agent_text_message(
1515 text : str ,
1616 context_id : str | None = None ,
1717 task_id : str | None = None ,
18- final : bool | None = None ,
19- metadata : dict [str , Any ] | None = None ,
2018) -> Message :
2119 """Creates a new agent message containing a single TextPart.
2220
2321 Args:
2422 text: The text content of the message.
2523 context_id: The context ID for the message.
2624 task_id: The task ID for the message.
27- final: Optional boolean indicating if this is the final message.
28- metadata: Optional metadata for the message.
2925
3026 Returns:
3127 A new `Message` object with role 'agent'.
@@ -36,26 +32,20 @@ def new_agent_text_message(
3632 messageId = str (uuid .uuid4 ()),
3733 taskId = task_id ,
3834 contextId = context_id ,
39- final = final ,
40- metadata = metadata ,
4135 )
4236
4337
4438def new_agent_parts_message (
4539 parts : list [Part ],
4640 context_id : str | None = None ,
4741 task_id : str | None = None ,
48- final : bool | None = None ,
49- metadata : dict [str , Any ] | None = None ,
5042):
5143 """Creates a new agent message containing a list of Parts.
5244
5345 Args:
5446 parts: The list of `Part` objects for the message content.
5547 context_id: The context ID for the message.
5648 task_id: The task ID for the message.
57- final: Optional boolean indicating if this is the final message.
58- metadata: Optional metadata for the message.
5949
6050 Returns:
6151 A new `Message` object with role 'agent'.
@@ -66,8 +56,6 @@ def new_agent_parts_message(
6656 messageId = str (uuid .uuid4 ()),
6757 taskId = task_id ,
6858 contextId = context_id ,
69- final = final ,
70- metadata = metadata ,
7159 )
7260
7361
0 commit comments