ReqAnthropic.Client (ReqAnthropic v0.2.1)

Copy Markdown View Source

Internal builder used by every resource module. It guarantees that all resource calls share the same option-resolution and step-attachment pipeline, so cross-cutting concerns (auth, error decoding, test stubs) live in exactly one place.

Summary

Functions

Build a %Req.Request{} with ReqAnthropic attached.

Functions

build(opts \\ [])

@spec build(keyword()) :: Req.Request.t()

Build a %Req.Request{} with ReqAnthropic attached.

Recognized keys:

  • Any ReqAnthropic option (see ReqAnthropic.attach/2)
  • :req_options - keyword forwarded directly to Req.merge/2 after attach, so callers can set :retry, :finch, :receive_timeout, etc.

The default receive_timeout is 120000ms (2 minutes), since LLM API calls regularly exceed Finch's 15-second default.