• AgenticAI – What Is Memory Poisoning And How Do You Guard Against It ?

    Agentic AI – Memory Poisoning & How To Handle It ? Table Of Contents: Don’t Save Automatically Everything. Use Classifier. Give User Control. Conformation Before Storing. Separate Conversation History From Memory. Memory Retrival. Safety Filters. Updating Existing Memory. Memory Review. Security Check.

    Read More

  • Agentic AI – How Do You Handle Context Window Limits For Long Running Agent Task ?

    Agentic AI – How Do You Handle Context Window Limits For Long Running Agent Task ? Table Of Contents: Trim Old Messages. Summarize Previous Conversation. Long Term Memory(Store) Retrive Only Relevant Memory(RAG). Remove Unnecessary Tool Output. Checkpointing. Break Large Task Into Smaller Steps. Multi Agent Architecture. (1) Trim Older Messages (2) Summarize Previous Conversation. (3) Long Term Memory(Store) (4) Retrive Only Relevant Memory(RAG) (5) Remove Unnecessary Tool Outputs (6) Checkpointing (7) Break Large Tasks Into Smaller Steps (8) Multi Agent Architecture (9) Summary Table

    Read More

  • AgenticAI – Long Trem Momory.

    Agentic AI – Long Term Memory Table Of Contents: What Is Long Term Memory. Implementation Of Long Term Memory. Long Term Memory Storage. Reading Long Term Memory. Writing Long Term Memory. (1) What Is Long Term Memory? (2) Implementation Of Long Term Memory. InMemoryStore PostgreSQL (3) Long Term Memory Storage InMemoryStore PostgreSQL (4) Reading Long Term Memory InMemoryStore from dataclasses import dataclass from langchain.agents import create_agent from langchain.tools import ToolRuntime, tool from langchain_core.runnables import Runnable from langgraph.store.memory import InMemoryStore @dataclass class Context: user_id: str # InMemoryStore saves data to an in-memory dictionary. Use a DB-backed store in production. store =

    Read More

  • Agentic AI – Drawbacks Of Short Term Memory

    Agentic AI – Drawbacks Of Short Term Memory Table Of Contents: Drawbacks Of Short Term Memory. Can’t We Access Multiple Thread Memory  In Program? Why Doesn’t Langgraph Automatically Search All Threads? (1) Drawbacks Of Short Term Memory (2) Cant Agent Access Multiple Thread Short Term Memory ? (3) Why Doesn’t Langgraph Automatically Search All Threads?

    Read More

  • AgenticAI – Short Term Memory

    Agentic AI – Short Term Memory Table Of Contents: What Is Short Term Memory? In Memory Saving(Short Term). Data Base Saving(Long Term). Create Custom Agent State. How Do We Khow Whether Short Term Memory Is Enabled In LangGraph? Problem With Short Term Memory Enabled. How LangChain Solves The Context Window Exceed Issue? Message Trimming From Memory. Message Deletion From Memory. Summarize The Old Message. Accessing Short Term Memory. (1) What Is Short Term Memory ? (2) In Memory Saving(Short Term) (3) Data Base Saving(Long Term) (5) Create Custom Agent State (5) How Do We Know Whether Short-Term Memory Is Enabled

    Read More

  • AgenticAI – What Is Runaway Loop And How To Prevent It ?

    AgenticAI – What Is Runaway Loop & How To Prevent It? Table Of Contents: What Is Graph Of Thoughts ? Real Life Examples Agentic AI Example Why Is It Called A Graph? Difference From Tree Of Thought. Easy Analogy. Interview Friendly Summary. (1) What Is Runaway Loop ? (2) Examples Of Runaway Loop (3) Why Do Agents Loop ? (4) Why Is It Dangerious? (5) How To Prevent It? (6) Interview Answar (7) How To Implement This Using LangChain & Graph from langchain.agents import AgentExecutor agent_executor = AgentExecutor( agent = agent, tools = tools, max_iterations = 5 ) from langchain.agents

    Read More

  • Agentic AI – Tree Of Thoughts Of Reasoning Pattern.

    LangChain – Tree Of Thoughts Of Reasoning Pattern Table Of Contents: What Is Graph Of Thoughts ? Real Life Examples Agentic AI Example Why Is It Called A Graph? Difference From Tree Of Thought. Easy Analogy. Interview Friendly Summary. (1) What Is Graph Of Thought? (2) Simple Real Life Example. (3) Agentic AI Example (4) Why Its Called Graph ? (5) Difference From Tree Of Thought (6) Easy Analogy (7) Interview Friendly Summary

    Read More

  • Agentic AI – What Is Plan & Execute Reasoning Pattern ?

    Agentic AI – Plan & Execute Reasonin Pattern Table Of Contents: What Is Plan & Execute. How Agentic AI Does Plan & Execute? Examples Of Planning & Execution. Why We Use Plan & Execute? Flow Diagram Of Plan & Execute. Difference From Normal Chat Bot. How Plan & Execute Differs From React Approach ? (1) What Is Plan & Execute ? (2) How Agentic AI Does Plan & Execute ? (3) Example Of Planning & Execution (4) Why We Use Plan & Execute ? (5) Flow Diagram Of Plan & Execute. (6) Difference From Normal Chat Bot (7) How Plan

    Read More

  • LangChain – Prompt Catching

    LangChain – Prompt Catching Table Of Contents: Implicit Provider Prompt Catching Explicit Provider Level Catching. Langchain Middleware (1) Problem Without Prompt Catching (2) What Is Prompt Catching ? (3) Implicit Prompt Catching . Models That Support Implicit Prompt Catching: from langchain_openai import ChatOpenAI llm = ChatOpenAI( MODEL = "gpt-5" ) response = model.invoke("Explain LangGrapg In Details") print(response.usage_metadata) (4) What Happen After We Catch The Token How The LLM Process It ? (5) Difference In Prompt Catching & Response Catching (6) Explicit Provider Level Catching

    Read More

  • LangChain – Models

    LangChain – Models Table Of Contents: What Is A Model ? Basic Uses Of Model. Parameters To The Model Model Invocation Tool Calling Structured Output Model Profilling Multimodal Model Reasoning Model Local Models Prompt Catching Server Side Tool Uses Rate Limiting Base URL & Proxy Setting Log Probabilities Token Uses Model Invocation Config Configurable Model Dynamic Model Selection (1) What Is A Model ? (2) Basic Uses Of Model. pip install -U "langchain[openai]" import os from langchain.chat_models import init_chat_model os.environ["OPENAI_API_KEY"] = "sk-…" model = init_chat_model("gpt-5.5") response = model.invoke("How Are You Doing?") (3) Model Parameters model = init_chat_model( model = "qwen3:0.6b",

    Read More