Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

AI 小鲸后台服务

本插件需与智能体模板配合使用,用于开发和管理智能体插件。

审批 Web 回调与企业微信跨进程联动见 DatabaseEventBus 使用说明。

Chat 流式响应的 Celery 进度事件

新任务的 SSE 使用 AG-UI 的 RAW 事件,客户端可按 event.type 区分阶段。

event.type 触发时机 对应 span
celery_enqueued Web 的 send_task 成功返回 bkplugin.chat.enqueue
celery_received worker 进入任务函数、通过启动校验并发送接单回执,Web 读到该回执 bkplugin.chat.worker.received

等待期间继续发送 heartbeat(waiting for worker)。接单时 Agent 尚待构建;Web 仍等到 started 回执带回 run ID 后才接入业务流。接单进度回执发送失败会记录日志,业务任务继续执行。重新连接已有流不会重复投递或生成这两个事件。

管理命令的指标和 Trace 采集

通过 manage.py 或 django-admin 运行一次性管理命令(如 migrate、 collectstatic、shell)时,插件同时关闭指标和 Trace,避免进程退出时等待上报, 也不会为初始化 OT 获取远程配置。 该策略同时覆盖直连 OTLP 和经 Celery 上报,即使环境或平台配置启用了指标也不会启动。

runserver、celery(含 worker/beat)、run_wxaibot_ws 保留原有指标和 Trace 配置; 直接启动的 Gunicorn、Celery 不受影响。常规应用日志不变。 策略位于插件初始化入口,已有模板升级插件即可生效,无需修改 bin/manage.py。

本地调试智能体插件

环境准备

在开始前,请确保已安装以下工具:

  • uv: Python 包管理工具
  • cookiecutter: 项目模板工具

SDK 打包

在 Git 仓库根目录执行以下命令,构建小鲸智能体插件:

make build-aidev-bkplugin

生成测试智能体

使用 cookiecutter 快速生成示例智能体,可在任意目录执行:

GIT_ROOT=$(git rev-parse --show-toplevel)
cd /tmp
python -m cookiecutter ${GIT_ROOT} --directory template/builtin --no-input

Metadata

Release files for aidev-bkplugin 3.2.0rc250

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

Source distribution (sdist)

Source distribution for aidev-bkplugin 3.2.0rc250
File Size Uploaded Provenance Actions
aidev_bkplugin-3.2.0rc250.tar.gz 164.0 kB Without provenance Details for aidev_bkplugin-3.2.0rc250.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aidev-bkplugin 3.2.0rc250
File Interpreter ABI Platform Actions
aidev_bkplugin-3.2.0rc250-py3-none-any.whl Python 3 none any Details for aidev_bkplugin-3.2.0rc250-py3-none-any.whl

Total release size: 291.8 kB

Release files / aidev_bkplugin-3.2.0rc250.tar.gz

Download URL aidev_bkplugin-3.2.0rc250.tar.gz
Size 164.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6e415e4a55daf7f7437170f2f8a17b4b90af8dd4d26de20a1a6dfd8540b8a40c
BLAKE2b-256 checksum
How to use checksums
cde3f1bbaa433c2e342389cecebbbd0d22226e30e6b20902f07cd4d351e8a024
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"11","id":"bullseye","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / aidev_bkplugin-3.2.0rc250-py3-none-any.whl

Download URL aidev_bkplugin-3.2.0rc250-py3-none-any.whl
Size 127.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2cbadd8477d5b928bcd6ee7304215567f4d5f8bd3ed314b4bd0c49ff43bd6a4
BLAKE2b-256 checksum
How to use checksums
bf894fab72d7e3cccc748b4977bea6b4b50deeb823b4062711cee8a42e77c430
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"11","id":"bullseye","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for aidev-bkplugin 3.2.0rc250

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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