Documentation
¶
Overview ¶
Package provider is the dormant extension seam for natural-language actions. The base ships NO model. When a provider URL is configured (Settings → AI / settings.json), the base POSTs the user's text plus the available tools and live entities to that URL, and the provider (a separate process — rules, embeddings, or an LLM) returns a tool call. The returned call is always re-validated through the tool Registry before it executes, so a provider can never invoke an unknown tool or entity.
Index ¶
Constants ¶
const EnvURL = "ORIEL_PROVIDER_URL"
EnvURL is the legacy environment variable that used to configure the provider endpoint. It is no longer read at runtime; the one-time config migration uses this name to import a pre-0.2 value into settings.json.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is an HTTP client for a configured resolver. The URL is set by the server from settings.json at startup and can be swapped at runtime (Settings → AI), so the mutex guards it against concurrent request and config goroutines.
func New ¶
func New() *Provider
New returns a dormant provider; the server sets the URL from settings.json. Resolve fails until configured.