Skip to content

Commit 46982de

Browse files
committed
Update prompts.py
1 parent 44b10d0 commit 46982de

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

camel/societies/workforce/prompts.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,12 @@
320320
Provide:
321321
- Quality score (0-100): Objective assessment of result quality
322322
- Specific issues list: Any problems found in the result
323-
- Quality sufficient: Boolean indicating if quality meets standards
323+
- Quality sufficient decision rule:
324+
* In this system, **quality_score < 70 means quality is insufficient**
325+
* If quality is insufficient, **recovery_strategy MUST NOT be null**
326+
* If quality is sufficient, **recovery_strategy MUST be null**
327+
* Do NOT add a separate `quality_sufficient` field; it is derived from
328+
`quality_score` and `recovery_strategy`
324329
325330
**STEP 2: DETERMINE RECOVERY STRATEGY (if quality insufficient)**
326331
@@ -348,6 +353,8 @@
348353
- No explanations or text outside the JSON structure
349354
- Ensure all required fields are included
350355
- Use null for optional fields when not applicable
356+
- For quality evaluation: if `quality_score < 70`, `recovery_strategy` MUST be
357+
a non-null enabled strategy
351358
- **MANDATORY: The recovery_strategy MUST be one of the ENABLED strategies listed above. Using a disabled strategy will cause an error.**
352359
353360
**TASK INFORMATION:**

0 commit comments

Comments
 (0)