计算巢Agent部署集成库,基于 Google ADK 架构对接云上 Agent 能力
Project description
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,
)
| 组件 | ADK 扩展点 | 说明 |
|---|---|---|
BailianRagTool |
Tool | 知识库检索 |
McpTool |
Tool (MCP) | 从 MCP JSON 配置构建 McpToolset(支持任意 ${VAR} 占位符) |
BailianLongTermMemoryService |
Memory | 长期记忆存储与检索 |
接入 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。
相关链接
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file computenest_agent_integrations-0.1.1.tar.gz.
File metadata
- Download URL: computenest_agent_integrations-0.1.1.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ca5cd5c6926a8f55f9b51c7314263ca3d39c27d213896021e9a01778c671948
|
|
| MD5 |
ce0191e6ddb2408276ea2df8903363e0
|
|
| BLAKE2b-256 |
a65850a4d2eae8c533aa43397ef3056033dfd666605e507c4e656926c23fc4e0
|
File details
Details for the file computenest_agent_integrations-0.1.1-py3-none-any.whl.
File metadata
- Download URL: computenest_agent_integrations-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63ff26d1e6b97d9ecdbb729d12755ca4ff4fa4b82b3672f7712abb9c06f56c7d
|
|
| MD5 |
110e0afe49f495c77620e7ddba0013c5
|
|
| BLAKE2b-256 |
2dfe0dc7f88549921973ba4606167c9acb153fae557015432f5792a5216bccf6
|