LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-corerunnablesgraphNodeStyles
    Class●Since v0.2

    NodeStyles

    Schema for Hexadecimal color codes for different node types.

    Copy
    NodeStyles(
      self,
      default: str = 'fill:#f2f0ff,
      line-height:1.2',
      first: str = 'fill-opacity:0',
      last: str = 'fill:#bfb6fc'
    )

    Used in Docs

    • Build a custom SQL agent
    • Use the graph API

    Parameters

    NameTypeDescription
    defaultstr
    Default:'fill:#f2f0ff,line-height:1.2'

    The default color code.

    firststr
    Default:'fill-opacity:0'

    The color code for the first node.

    laststr
    Default:'fill:#bfb6fc'

    The color code for the last node.

    Constructors

    constructor
    __init__
    NameType
    defaultstr
    firststr
    laststr

    Attributes

    attribute
    default: str
    attribute
    first: str
    attribute
    last: str
    View source on GitHub