LLMAPI
Defined in: namespaces-core-plugins.ts:799
Engine-direct LLM verbs + contributor registries (fn-100). Permission is enforced at facade ingress; audit rides lifecycle events + durable usage rows (no action receipts for LLM verbs in v1).
QUIRK: the JS surface exposes providers / preprocessors /
postprocessors / routers sub-objects; the Swift export flattens these
to registerProvider etc. Preprocessor/postprocessor/router register
are SYNCHRONOUS (in-memory binding); provider register is async
(durable persistence).
fn-100
Properties
Section titled “Properties”providers
Section titled “providers”providers:
object
Defined in: namespaces-core-plugins.ts:813
Provider contributor registry.
register()
Section titled “register()”register(
spec):Promise<{id:string; }>
[llm.provider.register] — async (durable).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<{ id: string; }>
unregister()
Section titled “unregister()”unregister(
params):Promise<void>
Parameters
Section titled “Parameters”params
Section titled “params”string
Returns
Section titled “Returns”Promise<void>
preprocessors
Section titled “preprocessors”preprocessors:
object
Defined in: namespaces-core-plugins.ts:819
Preprocessor contributor registry.
register()
Section titled “register()”register(
spec):object
[llm.preprocessor.register] — SYNC (in-memory).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”object
id:
string
unregister()
Section titled “unregister()”unregister(
params):Promise<void>
Parameters
Section titled “Parameters”params
Section titled “params”string
Returns
Section titled “Returns”Promise<void>
postprocessors
Section titled “postprocessors”postprocessors:
object
Defined in: namespaces-core-plugins.ts:825
Postprocessor contributor registry.
register()
Section titled “register()”register(
spec):object
[llm.postprocessor.register] — SYNC (in-memory).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”object
id:
string
unregister()
Section titled “unregister()”unregister(
params):Promise<void>
Parameters
Section titled “Parameters”params
Section titled “params”string
Returns
Section titled “Returns”Promise<void>
routers
Section titled “routers”routers:
object
Defined in: namespaces-core-plugins.ts:831
Router contributor registry.
register()
Section titled “register()”register(
params):object
[llm.router.register] — SYNC (in-memory).
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”object
id:
string
unregister()
Section titled “unregister()”unregister(
params):Promise<void>
Parameters
Section titled “Parameters”params
Section titled “params”string
Returns
Section titled “Returns”Promise<void>
Methods
Section titled “Methods”complete()
Section titled “complete()”complete(
params):Promise<AnyJSONValue>
Defined in: namespaces-core-plugins.ts:801
Completion. [llm.complete]
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<AnyJSONValue>
stream()
Section titled “stream()”stream(
params):Promise<{result:AnyJSONValue;cancel: () =>void; }>
Defined in: namespaces-core-plugins.ts:803
Streaming completion — resolves to a result + cancel pair. [llm.stream]
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<{ result: AnyJSONValue; cancel: () => void; }>
embed()
Section titled “embed()”embed(
params):Promise<number[][]>
Defined in: namespaces-core-plugins.ts:805
Embeddings. [llm.embed]
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<number[][]>
vision()
Section titled “vision()”vision(
params):Promise<AnyJSONValue>
Defined in: namespaces-core-plugins.ts:807
Vision completion. [llm.vision]
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<AnyJSONValue>
agent()
Section titled “agent()”agent(
params):Promise<AnyJSONValue>
Defined in: namespaces-core-plugins.ts:809
Agent loop. [llm.agent]
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<AnyJSONValue>
usage()
Section titled “usage()”usage(
params):Promise<AnyJSONValue>
Defined in: namespaces-core-plugins.ts:811
Usage report. [llm.ledger.read]
Parameters
Section titled “Parameters”params
Section titled “params”forPlugin?
Section titled “forPlugin?”string
range?
Section titled “range?”Returns
Section titled “Returns”Promise<AnyJSONValue>