๐Ÿš€
๐Ÿ•ธ๏ธ LangGraph
1. Elements
AI

Elements

- The State is a shared data Structure that holds current information or context of an application.

Mar 202510 min read

Elements

State

  • The State is a shared data Structure that holds current information or context of an application.
  • In simpler terms, it is application memory, keeping track of variables and data that notes can access and modify as they execute.

Node

  • Notes are individual functions or operations that perform specific task within the graph
  • Each note receives input (often the current state) processes it and produces an output or an updated

Graph ๐Ÿ“Š

  • A graph in line graph in an overarching structure that maps out how different task (nodes) are connected and executed.
  • It visually represents the workflow, showing the sequence and conditional paths between various operations.

Edge

  • Edges are the connections between nodes that determine the flow of execution.
  • They tell us which node should be executed next after the current one completes its task.

Conditional Edges

  • Conditional Edges are specialized connections that decide the next node to execute based on specific conditions or logic applied to the current state.

Start ๐Ÿ

  • The State node is a virtual entry point in LangGraph, marking where the workflow begins.
  • It doesn't perform any operations itself but serves as the designated starting position for the graph's execution.

End ๐Ÿ”š

  • The End nodes signifies the conclusion of workflow in LangGraph.
  • Upon reaching this nodes, the graph's execution stops, indicating that all intended processes have been completed.

Tools ๐Ÿ› ๏ธ

  • Tools are specialized functions or utilities that nodes can utilize to perform specific tasks such as fetching data from an API.
  • They enhance the capabilities of nodes by providing additional functionalities.
  • Nodes are part of the graph structure, while tools are functionalities used within nodes.

ToolNode

  • A toolnode is just a special kind of node whose main job is to run a tool.
  • It connects the tool's output back into the state, so other nodes can use that information.

State Graph

  • A stategraph is a class in LangGraph used to build and compile the graph structure.
  • It manages the nodes, edges and the overall state, ensuring that the workflow operates in a unified way and that data flows correctly between components

Runnable โšก๏ธ

  • A runnable in LangGraph is a standardized, executable component that species a specific task within an AI workflow.
  • It serves as a fundamental building block and allowing for us to create modular systems.

Messages ๐Ÿ“ฌ

๐Ÿ‘จ๐Ÿปโ€โš–๏ธ Human Message
  • Represents input from a user.
๐Ÿ’ป System Message
  • Used to provide instructions or context to the model
๐Ÿงฉ Functional Message
  • Represents the result of a function call
๐Ÿค– AI Message
  • Represents responses generated by AI models
๐Ÿ”จ Tool Message
  • Similar to Function Message, but specific to tool usage.

ยฉ 2026 Driptanil Datta. All rights reserved.

Software Developer & Engineer

Disclaimer:The content provided on this blog is for educational and informational purposes only. While I strive for accuracy, all information is provided "as is" without any warranties of completeness, reliability, or accuracy. Any action you take upon the information found on this website is strictly at your own risk.

Copyright & IP:Certain technical content, interview questions, and datasets are curated from external educational sources to provide a centralized learning resource. Respect for original authorship is maintained; no copyright infringement is intended. All trademarks, logos, and brand names are the property of their respective owners.

System Operational

Built with Love โค๏ธ | Last updated: Mar 16 2026