Skip to main content

computenest-agent-integrations

面向 计算巢Agent部署 的集成库。以 Google ADK(Agent Development Kit)为底层 Agent 架构,将部署所需的能力与 ADK 标准接口对接,帮助开发者在 ADK 生态中构建、集成并部署 Agent 服务。

凭证由调用方在运行时传入,库内不包含任何密钥。

环境要求

  • Python >= 3.12

安装

pip install computenest-agent-integrations

架构说明

计算巢Agent部署          ADK Agent 架构
        │                        │
        └──── ADK 集成适配层 ────┘

本库在 ADK 的 Tool、Memory、MCP 等扩展点上提供与计算巢Agent部署及云上 Agent 生态的对接实现。开发者使用标准 ADK API 编写 Agent 逻辑,通过本库接入部署侧所需的外部能力。

当前已提供的集成

以下为实现示例,后续会持续扩展更多计算巢Agent部署与 ADK 的对接能力:

from computenest.integrations.adk import (
    BailianLongTermMemoryService,
    BailianRagTool,
    McpTool,
    E2bSandboxToolset,
    E2bCodeInterpreterToolset,
)
组件 ADK 扩展点 说明
BailianRagTool Tool 知识库检索
McpTool Tool (MCP) 从 MCP JSON 配置构建 McpToolset(支持任意 ${VAR} 占位符)
BailianLongTermMemoryService Memory 长期记忆存储与检索
E2bSandboxToolset Tool E2B 沙箱文件系统与 Shell 操作(文件读写、目录管理、命令执行)
E2bCodeInterpreterToolset Tool 在 E2B Code Interpreter 沙箱中执行 Python/JavaScript 代码,支持有状态 context 管理

接入 ADK Agent

from google.adk.agents.llm_agent import Agent
from computenest.integrations.adk import BailianRagTool, McpTool

agent = Agent(
    model=...,
    name="my_agent",
    tools=[rag_tool, *McpTool(mcp_config, variables={"DASHSCOPE_API_KEY": api_key})],
    # memory_service=BailianLongTermMemoryService(...),
)

各组件的初始化参数见源码 docstring。

相关链接

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

computenest_agent_integrations-0.1.4.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

computenest_agent_integrations-0.1.4-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file computenest_agent_integrations-0.1.4.tar.gz.

File metadata

File hashes

Hashes for computenest_agent_integrations-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6877b666099cfa1c9ffceaa7ba723f4656e2f60be8c35dcceee5fe3207d226d8
MD5 4a7b80388a10d4f5fd620b5036d59dcd
BLAKE2b-256 574eac8040ee8fc619ebc20a5d709083b1a73ff53ce9b4700dbd298a65ea5461

See more details on using hashes here.

File details

Details for the file computenest_agent_integrations-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for computenest_agent_integrations-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 91664cd9795a2d682fc0c54ab9a37ae069b59f63e4be6e40456976e9768362f8
MD5 1ac0428994541aaa4c7c58c3cc3a1c58
BLAKE2b-256 ad1ebb370f9d26817e4cdec03df905f7a6a26d9bedde3c5735a10ee7d70c96f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page