INNER CODE UNIT · JavaScript
isThreadStreamEnd
Hmbown/CodeWhale · npm/runtime-sdk/index.js:203
export function isThreadStreamEnd(event) {
return event.event === "stream.end";
}
function normalizeBaseUrl(value) {
return value.endsWith("/") ? value : `${value}/`;
}
function segment(value) {
if (value === null || value === undefined || String(value).trim() === "") {
throw new TypeError("Runtime API path segment must be a non-empty value");
}
return encodeURIComponent(String(value));
}
function fleetEventPath(path, options) {
const query = new URLSearchParams();
if (options.after !== undefined && options.after !== null && String(options.after) !== "") {