API Reference
RawRequest
Defined in: observability/tracer.types.ts:56
The fully assembled request body captured off the wire (request side) — one
per model turn, the exact JSON POSTed to the endpoint. Carries the whole
conversation as sent: messages (system folded in, every assistant
tool_calls block and tool result), the available tools, sampling params,
and chat_template_kwargs. With TraceMeta.baseURL it's enough to
reconstruct a reproducible curl for the call. Captured by the
onRawRequest tap; the request-side twin of RawSSE.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
body | unknown | The request body as POSTed — shape depends on the provider (OpenAI chat by default). | observability/tracer.types.ts:59 |
type | "request_body" | - | observability/tracer.types.ts:57 |