Download src/types/agent-state.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 676 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/types/agent-state.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/types/agent-state.tsx
-
curl -L -o agent-state.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/types/agent-state.tsx
676 Bytes
| export enum AgentState { | |
| LOADING = "loading", | |
| INIT = "init", | |
| RUNNING = "running", | |
| AWAITING_USER_INPUT = "awaiting_user_input", | |
| PAUSED = "paused", | |
| STOPPED = "stopped", | |
| FINISHED = "finished", | |
| REJECTED = "rejected", | |
| ERROR = "error", | |
| RATE_LIMITED = "rate_limited", | |
| AWAITING_USER_CONFIRMATION = "awaiting_user_confirmation", | |
| USER_CONFIRMED = "user_confirmed", | |
| USER_REJECTED = "user_rejected", | |
| } | |
| export const RUNTIME_STARTING_STATES = [AgentState.INIT, AgentState.LOADING]; | |
| export const RUNTIME_INACTIVE_STATES = [ | |
| ...RUNTIME_STARTING_STATES, | |
| // Removed AgentState.STOPPED to allow tabs to remain visible when agent is stopped | |
| AgentState.ERROR, | |
| ]; | |