Skip to content

Commit 7131c1e

Browse files
Merge branch 'master' into enhance-hybrid-browser-toolkit
2 parents c610e2f + 1cae995 commit 7131c1e

File tree

8 files changed

+298
-263
lines changed

8 files changed

+298
-263
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.83a8
29+
placeholder: E.g., 0.2.83a9
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.83a8'
17+
__version__ = '0.2.83a9'
1818

1919
__all__ = [
2020
'__version__',

camel/environments/tic_tac_toe.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,9 @@ def evaluate_position_for_x(
413413
Args:
414414
board (List[str]): The current game board as a list of strings.
415415
is_x_turn (bool): True if it's X's turn to move, False otherwise.
416+
depth (int): Current recursion depth. (default: :obj:`0`)
417+
max_depth (int): Maximum recursion depth to prevent stack overflow.
418+
(default: :obj:`10`)
416419
417420
Returns:
418421
float: A float value representing the position evaluation:
@@ -435,14 +438,17 @@ def evaluate_position_for_x(
435438
return 0.5 # Return draw evaluation at max depth
436439

437440
moves = TicTacToeEnv.available_moves(board)
441+
if not moves:
442+
return 0.5
443+
symbol = "X" if is_x_turn else "O"
438444
values = []
439-
# Create a copy of the board to avoid side effects
445+
440446
for move in moves:
441-
board_copy = board.copy()
442-
board_copy[move] = "X" if is_x_turn else "O"
447+
board[move] = symbol
443448
value = TicTacToeEnv.evaluate_position_for_x(
444-
board_copy, not is_x_turn, depth + 1, max_depth
449+
board, not is_x_turn, depth + 1, max_depth
445450
)
451+
board[move] = " " # undo the move
446452
values.append(value)
447453

448454
return max(values) if is_x_turn else min(values)

camel/societies/workforce/workforce.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3862,6 +3862,8 @@ async def _post_task(self, task: Task, assignee_id: str) -> None:
38623862
# Record the start time when a task is posted
38633863
self._task_start_times[task.id] = time.time()
38643864

3865+
# Ensure assignee mapping exists for retries and follow-up handling.
3866+
self._assignees[task.id] = assignee_id
38653867
task.assigned_worker_id = assignee_id
38663868

38673869
task_started_event = TaskStartedEvent(

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.83a8'
30+
release = '0.2.83a9'
3131

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

misc/wechat.jpeg

-24.1 KB
Loading

pyproject.toml

Lines changed: 7 additions & 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.83a8"
7+
version = "0.2.83a9"
88
description = "Communicative Agents for AI Society Study"
99
authors = [{ name = "CAMEL-AI.org" }]
1010
requires-python = ">=3.10,<3.15"
@@ -36,6 +36,8 @@ dependencies = [
3636
"google-search-results>=2.4.2",
3737
]
3838

39+
[tool.uv]
40+
upgrade = false
3941

4042
[project.dependency-groups]
4143
test = ["pytest>=7,<8", "mock>=5,<6", "pytest-asyncio>=0.23.0,<0.24"]
@@ -140,6 +142,7 @@ media_tools = [
140142
"ffmpeg-python>=0.2.0,<0.3",
141143
"scenedetect>=0.6.5.2",
142144
"pytesseract>=0.3.13",
145+
"av<16",
143146
]
144147

145148
communication_tools = [
@@ -276,6 +279,7 @@ owl = [
276279
"exa-py>=1.10.0,<2",
277280
"reportlab>=4.4.2",
278281
"onnxruntime<=1.19.2",
282+
"av<16",
279283
]
280284
eigent = [
281285
"numpy>=1.2,<=2.2",
@@ -310,6 +314,7 @@ eigent = [
310314
"google-auth-httplib2==0.2.0",
311315
"google-auth-oauthlib==1.2.1",
312316
"httplib2>=0.31.0",
317+
"av<16",
313318
]
314319
all = [
315320
"numpy>=1.2,<=2.2",
@@ -452,6 +457,7 @@ all = [
452457
"scikit-image>=0.25.2",
453458
"scipy>=1.15.3",
454459
"statsmodels>=0.14.6",
460+
"av<16",
455461
]
456462
earth-science = [
457463
"numpy>=1.2,<=2.2",

uv.lock

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

0 commit comments

Comments
 (0)