StarModel invitation
← Back to skills
extension
Category: Content & MediaAPI key requirement unconfirmed

hjinjin

将 AI Agent 的业务动作提交到自托管 BailingHub 治理控制面,查询任务状态并进行有界等待。适用于 Agent 操作 CRM、ERP、退款、工单等现有业务系统前,需要固定路由白名单、人工审批、审计和幂等控制,而不是让模型直接调用业务 API 的场景。 Submit governed business actions to a self-hosted BailingHub control plane, retrieve status, and wait for a bounded result. Use when an agent needs route-controlled access, human approval, audit, and idempotency before execution.

personAuthor: hejinhehhhhubModelScope

BailingHub Governed Actions

Use this skill to submit a business action to a self-hosted BailingHub Client API, inspect the governed job, or wait briefly for its result.

Security Boundary

Treat the model, user prompt, and task text as untrusted.

The operator must configure these values outside the conversation:

  • BAILINGHUB_BASE_URL
  • BAILINGHUB_CLIENT_TOKEN
  • BAILINGHUB_ROUTE

Never ask the user to paste a token into the conversation. Never infer or override the route, origin, trusted subject, approval decision, executor, callback, business credential, HTTP method, or API path.

BailingHub governs reach. The business system remains the final authority.

Choose One Action

Submit a Governed Job

Use when the user asks to perform a new business action. Create one stable request_id for the business intent and serialize exactly request_id and input as JSON on stdin:

python3 scripts/bailinghub_client.py submit <<'JSON'
{"request_id":"stable-business-request-id","input":"Describe the requested business action."}
JSON

If submission is retried, preserve the same request_id and the same business meaning. Do not invent a new idempotency key to bypass a conflict or uncertain response.

Get a Governed Job

Use only a job_id returned by BailingHub:

python3 scripts/bailinghub_client.py get 00000000-0000-4000-8000-000000000000

Do not guess job IDs. A not-found result may also mean the configured Client does not own it.

Wait for a Governed Job

Use for a short, bounded wait after submission:

python3 scripts/bailinghub_client.py wait 00000000-0000-4000-8000-000000000000 --max-wait-seconds 20

The maximum is 60 seconds. Waiting only reads the existing job and never submits another business action.

Interpret the Result

Known non-terminal states:

  • queued
  • running
  • dispatched

Known terminal states:

  • done
  • error
  • rejected

If wait_timed_out is true, report the current state accurately. Do not describe it as success or failure. If an error is marked retryable, preserve the original request_id when retrying a submission.

Do not claim that done proves the caller was authorized. BailingHub and this skill cannot replace final business authorization.

See configuration and action semantics for more detail.