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

Function id_headers

tests/lib/threads/helpers.py:322–324  ·  view source on GitHub ↗

The response headers that a reply's `_request_id` and `_workspace_id` come from.

(request_id: str, workspace_id: str)

Source from the content-addressed store, hash-verified

320
321
322def id_headers(request_id: str, workspace_id: str) -> dict[str, str]:
323 """The response headers that a reply's `_request_id` and `_workspace_id` come from."""
324 return {"request-id": request_id, "anthropic-workspace-id": workspace_id}
325
326
327def response_ids(*replies: BetaMessage) -> list[tuple[str | None, str | None]]:

Calls

no outgoing calls