Spaces:
Runtime error
Runtime error
Commit
·
43dd578
1
Parent(s):
34aef60
Remove assigned_to field from CreateTaskTool for task creation in Notion
Browse files
agency_ai_demo/agents/NotionProjectAgent/tools/CreateTask.py
CHANGED
@@ -43,10 +43,10 @@ class CreateTaskTool(BaseTool):
|
|
43 |
description="Due date of the task in YYYY-MM-DD format.",
|
44 |
)
|
45 |
|
46 |
-
assigned_to: List[str] = Field(
|
47 |
-
|
48 |
-
|
49 |
-
)
|
50 |
|
51 |
content_blocks: List[Dict[str, Any]] = Field(
|
52 |
default=None,
|
@@ -118,9 +118,9 @@ class CreateTaskTool(BaseTool):
|
|
118 |
properties["Due Date"] = {"date": {"start": self.due_date}}
|
119 |
|
120 |
# Add assigned people if provided
|
121 |
-
if self.assigned_to:
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
|
126 |
return properties
|
|
|
43 |
description="Due date of the task in YYYY-MM-DD format.",
|
44 |
)
|
45 |
|
46 |
+
# assigned_to: List[str] = Field(
|
47 |
+
# default=None,
|
48 |
+
# description="List of user IDs to assign the task to.",
|
49 |
+
# )
|
50 |
|
51 |
content_blocks: List[Dict[str, Any]] = Field(
|
52 |
default=None,
|
|
|
118 |
properties["Due Date"] = {"date": {"start": self.due_date}}
|
119 |
|
120 |
# Add assigned people if provided
|
121 |
+
# if self.assigned_to:
|
122 |
+
# properties["Assigned to"] = {
|
123 |
+
# "people": [{"id": user_id} for user_id in self.assigned_to]
|
124 |
+
# }
|
125 |
|
126 |
return properties
|