## Continue a worker `workers.continue_(strworker_id, WorkerContinueParams**kwargs) -> Worker` **post** `/api/workers/{workerId}` Send another instruction to an existing worker. ### Parameters - `worker_id: str` - `input: str` - `budget: Optional[Literal["low", "standard", "high", "unlimited"]]` - `"low"` - `"standard"` - `"high"` - `"unlimited"` - `stream: Optional[bool]` ### Returns - `class Worker: …` - `id: str` - `created_at: Optional[int]` - `error: None` - `files: List[File]` - `filename: Optional[str]` - `media_type: str` - `url: str` - `incomplete_details: None` - `messages: List[object]` - `metadata: Dict[str, object]` - `object: Literal["worker"]` - `"worker"` - `output: List[Output]` - `id: str` - `content: List[OutputContent]` - `text: str` - `type: Literal["output_text"]` - `"output_text"` - `role: Literal["assistant"]` - `"assistant"` - `status: Literal["completed"]` - `"completed"` - `type: Literal["message"]` - `"message"` - `output_text: str` - `running: bool` - `sources: List[Source]` - `id: str` - `title: Optional[str]` - `type: Literal["url"]` - `"url"` - `url: str` - `status: Literal["running", "completed", "pending"]` - `"running"` - `"completed"` - `"pending"` - `costs: Optional[Costs]` - `internal_cost_usd: float` - `model_cost_usd: float` - `sandbox_cost_usd: float` - `tool_cost_usd: float` - `usage: Optional[Usage]` - `cache_read_tokens: int` - `cache_write_tokens: int` - `cost_usd: float` - `input_tokens: int` - `output_tokens: int` - `reasoning_tokens: int` - `steps: int` - `total_tokens: int` - `credits: Optional[int]` ### Example ```python import os from handinger import Handinger client = Handinger( api_key=os.environ.get("HANDINGER_API_KEY"), # This is the default and can be omitted ) worker = client.workers.continue_( worker_id="t_org_123_w_01HZY2ZJQ8G7K42W2D7WF6V4GM", input="x", ) print(worker.id) ``` #### Response ```json { "id": "id", "created_at": 0, "error": null, "files": [ { "filename": "filename", "mediaType": "mediaType", "url": "url" } ], "incomplete_details": null, "messages": [ {} ], "metadata": { "foo": "bar" }, "object": "worker", "output": [ { "id": "id", "content": [ { "text": "text", "type": "output_text" } ], "role": "assistant", "status": "completed", "type": "message" } ], "output_text": "output_text", "running": true, "sources": [ { "id": "id", "title": "title", "type": "url", "url": "url" } ], "status": "running", "costs": { "internalCostUsd": 0, "modelCostUsd": 0, "sandboxCostUsd": 0, "toolCostUsd": 0 }, "usage": { "cacheReadTokens": 0, "cacheWriteTokens": 0, "costUsd": 0, "inputTokens": 0, "outputTokens": 0, "reasoningTokens": 0, "steps": 0, "totalTokens": 0, "credits": 0 } } ```