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$streamThe 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 | nullschema_attempts
int | nullclient
ai.Client | nulltool_errors
ai.tools.ErrorMode | nullon_event
unknown | null