vigiles API reference
    Preparing search index...

    Function extractRequest

    • Extract a ModelRequest from a request body — the system prompt and messages, each flattened to text. Pure and exported so the capture logic is testable without the HTTP server.

      Parameters

      • body: { messages?: unknown; system?: unknown }

      Returns ModelRequest