Talegorithm 13 часов назад
Родитель
Сommit
36422aa786
2 измененных файлов с 36 добавлено и 0 удалено
  1. 2 0
      agent/core/runner.py
  2. 34 0
      pyproject.toml

+ 2 - 0
agent/core/runner.py

@@ -1678,6 +1678,8 @@ class AgentRunner:
                                 "max_turns": side_branch_ctx.max_turns,
                                 "trigger_event": trigger_event_for_tool,
                             } if side_branch_ctx else None,
+                            # 合并用户自定义 context(RunConfig.context)
+                            **(config.context or {}),
                         },
                     )
 

+ 34 - 0
pyproject.toml

@@ -0,0 +1,34 @@
+[project]
+name = "cyber-agent"
+version = "0.3.0"
+description = "模块化、可扩展的 Agent 框架"
+requires-python = ">=3.11"
+dependencies = [
+    "httpx[socks]>=0.28.0",
+    "python-dotenv>=1.0.0",
+    "pydantic",
+]
+
+[project.optional-dependencies]
+browser = [
+    "browser-use>=0.11.0",
+    "langchain_core>=0.3.0",
+]
+server = [
+    "fastapi>=0.115.0",
+    "uvicorn[standard]>=0.32.0",
+    "websockets>=13.0",
+]
+feishu = [
+    "lark-oapi==1.5.3",
+]
+all = [
+    "reson-agent[browser,server,feishu]",
+]
+
+[build-system]
+requires = ["setuptools>=68.0"]
+build-backend = "setuptools.build_meta"
+
+[tool.setuptools.packages.find]
+include = ["agent*"]