Skip to main content

Interface: PromptAPIOptions

Defined in: prompt-api/src/language-model.ts:90

Extends​

  • BridgeProviderOptions

Extended by​

Properties​

app?​

optional app?: string

Defined in: client/dist/index.d.ts:962

Name shown to the visitor in the approval window.

Inherited from​

BridgeProviderOptions.app


id?​

optional id?: string

Defined in: client/dist/index.d.ts:1107

Provider id, default bridge.

Inherited from​

BridgeProviderOptions.id


maxSteps?​

optional maxSteps?: number

Defined in: prompt-api/src/language-model.ts:96

Most tool calls per prompt. Default 20.


needs?​

optional needs?: SiteNeeds

Defined in: client/dist/index.d.ts:964

What the site's features need: Leuria recommends an AI and model that fit.

Inherited from​

BridgeProviderOptions.needs


provider?​

optional provider?: Provider

Defined in: prompt-api/src/language-model.ts:92

The AI behind LanguageModel. Default: leuria() with these options.


retries?​

optional retries?: number

Defined in: prompt-api/src/language-model.ts:98

How many times an answer that misses the responseConstraint goes back to the AI. Default 2.


skills?​

optional skills?: string[]

Defined in: client/dist/index.d.ts:972

Skills that guide the visitor's AI on this site, in the npx skills syntax: owner/repo, owner/repo@skill, owner/repo/path#commit, a GitHub URL, or a path on this site (/ for its .well-known/agent-skills). Leuria fetches them, shows them to the visitor, and gives them to the AI in this site's conversations only.

Inherited from​

BridgeProviderOptions.skills


storage?​

optional storage?: Pick<Storage, "getItem" | "setItem" | "removeItem">

Defined in: client/dist/index.d.ts:974

Where the site's token is kept. Default: localStorage, else memory.

Inherited from​

BridgeProviderOptions.storage


system?​

optional system?: string

Defined in: prompt-api/src/language-model.ts:94

Instructions for the AI when the page gives no system prompt.


url?​

optional url?: string

Defined in: client/dist/index.d.ts:960

Engine URL. Default DEFAULT_URL.

Inherited from​

BridgeProviderOptions.url