Interface: LeuriaState
Defined in: packages/client/src/leuria.ts:83
Properties
active?
optionalactive?:ProviderInfo
Defined in: packages/client/src/leuria.ts:86
The provider a plain chat request would use now.
alternatives
alternatives:
ProviderSnapshot[]
Defined in: packages/client/src/leuria.ts:106
Chat providers waiting for the visitor to pick them instead of their
own AI (see fallback), in order: ready ones, and ones a click would
make ready (a download). Offer them as secondary choices.
decidePending?
optionaldecidePending?:ProviderSnapshot
Defined in: packages/client/src/leuria.ts:100
Like pending, for decisions.
decider?
optionaldecider?:ProviderInfo&object
Defined in: packages/client/src/leuria.ts:98
The provider and model decide() would use now.
Type Declaration
model
model:
string
embedder?
optionalembedder?:ProviderInfo&object
Defined in: packages/client/src/leuria.ts:94
The provider and model embed() would use now. An index built with another model must be rebuilt.
Type Declaration
model
model:
string
embedPending?
optionalembedPending?:ProviderSnapshot
Defined in: packages/client/src/leuria.ts:96
Like pending, for embeddings: an embedder ahead of the current one that needs a visitor action.
needs
needs:
Capability[]
Defined in: packages/client/src/leuria.ts:112
What the page's open conversations need from an AI for full answers
(tools). An AI without it answers with less, or not at all: compare
with a provider's capabilities to say so.
pending?
optionalpending?:ProviderSnapshot
Defined in: packages/client/src/leuria.ts:92
A provider that needs a visitor action (connect, download) and is preferred over the active one (or none is ready): offer it, even while a fallback answers, so the visitor can bring their own AI back.
providers
providers:
ProviderSnapshot[]
Defined in: packages/client/src/leuria.ts:84