MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / _work_json

Function _work_json

tests/lib/environments/test_poller_method.py:575–584  ·  view source on GitHub ↗
(work_id: str)

Source from the content-addressed store, hash-verified

573
574
575def _work_json(work_id: str) -> dict[str, Any]:
576 return {
577 "id": work_id,
578 "type": "work",
579 "environment_id": "env_1",
580 "state": "active",
581 "created_at": "2026-01-01T00:00:00Z",
582 "metadata": {},
583 "data": {"type": "session", "id": f"sesn_{work_id}"},
584 }
585
586
587NO_WORK = httpx2.Response(200, content=b"null", headers={"content-type": "application/json"})

Calls

no outgoing calls

Tested by

no test coverage detected