pub fn ask_with_schema_and_provider<P: Provider>(
schema_dump: &str,
question: &str,
config: &AskConfig,
provider: &P,
) -> Result<AskResponse, AskError>Expand description
Lower-level entry point — same flow as ask_with_schema, but
you supply the provider directly.
Used by the test suite (which passes a MockProvider) and by
advanced callers who want to drive a custom backend (an internal
LLM gateway, a recorded-replay test harness, a non-Anthropic
provider not yet wired into ProviderKind, etc.). This is the
canonical inner function — every other entry point in this module
reduces to this one.