ai.Agent$stream

The default runner. A spec-mode LLM function's direct call runs `Agent.new(client = client).run(Fn@spec(...)).value`; construct it yourself to set the other fields (`$` call-site parameters are a future phase).

Reference version

Signature

class ai.Agent$stream

The default runner. A spec-mode LLM function's direct call runs Agent.new(client = client).run(Fn@spec(...)).value; construct it yourself to set the other fields ($ call-site parameters are a future phase).

The class itself is not generic: none of its configuration involves the output type. Out lives on run, where it is inferred from the spec argument, so no call site needs to name it.

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

Fields

max_steps

int | null

schema_attempts

int | null

on_event

unknown | null