MCPcopy Create free account
hub / github.com/Noumena-Network/code / isRedirectInfo

Function isRedirectInfo

src/tools/WebFetchTool/utils.ts:349–353  ·  view source on GitHub ↗
(
  response: AxiosResponse<ArrayBuffer> | RedirectInfo,
)

Source from the content-addressed store, hash-verified

347}
348
349function isRedirectInfo(
350 response: AxiosResponse<ArrayBuffer> | RedirectInfo,
351): response is RedirectInfo {
352 return 'type' in response && response.type === 'redirect'
353}
354
355export type FetchedContent = {
356 content: string

Callers 1

getURLMarkdownContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected