Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

修改问题

yt2026c0c9ff891951
diff --git a/deploy/enterprise/.env.example b/deploy/enterprise/.env.example
index 83dfa7cd8d..d8ef5e5748 100644
--- a/deploy/enterprise/.env.example
+++ b/deploy/enterprise/.env.example
@@ -282,10 +282,6 @@ AGENT_EXTRA_RAILS=""
#拓展配置自定义tool(模块需暴露 register_tools() 工厂,分号分隔多个模块路径)
AGENT_EXTRA_TOOLS=""
-# PIP 安装扩展依赖时的额外参数
-# 示例配置阿里云PyPI镜像源,优化内网/国内环境包下载速度,可根据实际环境自定义调整
-PIP_EXTRA_ARGS="-i https://mirrors.aliyun.com/pypi/simple"
-
# AgentServer 服务的容器最小保证 CPU:500毫核(0.5核),K8s 必须至少分配这么多 CPU 才能启动
AGENT_SERVER_CPU_REQUEST=500m
diff --git a/deploy/enterprise/templates/gateway.template.env b/deploy/enterprise/templates/gateway.template.env
index 8b114731d5..a72b430b61 100644
--- a/deploy/enterprise/templates/gateway.template.env
+++ b/deploy/enterprise/templates/gateway.template.env
@@ -22,9 +22,6 @@ AGENT_EXTRA_RAILS=<<AGENT_EXTRA_RAILS>>
# use extension modules to register extra tools (register_tools() factories)
AGENT_EXTRA_TOOLS=<<AGENT_EXTRA_TOOLS>>
-# Bucket count for bot_id before default service_id/agent_id assembly; 0 = no bucketing (raw bot_id)
-AGENT_BOT_ID_GROUP_NUM=<<AGENT_BOT_ID_GROUP_NUM>>
-
# K8s hostPath Configuration (for mounting host code directory)
MODE=<<MODE>>
diff --git a/examples/custom_extension_tool.py b/examples/custom_extension_tool.py
index 18d8f2f170..efb4a6e71d 100644
--- a/examples/custom_extension_tool.py
+++ b/examples/custom_extension_tool.py
@@ -6,7 +6,7 @@
# 多模块分号分隔:examples.custom_extension_tool;my.pkg.other_tools
# 然后启动 AgentServer;env 变更需重启进程生效
-部署契约(docs/zh/自定义Tool扩展设计.md §5.3):
+部署契约:
1. 本模块及其第三方依赖须预装在 AgentServer 运行时 Python 环境
(与 AGENT_EXTRA_RAILS 扩展同一部署链路);
2. register_tools() 返回模块级 @tool 单例——工具实例进程级共享,