Download src/agents/tools/ask-user-tool.test-support.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 501 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/tools/ask-user-tool.test-support.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/agents/tools/ask-user-tool.test-support.ts
-
curl -L -o ask-user-tool.test-support.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/tools/ask-user-tool.test-support.ts
501 Bytes
| import "./ask-user-tool.js"; | |
| type AskUserToolTestApi = { | |
| resetPendingAskUserQuestionsForTest(): void; | |
| }; | |
| function getTestApi(): AskUserToolTestApi { | |
| const api = (globalThis as Record<PropertyKey, unknown>)[ | |
| Symbol.for("openclaw.askUserToolTestApi") | |
| ]; | |
| if (!api) { | |
| throw new Error("ask_user tool test API is unavailable"); | |
| } | |
| return api as AskUserToolTestApi; | |
| } | |
| export function resetPendingAskUserQuestionsForTest(): void { | |
| getTestApi().resetPendingAskUserQuestionsForTest(); | |
| } | |