mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
add eda prompt
This commit is contained in:
parent
7fff68d564
commit
f51df40ebb
2 changed files with 13 additions and 1 deletions
|
|
@ -1,3 +1,10 @@
|
|||
# Prompt for using tools of "eda" type
|
||||
EDA_PROMPT = """
|
||||
The current task is about exploratory data analysis, please note the following:
|
||||
- Distinguish column types with `select_dtypes` for tailored analysis and visualization, such as correlation.
|
||||
- Remember to `import numpy as np` before using Numpy functions.
|
||||
"""
|
||||
|
||||
# Prompt for using tools of "data_preprocess" type
|
||||
DATA_PREPROCESS_PROMPT = """
|
||||
The current task is about data preprocessing, please note the following:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
from enum import Enum
|
||||
|
||||
from metagpt.prompts.tool_types import (
|
||||
EDA_PROMPT,
|
||||
DATA_PREPROCESS_PROMPT,
|
||||
FEATURE_ENGINEERING_PROMPT,
|
||||
IMAGE2WEBPAGE_PROMPT,
|
||||
|
|
@ -11,7 +12,11 @@ from metagpt.tools.tool_data_type import ToolTypeDef
|
|||
|
||||
|
||||
class ToolType(Enum):
|
||||
EDA = ToolTypeDef(name="eda", desc="For performing exploratory data analysis")
|
||||
EDA = ToolTypeDef(
|
||||
name="eda",
|
||||
desc="For performing exploratory data analysis",
|
||||
usage_prompt=EDA_PROMPT,
|
||||
)
|
||||
DATA_PREPROCESS = ToolTypeDef(
|
||||
name="data_preprocess",
|
||||
desc="Only for changing value inplace.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue