feat: solution for 'Повторный экзамен: Граф с рефлексией и доработкой'

This commit is contained in:
2026-07-01 16:20:51 +03:00
parent 5801947c0d
commit c776326204
10 changed files with 258 additions and 258 deletions
+13
View File
@@ -0,0 +1,13 @@
import pytest
from src.nodes.reflect import ReflectNode
def test_reflect_node():
state = {"input": "Hello world"}
result = ReflectNode.run(state)
assert "reflection" in result
expected = (
"I see that you said: 'Hello world'. "
"Let's reflect on that."
)
assert result["reflection"] == expected