Skip to main content

TACO:天润智能体平台 CLI

TACO(Tinet Agent CLI Orchestrator)是天润智能体平台的命令行工具,面向开发者、 自动化流水线,以及 Cursor、Codex、Claude Code 等 AI Agent。

命令按 taco <领域> <资源> <动作> 组织。远端 Draft 是唯一编辑态; 默认 JSON 输出,默认非交互。发现命令请逐级使用原生 --help

主要能力

  • 使用 Profile 管理和切换多个企业环境
  • 统一创建与管理 Agent、Chat、Chatflow、Workflow 应用
  • 读取、校验、调试和发布远端 Draft
  • 发现模型、分类、平台工具、Provider 凭据,以及可挂到 Draft 的知识库
  • 查询会话、消息和节点追踪
  • 通过参数化命令管理智能知识库

安装

TACO 需要 Python 3.12 或更高版本。推荐使用 pipx 安装:

pipx install tinet-agent-cli
taco --version

也可以使用 pip

python -m pip install tinet-agent-cli
taco --version

命令结构

命令 用途
taco profile 查看 Zenava/TACO Profile,并管理 TACO Profile
taco agent 智能体平台领域
taco aikb 智能知识库管理
taco upgrade 升级当前环境中的 TACO
taco --help
taco agent --help
taco agent app draft update --help
taco aikb --help

全局参数只有 --profile--version。默认 JSON 输出,默认非交互。

升级当前环境中的 TACO:

taco upgrade

诊断日志

CLI 默认写入脱敏 JSONL 日志:

  • 默认路径:~/.taco/logs/taco-YYYY-MM-DD.jsonl
  • 默认保留 14 天
  • 环境变量:TACO_LOG_LEVEL(INFO/DEBUG)、TACO_LOG_DIRTACO_LOG_RETENTION_DAYS
  • 失败 JSON 含 invocation_id,用于在当天日志中排查
  • 永不记录 Secret、凭据或明文 AccessKey

不提供日志全局命令行参数。

配置授权

使用前需要准备开发者中心的 AccessKeyId 和 AccessKeySecret,并为接口密钥分配 “智能体 > CLI 授权”权限。

CLINK2 endpoint 示例:

  • 北京平台:https://api-bj.clink.cn
  • 上海平台:https://api-sh.clink.cn
TACO_ACCESS_KEY_SECRET='<access-key-secret>' taco profile set \
  --name clink-bj \
  --endpoint https://api-bj.clink.cn \
  --access-key-id '<access-key-id>'
taco profile list
taco profile use clink-bj
taco profile delete <profile-name> --yes
taco --profile clink-sh agent app list

推荐流程

taco agent app create --type agent --name demo --category <category-code>
taco agent schema get agent
taco agent dataset list --keyword 客服
taco agent dataset scope search --query MT --knowledge-type customer
taco agent app draft get <app-id>
taco agent app draft update <app-id> --from-stdin --expected-hash <hash> --yes
taco agent app draft run <app-id> --from-stdin --yes
taco agent app draft publish <app-id> --yes
taco agent app version list <app-id>

从模板创建:

taco agent app template list
taco agent app template create <template-app-id> --name <new-app-name>

运行数据

查询会话时可加 --request-unique-id,按接入方链路 ID 过滤;与 --conversation-id 相互独立。

taco agent data conversation list \
  --app-id <app-id> \
  --created-at-start <unix-seconds> \
  --created-at-end <unix-seconds> \
  --request-unique-id <request-unique-id>
taco agent data message list \
  --app-id <app-id> \
  --conversation-id <conversation-id> \
  --conversation-created-at <unix-seconds>
taco agent data trace list \
  --app-id <app-id> \
  --conversation-id <conversation-id> \
  --conversation-created-at <unix-seconds> \
  --message-id <message-id>

平台工具与知识库发现

taco agent tool list
taco agent tool get <provider-id> <tool-name>
taco agent category list
taco agent model list --category <category-code>
taco agent schema get agent
taco agent schema get chat
taco agent schema get chatflow
taco agent schema get workflow
taco agent dataset list --keyword <name>
taco agent dataset get <dataset-id>
taco agent dataset scope list
taco agent dataset scope search --query <keyword> --knowledge-type customer
taco agent dataset scope get --id <aikb-id> --type repository --knowledge-type customer

Draft 配置契约以 taco agent schema 为准。 dataset 用于填写 Draft 里的 dataset_id / select_list;文档内容管理用 taco aikb

智能知识库

taco aikb repository list-public
taco aikb repository get-bot
taco aikb faq list --repository-id <id>

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

tinet_agent_cli-0.2.0-py3-none-any.whl (176.9 kB view details)

Uploaded Python 3

File details

Details for the file tinet_agent_cli-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tinet_agent_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf7a95a1c4d96cc62cd21f2de34f8ae8438906820727d774d0c6342555747233
MD5 53724341905c8b585ae3e3317d5e364b
BLAKE2b-256 43e0d5b1722abb7503135c15741b915d572ebad8d01715992d6d8d27aa1c4b19

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 file

0.1.1

1 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