Skip to main content

Kingsoft Cloud Agent Development Kit

新版本要求 Python 3.12 或以上;已有 Agent 可保留原 SDK 和运行镜像,旧 Runtime 的会话读取与订阅协议继续兼容。

金山云智能体开发套件

构建、部署、调试、观测企业级 AI 智能体的一站式云原生框架。 兼容 Google ADK、LangGraph、LangChain 与 DeepAgents,并支持一键拉起 OpenClaw 和 Hermes 运行时。

简体中文(默认) · English

Docs PyPI License Ask DeepWiki

KsADK AgentKit Studio 真实 Agent 工作区

30 秒快速体验

python -m venv .venv
source .venv/bin/activate
pip install -U "ksadk[langgraph]"

agentengine init demo-agent -f langgraph
cd demo-agent
agentengine config set OPENAI_API_KEY=your-api-key OPENAI_MODEL_NAME=gpt-4o-mini
agentengine run -i

示例按需安装 LangGraph extra;只使用 Native Studio 可以安装 ksadk。ksadk[all] 还会安装其他可选框架与开发工具。

启动本地调试 Web UI:

agentengine web . --no-open

升级前请查看文档站的快速开始与升级说明;本地 Studio 默认使用 Native Harness 和持久化执行账本。

运行时架构

KsADK 把“框架适配”收敛为稳定的运行时分层,同时保留各框架的原生执行语义:

  • 可信内核:统一并发、取消、恢复、状态一致性和运行时安全边界。
  • Harness 执行层:负责装配、Activation、生命周期和共用能力注入;一次 Activation 只选择一个 Provider。
  • 可插拔 Provider:Codex、KsADK Harness、DSH/Cordis 与 Subagent 在同一 Harness 契约下运行,Provider 保留原生线程、checkpoint 与事件语义。
  • 统一事件:RuntimeEvent(schema_version=2) 是存储、回放、API、Studio 与托管界面的事件事实来源;v1 仅作为只读兼容投影。
  • 受控插件化:DSH Bundle/Profile 使用固定工具链、不可变来源摘要和失败回滚;Codex 官方插件仍由 Codex App Server 管理。
  • 平台资源插件:Studio 可绑定知识库、长期记忆与 Skill Center;Agent Revision 保存资源选择,Build 固化连接引用和插件摘要,Runtime 在 Activation 时按平台授权装配。
  • 消息渠道连接:Studio 内置官方 Channel UI;本地和高代码 Agent 可通过 ksadk.connector 出站 WSS 接入独立 Channel 服务,不需要开放本地端口或安装 agentengine-channel。
  • 本地开发闭环:Studio 覆盖创建、构建、调试、评测与本地 Scheduler Lite,并复用独立发布的 @kingsoftcloud/ksadk-web 会话组件。

从 运行时架构、AgentKit Local Studio、Channel Connector 和插件与自动化开始阅读。版本说明与制品校验信息见 GitHub Releases。

RuntimeEvent schema v2 契约

运行事件主路径固定为 canonical RuntimeEvent(schema_version=2);能力描述为 RuntimeEventVersions=[1,2]、RuntimeEventDefault=2、RuntimeEventV1ProjectionModes=["snapshot_only","identity_replace"]、RuntimeEventV1ProjectionDefault="snapshot_only"。v1 仅作只读兼容投影。

KsADK Studio 知识库、记忆库与 Skill Center 真实绑定界面

KsADK Studio Agent、资源绑定与插件页真实演示

为什么需要 KsADK

大多数 Agent 框架解决“如何开发 Agent”。KsADK 解决“如何运行、调试、部署和观测 Agent”。

  • 本地开发:agentengine init、agentengine run、agentengine web。
  • 统一调试:浏览器 Web UI、streaming、附件、workspace 文件、工具调用和会话。
  • 统一协议:本地 /v1/responses 与 /v1/chat/completions。
  • 工具边界:Skill Runtime、Workspace、Sandbox、Memory、Knowledge。
  • 工程链路:打包、部署、OpenClaw / Hermes 运行时、OpenTelemetry 可观测。

架构

KsADK 总体技术架构

Agent Kernel 收口可信控制,Harness 管理装配与生命周期,可插拔 Provider 保留框架原生执行语义;RuntimeEvent v2 为 API、Studio 与托管界面提供统一事件事实链。

文档与样例

相关项目

参与贡献

欢迎通过 issue、PR、样例和文档改进参与贡献。提交前建议运行:

make public-preflight

开源协议:Apache-2.0。

Metadata

Release files for ksadk 0.8.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ksadk 0.8.6
File Size Uploaded
ksadk-0.8.6.tar.gz 9.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for ksadk 0.8.6
File Interpreter ABI Platform
ksadk-0.8.6-py3-none-any.whl Python 3 none any Details

Total release size: 19.5 MB

Release files / ksadk-0.8.6.tar.gz

Download URL ksadk-0.8.6.tar.gz
Size 9.4 MB
Tags Source
SHA-256 checksum
How to use checksums
023e9f8aa42ffee1fbc178b746c3dc9c8d2fb8cb766f9ef59581e82ae8613f60
BLAKE2b-256 checksum
How to use checksums
3ad6f0121ac5a7269882b222e69c4cbdb8e89a47b7e58ef5a5f975798a4f0322
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / ksadk-0.8.6-py3-none-any.whl

Download URL ksadk-0.8.6-py3-none-any.whl
Size 10.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
518f4033c6915a2cb701ccf4ad092c1aadbc43a086ad2a820103585a42424473
BLAKE2b-256 checksum
How to use checksums
93b5d254c1abd7cfc0f695a13b44c37fd0739c9c4b7b81b96a04c6096d570d67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.8.6 This release

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.9

2 release files

0.6.8

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

1 release file

0.5.9

1 release file

0.5.8

1 release file

0.5.7

1 release file

0.5.6

1 release file

0.5.5

1 release file

0.5.4

1 release file

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

2 release files

0.4.0

1 release file

0.3.9

1 release file

0.3.8

1 release file

0.3.7

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.0

1 release file

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page