跳转到主要内容
comet runtime dispatch reads a request file and returns structured results. The Agent platform can retain the same Run across processes and continue the current Action or user Wait.
The commands on this page are called by the Agent platform behind the scenes. You do not run them yourself. In day-to-day work you invoke an installed workflow application in conversation (or build and run one with /comet-any). This page is for troubleshooting in a terminal, writing scripts, or integrating another Agent platform.

Invocation

The Agent platform passes the application package path on the first call:
On subsequent calls, the Agent platform reuses the registered or built-in application identity and original Run ID:
You can also run a standalone portable workflow JSON definition:
Common CLI options: Store request JSON files outside the project workspace (for example, in the OS temporary directory) rather than inside the repository so they are not treated as unregistered candidate input files. Do not hand a Run to a different application identity or create another Run to repeat an external operation.

Common requests

A start request must include workflow (id and version) and input (may be null); runId is optional (auto-generated when omitted). Action and Wait requests must use the latest revision and IDs returned by inspect; do not guess them or reuse an outdated proposal.

Execution and waiting

Outputs are checked against Schemas, business validators, and application artifact contracts. completed means the declared path has ended. Read the actual business result as well: a report may have been published or may have ended along a rejection branch.

Integration boundaries

JSON requests do not load unregistered host capabilities or obtain user authorization. Supply credentials through the host execution context; do not put them in request files or persisted results. When an external result is unknown, query the original executor and external system before reporting or retrying based on evidence. See SDK recovery. For a complete report template, see Workflow Application.
最后修改于 2026年12月1日