ai.internal.with_own_call
A client's turn from one model call of its own: `call`, which reported `usage` and answered as `resolved_model` (null when the response names no model). The client asked for `requested_model` (null when unknown). Streams finish through this too.
Reference version
Signature
function ai.internal.with_own_call(
turn: ai.ModelTurn,
call: ai.events.ModelCall,
usage: ai.events.Usage | null,
requested_model: string | null,
resolved_model: string | null
) -> ai.ModelTurn throws never
A client's turn from one model call of its own: call, which reported
usage and answered as resolved_model (null when the response names no
model). The client asked for requested_model (null when unknown).
Streams finish through this too.
Source:<builtin>/ai/ns_internal/helpers.bamlbytes 7782–8405