ai.FunctionSpec$stream

One unit of model work, bound and unrun. Immutable; getters only.

Reference version

Signature

class ai.FunctionSpec$stream<Out>

One unit of model work, bound and unrun. Immutable; getters only.

MyFunc@spec(args) calls the compiler-generated private MyFunc@spec companion. Streaming calls the separate private MyFunc@stream companion, whose return type carries the Out$stream schema. Neither companion is public.

Source:<builtin>/ai/spec.bamlbytes 0–0

Fields

spec_name

string | null

args

map<string, unknown>

prompt_template

unknown