Runs configured LLMProxy.Guardrail callbacks around requests, responses, and stream events.
Summary
Functions
@spec after_response(LLMProxy.Response.t(), LLMProxy.Guardrail.context()) :: {:ok, LLMProxy.Response.t()} | {:error, term()}
@spec before_request(LLMProxy.Protocol.Request.t(), LLMProxy.Guardrail.context()) :: {:ok, LLMProxy.Protocol.Request.t()} | {:error, term()}
@spec on_stream_event(LLMProxy.Stream.Event.t(), LLMProxy.Guardrail.context()) :: {:ok, LLMProxy.Stream.Event.t() | nil} | {:error, term()}