본문으로 건너뛰기
cccskills
무료GitHub에 공개

cli-anything-hiagent

Command-line interface for HiAgent Python SDK - Observe service (API Token, Trace Spans) via CLI

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md2.6 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

cli-anything-hiagent

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.

Installation

pip install cli-anything-hiagent

Installation from source

uv pip install -e agent-harness

Prerequisites:

  • HiAgent Python SDK (hiagent-api, hiagent-components)
  • Volcano Engine credentials (request signing)
    • VOLC_ACCESSKEY / VOLC_SECRETKEY environment variables, or
    • ~/.volc/.env

Configuration

Set up credentials using environment variables:

export VOLC_ACCESSKEY="..."
export VOLC_SECRETKEY="..."
export HIAGENT_TOP_ENDPOINT="https://open.volcengineapi.com"

Observe Commands

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

Observe Command Options

token create:

  • --workspace-id (required): Workspace ID
  • --custom-app-id (required): Custom App ID

trace 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)

JSON Output Mode

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": { ... }
}

Return Codes

  • 0 - Success
  • 1 - Error (with error message in message field of JSON output)

Error Handling

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
}

System Requirements

  • Python >= 3.10
  • HiAgent API access with valid Volcano Engine credentials
  • Network access to HiAgent endpoints

License

Apache-2.0


Generated by Hiagent

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

当用户想使用 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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

volcengine/hiagent-python-sdk292026년 10월 9일 업데이트

volcengine의 스킬 모두 보기

이 스킬의 문제 신고