OptionalmaxOptionalmodelAn ABSTRACT tier hint, never a vendor model id — the host maps it to a concrete model on the resolved provider. Omit to take the provider's default.
Optionalresponse'json' honored only when features.jsonMode. Defaults to 'text'.
OptionalsignalAbort the completion mid-stream. When it fires, the SDK sends the host a cancel
frame so the host aborts the upstream provider request and STOPS BILLING the
user's key — not merely stops the app-side iterator (LLM_AND_AGENTS_SPEC §3.3
"abort the in-flight LLM request", R3-224). Not sent over the wire (an
AbortSignal isn't serializable); handled SDK-side.
OptionaltoolsHonored only when the resolved provider advertises features.tools.
A host-brokered chat completion request: the messages plus optional tools, response format, and model hint (each honored per the provider's features).