vigiles API reference
    Preparing search index...

    Function parseResponsesRequest

    • Parse a Responses request body — the user's prompt (the LAST input item with role:"user", joining its content[].text), the requested model, and the declared function-tool names. Tolerates malformed JSON (returns an empty prompt). Pure and exported so request capture is testable without the server.

      Parameters

      • body: string

      Returns { model: string; prompt: string; toolNames: string[] }