UNPKG

@agentek/tools

Version:

Blockchain tools for AI agents

9 lines 267 B
/** * Throws an error if the fetch response is not OK. */ export async function assertOkResponse(response, context) { if (!response.ok) { throw new Error(`${context}: ${response.status} ${response.statusText}`); } } //# sourceMappingURL=fetch.js.map