Configuration for application-controlled text-only structured tool phases. Tool argument schemas use the Skillet-convertible closed-object subset and reject format annotations, which Skillet does not validate at runtime. Explicit types must be valid supported types; enum entries must all match their explicit primitive type, including integer constraints.
API
interface ExperimentalWebLlmToolsTransportOptions {engine: WebLlmEngine; media?: never;model?: string;toolPhase: (context: WebLlmToolsTurnContext ) =>
WebLlmToolPhase; }engine
Loaded text engine; the application owns model loading and unloading.
media
neverStructured tool phases accept text input only.
model
stringSelects an already loaded model.
toolPhase
(context: WebLlmToolsTurnContext) => WebLlmToolPhaseSynchronously selects one declared tool or final schema generation. A response schema is required.