Skip to content

Commit 4d9f18d

Browse files
committed
fix(agents-api): fix reduce call in utils
1 parent d6db947 commit 4d9f18d

File tree

1 file changed

+2
-0
lines changed
  • agents-api/agents_api/activities

1 file changed

+2
-0
lines changed

Diff for: agents-api/agents_api/activities/utils.py

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from dataclasses import dataclass
1414
from threading import Lock as ThreadLock
1515
from typing import Any, ParamSpec, TypeVar
16+
from functools import reduce
1617

1718
import re2
1819
from beartype import beartype
@@ -140,6 +141,7 @@ def safe_extract_json(string: str):
140141
"sum": sum,
141142
"tuple": tuple,
142143
"zip": zip,
144+
"reduce": reduce,
143145
# Safe versions of potentially dangerous functions
144146
"range": safe_range,
145147
"load_json": safe_json_loads,

0 commit comments

Comments
 (0)