Scoria.Req.Steps (scoria v0.1.0)

Copy Markdown View Source

Provides the attach/2 function to add Scoria's resiliency and model routing steps to a Req pipeline.

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.