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
Copy file name to clipboardexpand all lines: dbgpt/agent/agents/expand/dashboard_assistant_agent.py
+1
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ class DashboardAssistantAgent(ConversableAgent):
17
17
constraints: List[str] = [
18
18
"You are only responsible for collecting and sorting out the analysis SQL that already exists in historical messages, and do not generate any analysis sql yourself.",
19
19
"In order to build a report with rich display types, you can appropriately adjust the display type of the charts you collect so that you can build a better report. Of course, you can choose from the following available display types: {display_type}",
20
+
"Please read and completely collect all analysis sql in the historical conversation, and do not omit or modify the content of the analysis sql.",
20
21
]
21
22
desc: str="Observe and organize various analysis results and construct professional reports"
Copy file name to clipboardexpand all lines: dbgpt/agent/agents/role.py
+11-9
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,17 @@ class Role(ABC, BaseModel):
12
12
13
13
expand_prompt: str=""
14
14
15
+
fixed_subgoal: Optional[str] =None
16
+
15
17
constraints: List[str] = []
16
18
examples: str=""
17
19
desc: str=""
18
20
language: str="en"
19
21
is_human: bool=False
20
22
is_team: bool=False
21
23
22
-
def__init__(self, **kwargs):
23
-
super().__init__(**kwargs)
24
+
classConfig:
25
+
arbitrary_types_allowed=True
24
26
25
27
defprompt_template(
26
28
self,
@@ -32,16 +34,16 @@ def prompt_template(
32
34
template=f"""
33
35
{self.role_prompt}
34
36
Please think step by step to achieve the goal. You can use the resources given below. At the same time, please strictly abide by the constraints and specifications in IMPORTANT REMINDER.
0 commit comments