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.3.tar.gz (872.8 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.3-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sgar-0.1.3.tar.gz
  • Upload date:
  • Size: 872.8 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.3.tar.gz
Algorithm Hash digest
SHA256 894b9d2a1b951a4788b8c71a987fc9a66966c022337834730b6ff2ec19879fe0
MD5 ddcb5a31c0c417ac49e82235672ca203
BLAKE2b-256 df77e09fbc5c3694379542da9d300e4bdb50d4a3220947e5d4a7fe0ffc459763

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sgar-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e35edb1c66dadc2f1ce4fb7774021912f32dbb3ce675a2c92b13a01f459d55bb
MD5 e50cae182401efe42d34563819b25654
BLAKE2b-256 4ac816dfd29a74ddb3bb42a81e976cc0a27dfa828bc9f195d96c4194d28b86d0

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