Vertix-agent / tests /test_graph.py
Naif Alqubalee
Update space
16ab8a2
Raw
History Blame Contribute Delete
362 Bytes
from graph.state import initial_state
from api.schemas import GaiaQuestion
def test_initial_state():
question = GaiaQuestion(task_id="1", question="What is 2+2?")
state = initial_state(question)
assert state["task_id"] == "1"
assert state["question"] == "What is 2+2?"
assert state["step_index"] == 0
assert state["final_answer"] == ""