update local startup flow and add root env example

Make the project start more reliably in the current Windows bash setup, add a safe root .env.example for onboarding, and lower the backend Python floor to 3.11 to match the validated local environment.
This commit is contained in:
2026-03-25 21:42:26 +08:00
parent db1a46af39
commit d85cb9cf35
7 changed files with 692 additions and 8 deletions

View File

@@ -0,0 +1,12 @@
from langchain_core.messages import HumanMessage
from app.agents.state import ConversationTurn, turn_to_message
def test_turn_to_message_returns_human_message_for_user_turn():
turn = ConversationTurn(role='user', content='hello')
message = turn_to_message(turn)
assert isinstance(message, HumanMessage)
assert message.content == 'hello'