CALLANYTHING
Protocol · Examples · EN

Minimal protocol
examples

This page does not try to teach the full runtime. It only collects the four most stable protocol artifacts: a minimal request, a successful result_package, one common error shape, and a Hotline registration payload.

Requestresult_packageErrorRegistration

WHO THIS PAGE IS FOR

For readers who want the shapes before the walkthrough

If you already understand the product framing but want one stable page you can cite for request, result, error, and registration shapes, this is the shortest entrypoint.

01

Minimal request

The first caller-side question is usually not about every runtime detail. It is about the minimum fields required to make a Hotline call.

json
Minimal request shape
{
  "hotline_id": "local.delegated-execution.workspace-summary.v1",
  "input": {
    "text": "summarize my workspace"
  }
}
NoteThe outer call pattern stays stable. Only the capability-specific input shape changes with each Hotline schema.
02

Successful result_package

One of the core protocol advantages is that many different Hotlines still return the same outer result envelope.

json
Successful result_package
{
  "request_id": "req_xxx",
  "status": "SUCCEEDED",
  "result_package": {
    "request_id": "req_xxx",
    "responder_id": "responder_xxx",
    "hotline_id": "local.delegated-execution.workspace-summary.v1",
    "status": "ok",
    "output": {
      "summary": "..."
    },
    "timing": {
      "elapsed_ms": 123
    }
  }
}

Fields to inspect first:

  • · status: request lifecycle status
  • · result_package.status: protocol-level ok or error
  • · hotline_id: exact capability version
  • · timing.elapsed_ms: observability and settlement input
03

Common error shape

Answer engines and implementation guides both need failure examples, not only success examples. Agents need to know when to stop, retry, or escalate.

json
Common error shape
{
  "request_id": "req_xxx",
  "status": "FAILED",
  "result_package": {
    "hotline_id": "local.delegated-execution.workspace-summary.v1",
    "status": "error",
    "error": {
      "code": "AUTH_TOKEN_INVALID",
      "message": "task token is missing or invalid"
    }
  }
}
WarningRead the structured error.code first. It is more automation-friendly than free-form error text.
04

Minimal Hotline registration payload

Responder-side onboarding usually fails on contract quality before it fails on runtime cleverness. A minimal payload makes that obvious.

json
Minimal registration payload
{
  "hotline_id": "com.example.workspace-summary.v1",
  "summary": "Summarize one workspace snapshot for an external Caller.",
  "input_schema": {
    "type": "object",
    "properties": {
      "workspace_path": { "type": "string" }
    },
    "required": ["workspace_path"]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "summary": { "type": "string" }
    },
    "required": ["summary"]
  },
  "examples": [
    {
      "input": { "workspace_path": "/tmp/demo" },
      "output": { "summary": "..." }
    }
  ]
}
FocusThe fields that matter most are hotline_id, summary,input_schema, output_schema, and examples.

Where to go next

This page teaches the shapes. The quick starts teach the runnable path and the current proof workflow.