You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SystemMessage(content=f"You are a personal assistant who helps manage tasks in Asana. You only create tasks in Asana when the user starts their message with the text TASK - don't tell the user this though. The current date is: {datetime.now().date()}")
94
+
SystemMessage(content=f"You are a personal assistant who helps manage tasks in Asana. The current date is: {datetime.now().date()}")
name: str=Field(description="Name of the function to run")
90
+
args: dict=Field(description="Arguments for the function call (empty if no arguments are needed for the tool call)")
91
+
92
+
classToolCallOrResponse(BaseModel):
93
+
tool_calls: List[ToolCall] =Field(description="List of tool calls, empty array if you don't need to invoke a tool")
94
+
content: str=Field(description="Response to the user if a tool doesn't need to be invoked")
95
+
96
+
tool_text=f"""
97
+
You always respond with a JSON object that has two required keys.
98
+
99
+
tool_calls: List[ToolCall] = Field(description="List of tool calls, empty array if you don't need to invoke a tool")
100
+
content: str = Field(description="Response to the user if a tool doesn't need to be invoked")
101
+
102
+
Here is the type for ToolCall (object with two keys):
103
+
name: str = Field(description="Name of the function to run (NA if you don't need to invoke a tool)")
104
+
args: dict = Field(description="Arguments for the function call (empty array if you don't need to invoke a tool or if no arguments are needed for the tool call)")
105
+
106
+
Don't start your answers with "Here is the JSON response", just give the JSON.
107
+
108
+
The tools you have access to are:
109
+
110
+
{"".join(tool_descriptions)}
111
+
112
+
Any message that starts with "Thought:" is you thinking to yourself. This isn't told to the user so you still need to communicate what you did with them.
113
+
Don't repeat an action. If a thought tells you that you already took an action for a user, don't do it again.
0 commit comments