Spaces:
Sleeping
Sleeping
Download tests/test_state.py from KheemDH/agentic-multiwriter: direct link, hf CLI and curl.
- Browser
- Download file 404 Bytes
-
https://huggingface.co/spaces/KheemDH/agentic-multiwriter/resolve/main/tests/test_state.py
- Command line
-
hf download hf://spaces/KheemDH/agentic-multiwriter/tests/test_state.py
-
curl -L -o test_state.py https://huggingface.co/spaces/KheemDH/agentic-multiwriter/resolve/main/tests/test_state.py
404 Bytes
| from agentic_multiwriter.state import AgentState, ResearchSnippet | |
| def test_agent_state_basic(): | |
| state: AgentState = { | |
| "topic": "Test", | |
| "mode": "blog", | |
| "research_snippets": [], | |
| "outline": [], | |
| "draft": "", | |
| "revised_draft": "", | |
| "final_output": "", | |
| "meta": {}, | |
| } | |
| assert state["topic"] == "Test" | |
| assert state["mode"] == "blog" | |