Skip to content

Commit aaf6f1e

Browse files
authored
release: 0283a3 (#3674)
1 parent e29354f commit aaf6f1e

File tree

7 files changed

+47
-35
lines changed

7 files changed

+47
-35
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body:
2626
attributes:
2727
label: What version of camel are you using?
2828
description: Run command `python3 -c 'print(__import__("camel").__version__)'` in your shell and paste the output here.
29-
placeholder: E.g., 0.2.83a2
29+
placeholder: E.g., 0.2.83a3
3030
validations:
3131
required: true
3232

camel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from camel.logger import disable_logging, enable_logging, set_log_level
1616

17-
__version__ = '0.2.83a2'
17+
__version__ = '0.2.83a3'
1818

1919
__all__ = [
2020
'__version__',

camel/societies/workforce/prompts.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,21 +359,21 @@
359359
)
360360

361361
FAILURE_ANALYSIS_RESPONSE_FORMAT = """JSON format:
362-
{
362+
{{
363363
"reasoning": "explanation (1-2 sentences)",
364-
"recovery_strategy": "retry|replan|decompose|create_worker",
364+
"recovery_strategy": "{strategy_options}",
365365
"modified_task_content": "new content if replan, else null",
366366
"issues": ["error1", "error2"]
367-
}"""
367+
}}"""
368368

369369
QUALITY_EVALUATION_RESPONSE_FORMAT = """JSON format:
370-
{
370+
{{
371371
"quality_score": 0-100,
372372
"reasoning": "explanation (1-2 sentences)",
373373
"issues": ["issue1", "issue2"],
374-
"recovery_strategy": "retry|reassign|replan|decompose or null",
374+
"recovery_strategy": "{strategy_options} or null",
375375
"modified_task_content": "new content if replan, else null"
376-
}"""
376+
}}"""
377377

378378
# Strategy descriptions for dynamic prompt generation
379379
STRATEGY_DESCRIPTIONS = {

camel/societies/workforce/workforce.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,6 +1564,18 @@ def _analyze_task(
15641564
# Generate available strategies text based on config
15651565
available_strategies = self._get_available_strategies_text()
15661566

1567+
# Generate strategy options for response format (None means all
1568+
# enabled)
1569+
config_strategies = self.failure_handling_config.enabled_strategies
1570+
strategies = (
1571+
list(RecoveryStrategy)
1572+
if config_strategies is None
1573+
else config_strategies
1574+
)
1575+
response_format = response_format.format(
1576+
strategy_options="|".join(s.value for s in strategies)
1577+
)
1578+
15671579
# Format the unified analysis prompt
15681580
analysis_prompt = str(
15691581
TASK_ANALYSIS_PROMPT.format(

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
project = 'CAMEL'
2828
copyright = '2024, CAMEL-AI.org'
2929
author = 'CAMEL-AI.org'
30-
release = '0.2.83a2'
30+
release = '0.2.83a3'
3131

3232
html_favicon = (
3333
'https://raw.githubusercontent.com/camel-ai/camel/master/misc/favicon.png'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "camel-ai"
7-
version = "0.2.83a2"
7+
version = "0.2.83a3"
88
description = "Communicative Agents for AI Society Study"
99
authors = [{ name = "CAMEL-AI.org" }]
1010
requires-python = ">=3.10,<3.15"

uv.lock

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)