Expand description
Inference the application performs itself.
This is the embedded half of Origin’s AI story, and it has nothing to do with MCP. The two are deliberately separate (ADR-0027):
┌── MCP server external AI controls the app
UI ── Application Core ──┤
└── AIService the app performs inference itselfUsing MCP as a general inference API would be the wrong abstraction: the protocol connects a client to a server’s tools, not an application to somebody’s model subscription.
Domain code depends on AiService, never on a provider. A product without the
capability simply has no service, and every AI feature it has is off — which is the
point: nothing an Origin application does may depend on a model being reachable.
Structs§
- Completion
- Noop
AiService - Refuses every request.
- Prompt
- What the application asks a model to do.
- Usage
- What a provider reports about cost.
Traits§
- AiService
- Inference, as a port.