Download src/cli/capability-cli/media-understanding-result.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 422 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/cli/capability-cli/media-understanding-result.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/cli/capability-cli/media-understanding-result.ts
-
curl -L -o media-understanding-result.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/cli/capability-cli/media-understanding-result.ts
422 Bytes
| import type { RunMediaUnderstandingFileResult } from "../../media-understanding/runtime-types.js"; | |
| export function isMissingMediaUnderstandingProvider( | |
| result: RunMediaUnderstandingFileResult, | |
| ): boolean { | |
| const decision = result.decision; | |
| return ( | |
| decision?.outcome === "skipped" && | |
| decision.attachments.length > 0 && | |
| decision.attachments.every((attachment) => attachment.attempts.length === 0) | |
| ); | |
| } | |