Interface: IGatewayCall<TStructured>
Defined in: types.ts:570
What ask(), run() and resume() return, at once (D38). Read events to stream, await response for the result; a backend
service that needs no streaming awaits response only.
Type Parameters
TStructured
TStructured = unknown
Properties
events
events:
AsyncIterable<ILLMClientEvent>
Defined in: types.ts:577
Every event of the call, in order, buffered until read. One reader. Ends when response settles; throws the call's
error when the call throws. A stream nobody reads never slows the call.
Collected only from the first access: access events before your first await (e.g. const {events, response} = gateway.ask(input));
a caller that never accesses it costs no memory for the events.
response
response:
Promise<TGatewayResponse<TStructured>>
Defined in: types.ts:579
The final response. Rejects with the dynaError of what the caller got wrong or the provider broke.