LLM.HTTPClient behaviour (LLM v0.1.0)

Copy Markdown View Source

HTTP client behaviour for LLM API calls.

Defaults to Req. Override with a mock in tests.

Summary

Functions

Make an HTTP request. Uses the configured adapter.

Callbacks

request(t)

@callback request(Req.Request.t()) :: {:ok, Req.Response.t()} | {:error, term()}

Functions

request(req)

Make an HTTP request. Uses the configured adapter.