51
return cancelledElicitationResult();
52
}
54
>
// A request with neither a URL nor any questions can't be meaningfully
55
>
// presented: a `url`-mode request missing its URL, or a `form` whose schema
56
>
// yielded no representable fields. The workbench would inject a required
57
>
// generic text question whose answer this translator then discards — falsely
58
>
// reporting the elicitation as accepted. Cancel instead of surfacing it.
59
>
const chatRequest = buildElicitationRequest(requestId, request);
60
if (!chatRequest.url && !chatRequest.questions?.length) {
61
return cancelledElicitationResult();