---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/transformers_js/helpers/functions/looksLikeSpooledArtifact.md
---

# Function: looksLikeSpooledArtifact()

```ts
function looksLikeSpooledArtifact(value: unknown): boolean;
```

Defined in: [src/batteries/llm/chat\_common/helpers.ts:365](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/helpers.ts#L365)

Structural (cross-realm-safe) check that a tool result is a [@nhtio/adk!SpooledArtifact](../../../../../spooled_artifact/classes/SpooledArtifact.md): it
exposes the reader surface the handle pattern needs (`asString` + `byteLength`/`lineCount`) and a
constructor carrying the `toolMethods` descriptor list the model is told to call. Used instead of a
bare `instanceof` so a SpooledArtifact from another realm (worker, bundle copy) still matches.

## Parameters

| Parameter | Type      |
| --------- | --------- |
| `value`   | `unknown` |

## Returns

`boolean`
