🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
chore: update task character limitation and workforce example
Wendong378e0bebc1fe
diff --git a/camel/tasks/task.py b/camel/tasks/task.pyindex 6b11e249b..e4bf10a1c 100644--- a/camel/tasks/task.py+++ b/camel/tasks/task.py@@ -56,7 +56,7 @@ class TaskValidationMode(Enum):def validate_task_content(content: str,task_id: str = "unknown",- min_length: int = 5,+ min_length: int = 1,mode: TaskValidationMode = TaskValidationMode.INPUT,check_failure_patterns: bool = True,) -> bool:@@ -69,7 +69,7 @@ def validate_task_content(task_id (str): Task ID for logging purposes.(default: :obj:`"unknown"`)min_length (int): Minimum content length after stripping whitespace.- (default: :obj:`5`)+ (default: :obj:`1`)mode (TaskValidationMode): Validation mode - INPUT for task content,OUTPUT for task results. (default: :obj:`TaskValidationMode.INPUT`)check_failure_patterns (bool): Whether to check for failure indicatorsdiff --git a/examples/workforce/eigent.py b/examples/workforce/eigent.pyindex 3563c6087..82ff32400 100644--- a/examples/workforce/eigent.py+++ b/examples/workforce/eigent.py@@ -437,10 +437,15 @@ async def main():)task_agent = ChatAgent("You are a helpful task planner. You MUST use the "- "`send_message_to_user` tool to inform the user of every "- "decision and action you take. Your message must be tidy "- "and in one short sentence. This is a mandatory part of "- "your workflow.",+ "`send_message_to_user` tool to inform the user of every decision "+ "and action you take. Each message must be a single, concise "+ "sentence. This is a mandatory part of your workflow.\n\n"+ "Carefully examine the user's task. If it's a simple greeting, a "+ "direct question, or a conversational interaction (like 'hello' "+ "or 'thank you'), create a single task for a worker to respond "+ "directly using the `send_message_to_user` tool. For example, if "+ "the user says 'hello', create a task like: 'Respond to the "+ "user's greeting directly using the `send_message_to_user` tool.'",model=model_backend_reason,tools=[*HumanToolkit().get_tools(),