Open Agent Loops
API Reference

RawRequest

@open-agent-loops/core


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

PropertyTypeDescriptionDefined in
bodyunknownThe 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

On this page