You can try adding __init__.py in src/ and src/agent/, then set
export PYTHONPATH=src
or maybe add PYTHONPATH=src to your .env
Also update langgraph.json to use
"Graph with Memory": "agent.graph:graph"
so langgraph dev can import it properly