Skip to content

BYDiii-Hashmanii/simple_langraph_chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Simple Agentic Chatbot (Groq + Llama 3.1 8B)

A minimal Agentic AI framework built for learning and experimentation.

This project demonstrates how a Large Language Model (LLM) can decide:

β€’ βžœβœ… Whether to answer a query directly

β€’ βžœπŸ”§ Or call a tool when needed

β€’ βžœπŸ” And return back to the LLM after tool execution

It is designed for understanding the fundamentals of Agentic Systems.

State Graph is

    +---------+
    | __start__ |
    +---------+
          |
          v
 +------------------+
 | tool_calling_llm |
 +------------------+
    |            |
    |            v
    |        +-------+
    |        | tools |
    |        +-------+
    |            |
    +------------+
          |
          v
    +-------+
    | __end__ |
    +-------+

Mermaid Diagram

flowchart TD A [start] --> B[tool_calling_llm] B --> C[tools] C --> B B --> D[end]

Architecture Flow

start β†’ tool_calling_llm β†’ (tools if needed) β†’ tool_calling_llm β†’ end

Flow Explanation

Flow Explanation

  1. User sends a query

  2. LLM (Llama-3.1-8b-instant via Groq) decides:

    • If tool is required β†’ move to tool node
    • If not required β†’ respond directly
  3. If tool is called:

    • Tool executes
    • Output is sent back to LLM
  4. LLM generates final response

  5. End state reached

πŸ“Œ Why This Project?

β€’ This project is intentionally simple to help you understand:

β€’ What is an Agent?

β€’ What is Tool Calling?

β€’ How LLMs decide actions?

β€’ Basic Agentic Architecture

β€’ State Graph Workflow

About

This is simple agentic chatbot with one tool Node and LLM.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors