Skip to main content

Signatures

Dart has no overloading, so prompts and conversations are separate methods:

With options

Generation auto-loads what it needs, and downloads when options.model names a model that is absent.

LlmOptions

Structured output

Cancelling

A namespace-level cancel exists on llm and vlm. No other SDK has this.

Errors

Throws SDKException when no model can be loaded or generation fails.