- agent/task_executor.py: Jina 搜索从手搓 httpx 改为官方 mcp SDK
(streamablehttp_client + ClientSession);工具经 OpenAI function-calling 暴露给模型
- agent/requirements.txt: +mcp==1.28.0;pydantic 2.9.2->2.13.4(mcp 要求 >=2.11)
- orchestrator/agent_launcher.py: JINA_API_KEY 经 per-swarm Secret 透传给 agent pod
(SENSITIVE_ENV_KEYS),不内联 PodSpec
- k8s/orchestrator-local.yaml: 本地部署清单(默认 in-pod 沙箱评估开关 + JINA_API_KEY)
沙箱保持默认 in-pod 方案,未引入 OpenSandbox。
影响范围: agent_swarm(agent/orchestrator) + Agent(新增 Jina MCP 工具)。
密钥经 k8s Secret 注入无明文。不影响 Manager 契约/计费/审计/发布链路。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
(cherry picked from commit deb984ac38)
9 lines
288 B
Plaintext
9 lines
288 B
Plaintext
openai==1.55.3
|
|
websockets==13.1
|
|
pydantic==2.13.4
|
|
python-dotenv==1.0.1
|
|
prometheus-client==0.20.0
|
|
# Standard MCP SDK — agent connects to Jina MCP (search/read_url) over StreamableHTTP and
|
|
# exposes the tools to the model via OpenAI function-calling. Pulls httpx transitively.
|
|
mcp==1.28.0
|