complete method
Returns the channel's stream directly — see the hosted transport for why a wrapping generator would break cancellation.
Implementation
@override
Stream<AgentSdkCompletionEvent> complete(AgentSdkCompletionRequest request) {
final channel = _channel;
if (channel == null) {
return Stream.error(
LlmTransportException(
LlmErrorKind.unreachable,
'The standalone AI transport is not connected.',
transportId: id,
),
);
}
return channel.complete(request);
}