Skip to main content

WORK_RELEASE_TOOL

Constant WORK_RELEASE_TOOL 

Source
pub(crate) const WORK_RELEASE_TOOL: &str = r#"{
  "name": "WorkRelease",
  "description": "Hand a claimed Muxqueue item back to the pool because you cannot do it — wrong capabilities, blocked on something, out of context budget. Prefer this over letting your lease silently expire: it frees the item immediately and records why. Note that a release still consumes one of the item's attempts, and releasing on its FINAL attempt parks it as failed rather than reopening it — an item nobody can do should stop circulating. Requires the 'attempt' number from your WorkClaim response.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "id":      { "type": "string",  "description": "The item id from WorkClaim" },
      "attempt": { "type": "integer", "description": "The 'attempt' number returned by the WorkClaim that gave you this item" },
      "reason":  { "type": "string",  "description": "Why you are handing it back. This is what the next claimant (or a human) sees." }
    },
    "required": ["id", "attempt"]
  }
}"#;