Skip to main content

SGAR — ccx 治理化 agent 运行时(自 llm_dealer 导出的独立分发)

Project description

sgar

ccx 治理化 agent 运行时,从 llm_dealer 仓库中按 core/ccx 的依赖闭包自动导出的 独立、可 pip 安装项目。

本目录由 task/copy/ccx_out.py 生成:包含 321 个源文件、61 个运行期资源文件, 覆盖子包 core.cc, core.ccx, core.deepstack_v5, core.llms, core.utils

注意:分发名是 sgar,但可导入的顶层包是 core(保留原命名空间以免改写大量 import core.*)。

安装

pip install -e .
# 或
pip install .

需要 Python >=3.12。

配置

复制配置模板并填入你的密钥:

cp setting.ini.template setting.ini
$EDITOR setting.ini

所有键也可以用同名大写的环境变量提供(见 core/utils/config_setting.py)。 setting.ini 含密钥,已在 .gitignore 中忽略,请勿提交。

使用

sgar --help                 # 安装后提供的命令行入口
python -m sgar --help
python -m core.ccx.sgar --help
from core.ccx.api import AgentRunRequest  # 程序化入口

自动发布

  • 每次 push 到 main 后,GitHub Actions 会自动将 pyproject.toml 的 patch 版本加 1
  • 版本 bump 成功后,会自动构建并发布到 PyPI。
  • 如需手动发布,可在 GitHub Actions 里运行 Publish sgar to PyPI,并选择 pypitestpypi
  • 正式发布使用 GitHub Repository Secret PYPI_API_TOKEN
  • 如需手动发布到 TestPyPI,请额外配置 TEST_PYPI_API_TOKEN

Project details


Download files

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

Source Distribution

sgar-0.1.4.tar.gz (874.0 kB view details)

Uploaded Source

Built Distribution

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

sgar-0.1.4-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sgar-0.1.4.tar.gz
  • Upload date:
  • Size: 874.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sgar-0.1.4.tar.gz
Algorithm Hash digest
SHA256 94042c2b5cd8ebd2fa0e1c4a849b59e6de43335908a79ed9723ad5d293e68e6f
MD5 dcedac97aad287ca94ae921200328ee4
BLAKE2b-256 f483a80c94f2d2f048e180eaae929805331db6e21c05bfafa7653108bc9ecfbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sgar-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sgar-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4939dac25abf34f04d5af0a6b792252bbeaeb66da5cc2b5502d9e09c1bfe25b2
MD5 f09cef05e49e0d8c726170e7a724b120
BLAKE2b-256 5b989804f0246402c8a0df1bbc1c9f8d1d252a8cf3f25d6a368d7aa77e2303a4

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