Documentation
¶
Overview ¶
Package provider is the dormant extension seam for natural-language actions. The base ships NO model. If ORIEL_PROVIDER_URL is set, 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 configures the provider endpoint. Unset means the seam is dormant.
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 can be set from the environment at startup or swapped at runtime (Settings → AI), so the mutex guards it against concurrent request and config goroutines.
func New ¶
func New() *Provider
New reads the endpoint from the environment. Resolve fails until configured.