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
@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 toReq.merge/2after 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.