一键导入
cli-anything-hiagent
Command-line interface for HiAgent Python SDK - Observe service (API Token, Trace Spans) via CLI
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Command-line interface for HiAgent Python SDK - Observe service (API Token, Trace Spans) via CLI
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
当用户想使用 HiAgent 观测(observe)能力(API Token、Trace Spans 查询)时,务必使用这个技能给出可直接执行的 cli-anything-hiagent observe 命令与排障步骤。尤其适用于用户提到 agent-harness、cli_anything、--json、workspace-id、custom-app-id、VOLC_ACCESSKEY/VOLC_SECRETKEY、observe token、observe trace,以及希望用命令行(cli-anything-hiagent / python -m cli_anything.hiagent_sdk)。trace-ai-process / trace-ai-history / alert-ai-process / RuleID / IsStream
Hibot Go SDK 端到端测试上传的最小可解析 Skill。 当用户要求执行 pulse check / 心跳检查 / 排障状态查询时,Agent 应当 调用本 skill 并返回结构化响应(包含字面量 PULSE_OK_E2E)。
| name | cli-anything-hiagent |
| description | Command-line interface for HiAgent Python SDK - Observe service (API Token, Trace Spans) via CLI |
Command-line interface for the HiAgent Python SDK built by Hiagent. This CLI provides programmatic access to HiAgent's Observe service, including API Token management and Trace/Span observability.
pip install cli-anything-hiagent
uv pip install -e agent-harness
Prerequisites:
hiagent-api, hiagent-components)VOLC_ACCESSKEY / VOLC_SECRETKEY environment variables, or~/.volc/.envSet up credentials using environment variables:
export VOLC_ACCESSKEY="..."
export VOLC_SECRETKEY="..."
export HIAGENT_TOP_ENDPOINT="https://open.volcengineapi.com"
Observe service for API Token management and Trace/Span observability:
# Create API Token
cli-anything-hiagent observe token create \
--workspace-id ws-123 \
--custom-app-id app-456
# List trace spans
cli-anything-hiagent observe trace list \
--workspace-id ws-123 \
--page-size 10 \
--sort-by StartTime \
--sort-order Desc
# List trace spans with pagination
cli-anything-hiagent observe trace list \
--workspace-id ws-123 \
--page-size 20 \
--last-id last-doc-id \
--sort-by Latency \
--sort-order Asc
token create:
--workspace-id (required): Workspace ID--custom-app-id (required): Custom App IDtrace list:
--workspace-id (required): Workspace ID--page-size: Page size (default: 10)--last-id: Last ID for pagination--sort-by: Sort field (StartTime, Latency, LatencyFirstResp, TotalTokens)--sort-order: Sort order (Asc, Desc)Use --json flag for machine-readable output (essential for AI agents):
cli-anything-hiagent --json observe trace list --workspace-id ws-123
JSON output format:
{
"success": true,
"message": "Operation completed",
"data": { ... }
}
0 - Success1 - Error (with error message in message field of JSON output)All commands output errors in both human-readable and JSON formats:
# JSON error
$ cli-anything-hiagent --json observe trace list --workspace-id invalid-ws
{
"success": false,
"message": "...",
"data": null
}
Apache-2.0
Generated by Hiagent