Spaces:
Configuration error
Configuration error
Download frontend/src/state/agent-slice.tsx from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/state/agent-slice.tsx
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/state/agent-slice.tsx
-
curl -L -o agent-slice.tsx https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/state/agent-slice.tsx
436 Bytes
| import { createSlice } from "@reduxjs/toolkit"; | |
| import { AgentState } from "#/types/agent-state"; | |
| export const agentSlice = createSlice({ | |
| name: "agent", | |
| initialState: { | |
| curAgentState: AgentState.LOADING, | |
| }, | |
| reducers: { | |
| setCurrentAgentState: (state, action) => { | |
| state.curAgentState = action.payload; | |
| }, | |
| }, | |
| }); | |
| export const { setCurrentAgentState } = agentSlice.actions; | |
| export default agentSlice.reducer; | |