Download tests/unit/test_models.py from jayc1978/aegis: direct link, hf CLI and curl.
- Browser
- Download file 790 Bytes
-
https://huggingface.co/jayc1978/aegis/resolve/main/tests/unit/test_models.py
- Command line
-
hf download hf://jayc1978/aegis/tests/unit/test_models.py
-
curl -L -o test_models.py https://huggingface.co/jayc1978/aegis/resolve/main/tests/unit/test_models.py
790 Bytes
| from aegis.core import AgentContext, AgentResult, Task, TaskStatus | |
| def test_task_defaults_to_pending() -> None: | |
| task = Task(name="Plan", description="Create an execution plan.") | |
| assert task.status is TaskStatus.PENDING | |
| assert task.name == "Plan" | |
| def test_agent_context_contains_task() -> None: | |
| task = Task(name="Research", description="Retrieve relevant evidence.") | |
| context = AgentContext(task=task, inputs={"query": "AI agents"}) | |
| assert context.task == task | |
| assert context.inputs["query"] == "AI agents" | |
| def test_agent_result_success() -> None: | |
| result = AgentResult( | |
| agent_name="planner", | |
| success=True, | |
| output={"steps": ["inspect", "plan", "execute"]}, | |
| ) | |
| assert result.success is True | |
| assert result.errors == [] | |