Read the frozen model request and response behind a reply, with the call's ledger record and its judgements (labels)
GET /Platform/lab/llm-data
Read the frozen model request and response behind a reply, with the call's ledger record and its judgements (labels).
Free: no model call, no writes. This is the manual-inspection counterpart of diagnose, which returns
a structured verdict in one call. The cached payload is the ground
truth for what the model saw at the incident turn — system prompt,
view blocks, tool messages, and the response. Each assistant message
carries metadata.llm_request_id, and messages are found via
content search on conversations.
Triage facts the payload supports:
- Broken/empty/erroring tool messages indicate tool_response_issue; the fix is the integration or a ticket, never prompting around broken data.
- Correct tool data with silent/ambiguous instructions indicates an instruction edit, validated first with replay_llm.
- Correct data and clear instructions, where the answer requires inference from the data's shape (absence-by-omission, fact buried in a huge payload), indicates data_presentation; the fix is reshaping the tool response in code, validated first in replay.
- A well-formed turn that still failed indicates a possible model slip; replay_llm with n=5 measures flakiness before any conclusion.
- A request beyond agent policy indicates a routing fix (transfer rules), not wording.
Query parameters
message_id: optional str. Assistant message id (resolves llm_request_id from its metadata). One of message_id / llm_request_id required.llm_request_id: optional str. Direct request id (skips message lookup).render: optional str. Response body form —"json"(default, the raw dict) or"html"(readable page). Namedrender(notformat) to avoid colliding with client-side output-format options.
Returns
LlmDataResponse
message_id: optional str or null. Assistant message the request was resolved from, when given.llm_request_id: str. Id of the frozen request.data: dict. Raw cached{request, response}exactly as sent/received. Deliberately untyped: it is the provider's wire format, and reshaping it here would defeat the point of a ground-truth dump.call: optional dict or null. The call's ledger record (attribution, outcome, cost, current verdict and agreement); null for calls made before the ledger existed.labels: optional List[dict]. Judgements of this call, oldest first.
Example request
curl -X GET "https://api.hilus.ai/Platform/lab/llm-data" \
-H "Authorization: Bearer $HILUS_API_KEY"