Skip to main content

Interface: LeuriaState

Defined in: packages/client/src/leuria.ts:83

Properties​

active?​

optional active?: 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?​

optional decidePending?: ProviderSnapshot

Defined in: packages/client/src/leuria.ts:100

Like pending, for decisions.


decider?​

optional decider?: ProviderInfo & object

Defined in: packages/client/src/leuria.ts:98

The provider and model decide() would use now.

Type Declaration​

model​

model: string


embedder?​

optional embedder?: 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?​

optional embedPending?: 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?​

optional pending?: 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