Send a multi-turn conversation and receive a structured response.
Ordered list of conversation turns
Zod schema to validate the JSON response
Validated response or error envelope
Send a single prompt and receive a structured response.
Natural language instruction for the LLM
Zod schema to validate the JSON response
Validated response or error envelope
Internally constructs a single user message and delegates to chat.
LLM provider service interface.
Remarks
All methods return AiResponse envelopes — never throw on API errors. Only
createLlmService()throws (when the provider is not configured).Intent
Uniform interface over Azure OpenAI, OpenAI, and Anthropic