feat: update prompt and hint
This commit is contained in:
@@ -15,8 +15,8 @@ class DataAnalysis(ToolCallAgent):
|
||||
"""
|
||||
A data analysis agent that uses planning to solve various data analysis tasks.
|
||||
|
||||
This agent extends BrowserAgent with a comprehensive set of tools and capabilities,
|
||||
including Python execution, web browsing, chart visualization.
|
||||
This agent extends ToolCallAgent with a comprehensive set of tools and capabilities,
|
||||
including Data Analysis, Chart Visualization, Data Report.
|
||||
"""
|
||||
|
||||
name: str = "DataAnalysis"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
SYSTEM_PROMPT = (
|
||||
"You are an AI agent designed to data analysis / visualization task. You have various tools at your disposal that you can call upon to efficiently complete complex requests."
|
||||
"The workspace directory is: {directory}; Read / write file in workspace"
|
||||
)
|
||||
SYSTEM_PROMPT = """You are an AI agent designed to data analysis / visualization task. You have various tools at your disposal that you can call upon to efficiently complete complex requests.
|
||||
# Note:
|
||||
1. The workspace directory is: {directory}; Read / write file in workspace
|
||||
2. Generate Chart with insights may better for user's task"""
|
||||
|
||||
NEXT_STEP_PROMPT = """Based on user needs, break down the problem and use different tools step by step to solve it. Each step select the most appropriate tool proactively (ONLY ONE). After using each tool, clearly explain the execution results and suggest the next steps."""
|
||||
|
||||
@@ -17,7 +17,7 @@ class ChartVisualization(BaseTool):
|
||||
"""Visualize statistical chart or Add insights in chart with JSON info from visualization_preparation tool.
|
||||
For each chart, you can do steps as follows:
|
||||
1. Visualize statistical chart
|
||||
2. Choose insights into chart based on step 1
|
||||
2. Choose insights into chart based on step 1 (Optional.)
|
||||
Outputs:
|
||||
1. Charts (png/html)
|
||||
2. Charts Insights (.md)(Optional)."""
|
||||
|
||||
Reference in New Issue
Block a user