Download src/agents/tools/agent-step.test-support.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/tools/agent-step.test-support.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/agents/tools/agent-step.test-support.ts
-
curl -L -o agent-step.test-support.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/tools/agent-step.test-support.ts
535 Bytes
| import "./agent-step.js"; | |
| type AgentCommandRunner = typeof import("../../commands/agent.js").agentCommandFromIngress; | |
| type AgentStepTesting = { | |
| setDepsForTest( | |
| overrides?: Partial<{ | |
| agentCommandFromIngress: AgentCommandRunner; | |
| }>, | |
| ): void; | |
| }; | |
| type AgentStepTestApi = { | |
| testing: AgentStepTesting; | |
| }; | |
| function getTestApi(): AgentStepTestApi { | |
| return (globalThis as Record<PropertyKey, unknown>)[ | |
| Symbol.for("openclaw.agentStepTestApi") | |
| ] as AgentStepTestApi; | |
| } | |
| export const testing = getTestApi().testing; | |