Skip to main content

5 posts tagged with "LangChain"

LangChain, the Open-Source Framework for Building AI Agents in Python and JavaScript

View All Tags

Fixed: LangChain draw_mermaid() Diagram Labels Unreadable in Dark Mode

· 12 min read
Jagdish Kumawat
Founder @ Dewiride

I drew a LangChain agent with agent.get_graph().draw_mermaid() and viewed the diagram in dark mode, and three of its four labels almost vanished: light grey text on pale boxes. The Mermaid text colours the boxes but leaves the text colour to the renderer's theme, and dark themes draw light text. A NodeStyles with a dark text colour and a white start box made every label readable, in dark mode and in light.