LlmCall.EncodedRequest (llm_call v0.1.0)

Copy Markdown View Source

A request rendered into one protocol's wire shape.

body is a JSON-compatible term, not an encoded JSON string. Headers carry protocol facts only; the transport adds credentials and the base URL.

Summary

Types

t()

@type t() :: %LlmCall.EncodedRequest{
  body: map(),
  headers: [{String.t(), String.t()}],
  method: :post | :get,
  path: String.t(),
  query: %{optional(String.t()) => String.t() | integer() | boolean()}
}