Scoria.Req.Steps (scoria v0.1.3)

Copy Markdown View Source

Scoria.Req.Steps attaches Scoria's model resiliency steps to a Req request pipeline.

Use it from host-owned provider clients or ReqLLM integration code when you want Scoria's circuit-breaker and fallback evidence around outbound model calls. The host app still owns provider choice, credentials, prompt policy values, and business-specific retry posture; Scoria contributes inspectable request/response/error steps that fit the default runtime trace.

See guides/capabilities/default-runtime.md for the first runtime capability and guides/reviewer-verification.md for verification suite guidance.

Summary

Functions

Attaches Scoria steps to the given Req request.

Returns the declarative options list to pass to Req.new/1 or ReqLLM.

Functions

attach(req, opts \\ [])

Attaches Scoria steps to the given Req request.

Options

  • :model_id - The ID of the model being routed to, used for circuit breaking.

req_options(model_id)

Returns the declarative options list to pass to Req.new/1 or ReqLLM.