pub async fn request_feedback(
provider: ProviderChoice,
prompt: &Prompt,
base_url_override: Option<&str>,
) -> Result<Verdict, FeedbackError>Expand description
Request structured feedback for a prompt from the chosen provider.
The effectful counterpart to build_prompt
(§2.2): it reads the active provider’s API key, builds the rig client, runs an
Extractor<Feedback> over the prompt, and maps the extracted DTO into a
Verdict. Fireworks is reached through rig’s OpenAI chat-completions
client (Fireworks is OpenAI-compatible); Anthropic through its native client.
base_url_override points the client at a mock server in tests — the test seam
(ADR-0006); production passes None. Callers depend only on this function and
Verdict, never on rig types.