generate
open override fun generate(prompt: String? = null, messages: List<ModelMessage> = emptyList(), options: TContext? = null, abortSignal: AbortSignal = AbortSignalNever): Flow<GenerateResult<TOutput>>(source)
Cold flow: no model call or tool execution starts until collected. Each collection reruns the full generation from the beginning, including tool executions and their side effects, and may incur provider cost or billing again. One-shot callers should collect exactly one value, usually with .first().