CDPL Logo
Cinute Digital
Home
ServicesEventMentors
BlogContact

Data Science

  • Data Science - OverviewComprehensive Data Science and AI - Master ProgramMachine Learning and Data Science with PythonDeep Learning, NLP and Generative AIAdvanced Data Science & Machine Learning MasterclassMachine Learning Algorithms using python ProgrammingMachine Learning and Data Visualization using R ProgrammingPython Programming

Artificial Intelligence(AI)

  • Artificial Intelligence (AI) - OverviewPrompt Engineering with Gen AI

Software Testing Courses

  • Software Testing - OverviewManual Software TestingAPI Testing using POSTMAN and RestAPIsDatabase Management System using MySQLETL Testing CourseAdvanced Software TestingAdvanced Automation TestingAdvanced Manual and Automation TestingAdvanced Manual and Automation TestingJava Programming

Digital Marketing

  • Digital Marketing - OverviewDigital Marketing and Analytics - Master ProgramDigital Marketing and AI (For Business Owners)Digital Marketing With AI Bootcamp

Business Development(BI)

  • Business Intelligence (BI) - OverviewAdvanced Data Analytics - Hero ProgramAdvanced Data Analytics with Python LibrariesExcel for Data Analytics & VisualizationData Analytics & Visualization with TableauData Analytics & Visualization with Power BIData Analytics With BI And Big Data Engineering - Master Program

Blogs

  • BlogsSoftware TestingData ScienceWeb DevelopmentAI & Machine LearningDigital Marketing

Services

  • Campus to CorporateCustom TrainingExpert TalksFaculty DevelopmentGovt & Public Sector TrainingIndustrial VisitsInternship ProgramOn Job TrainingShort Term Training Program (STTP)Train the TrainerWorkshops

Certifications and Accreditation

  • AAA CertificationACTD CertificationValidate Your Certificate

Events

  • Business Analytics Course (Aldel Institute)MoU Signing (St. Francis)Job Fair (Nirmala Memorial)Industrial Visit (VIVA Institute)National Conference on AI (MKES)FDP on Power BI & Tableau (Bhavans College)Internship Program (DJ Sanghvi)TechoutsavIndustrial Visit (Thakur College)Placement Drive (Tech Mahindra)

Follow Us On

Follow Us On

Institute

  • HomeCMS LoginMock TestISTQB RegistrationServicesEventsMentorsPlacementsLive JobsJob OpeningsCareersAbout CDPLOur TeamReviewsAffiliate ProgramContact Us

Loading...

Loading...

All BlogsWeb DevelopmentData SciencePython ProgrammingArtificial Intelligence and Machine Learning (AI/ML)Digital MarketingBusiness Intelligence (BI)Software TestingArtificial IntelligenceAll Categories

Loading...

Ready for Career Guidance?

At CDPL Ed-tech Institute, we provide expert career advice and counselling in AI, ML, Software Testing, Software Development, and more. Apply this checklist to your content strategy and elevate your skills. For personalized guidance, book a session today.

City Wise

Software Testing City Wise

  • Software Testing Course in MumbaiSoftware Testing Course in DelhiSoftware Testing Course in AhmedabadSoftware Testing Course in ChennaiSoftware Testing Course in BengaluruSoftware Testing Course in PuneSoftware Testing Course in KolkataSoftware Testing Course in Hyderabad

Data Science City Wise

  • Data Science Course in MumbaiData Science Course in DelhiData Science Course in AhmedabadData Science Course in ChennaiData Science Course in BengaluruData Science Course in PuneData Science Course in KolkataData Science Course in Hyderabad

Business Intelligence City Wise

  • Business Intelligence Course in MumbaiBusiness Intelligence Course in delhiBusiness Intelligence Course in AhmedabadBusiness Intelligence Course in ChennaiBusiness Intelligence Course in BengaluruBusiness Intelligence Course in PuneBusiness Intelligence Course in KolkataBusiness Intelligence Course in Hyderabad

Artificial Intelligence City Wise

  • Artificial Intelligence Course in MumbaiArtificial Intelligence Course in delhiArtificial Intelligence Course in AhmedabadArtificial Intelligence Course in ChennaiArtificial Intelligence Course in BengaluruArtificial Intelligence Course in PuneArtificial Intelligence Course in KolkataArtificial Intelligence Course in Hyderabad

Digital Marketing City Wise

  • Digital Marketing Course in MumbaiDigital Marketing Course in delhiDigital Marketing Course in AhmedabadDigital Marketing Course in ChennaiDigital Marketing Course in BengaluruDigital Marketing Course in PuneDigital Marketing Course in KolkataDigital Marketing Course in Hyderabad
View All
Cinute Digital logo

Cinute Digital

Get In Touch

Head Office (CDPL)

Office #1, 2nd Floor, Ashley Tower, Kanakia Road, Vagad Nagar, Beverly Park, Mira Road, Mira Bhayandar, Mumbai, Maharashtra 401107

Study Center MeghMehul Classes (Vasai)

Shop No 7, Laxmi Palace, Opposite Vidhyavardhini Degree Engineering College, Gurunanak Nagar, Vasai West, Mumbai, Maharashtra - 401202
contact@cinutedigital.com
+91 78-883-837-88|+91 84-889-889-84
MSME
Skill India
Trustpilot
ISO 27001 Certified
ISO 9001 Certified
Privacy PolicyCookies PolicyTerms and ConditionsCancellation/Refund Policy

ISO 9001:2015 (QMS) 27001:2013 (ISMS) Certified Company.

© 2026 Cinute Digital Pvt. Ltd. — All Rights Reserved.

Powered By

Testriq_logo

AI Agents 101: Tools, Memory, and Planning

Shoeb Shaikh
Shoeb Shaikh

Shoeb Shaikh is a seasoned Software Testing and Data Science Expert and a Mentor with over 14 years of experience in the field. Specialist in designing and managing processes, and leading high-performing teams to deliver impactful results.

November 6, 2025•5 min read
AI Agents 101: Tools, Memory, and Planning

New to AI agents? This CDPL guide explains what agents are, how they use tools and memory, popular planning strategies like ReAct, and how to evaluate and ship useful agent workflows.

Beginner friendly guide to AI agents by CDPL. Learn how agent tools, memory, and planning work together to automate tasks safely and reliably.

Introduction

AI agents are systems that decide what to do next, call tools, remember context, and plan multi step tasks toward a goal. For learners at Cinute Digital Pvt Ltd (CDPL) and partner teams, this guide explains core concepts with code patterns you can run, plus safety and evaluation so agents help rather than hinder production work.

What Is an AI Agent

Blog Image

An AI agent is a loop: observe state, reason about options, act with a tool, and update memory before repeating. Unlike a single prompt, agents chain steps and learn from context. A practical agent needs three pillars: tools to take actions, memory to keep relevant facts, and planning to choose the next step.

Agent Architecture at a Glance

Blog Image
  • Inputs: user goal, environment state, policies and constraints.
  • Reasoning: selection of next action using prompts, search, or rules.
  • Tools: functions for search, database, code execution, email, or business APIs.
  • Memory: short term scratchpad, long term vector store, and episodic logs.
  • Planner: strategies like ReAct, task decomposition, or graph based workflows.
  • Evaluator: quality, cost, latency, and safety checks with fallbacks.

Tools and Function Calling

Blog Image

Tools turn thoughts into actions. Define a clear schema and let the model pick a function and arguments. Keep tools idempotent and observable.

# Minimal function calling style example
import json

TOOLS = {
  "search_web": {"description": "Search the web", "args": {"query": "string"}},
  "get_weather": {"description": "Weather by city", "args": {"city": "string"}}
}

def call_tool(name, args):
  if name == "search_web":
    return f"Top result for {args['query']}"
  if name == "get_weather":
    return f"{args['city']}: 28C and clear"
  return "Unknown tool"

def agent_step(state, llm):
  # state contains messages and scratchpad
  tool_suggestion = llm.pick_tool(TOOLS, state)  # pseudo API
  result = call_tool(tool_suggestion["name"], tool_suggestion["args"])
  state["scratchpad"].append({"tool": tool_suggestion["name"], "result": result})
  return state

Give tools strong names, concise descriptions, and strict argument schemas

Memory: Short Term and Long Term

Blog Image

Short term memory lives in the conversation or scratchpad for the current task. Long term memory stores reusable knowledge in a vector database for retrieval augmented generation.

  • Short term: chain of thought summary, last tool results, current plan.
  • Long term: docs, SOPs, past tickets, user preferences, and embeddings.
# Simple vector memory with FAISS like pattern (pseudo)
from sklearn.feature_extraction.text import TfidfVectorizer
import numpy as np

docs = ["Refund policy v3", "SLA for enterprise", "How to export reports"]
V = TfidfVectorizer().fit_transform(docs)

def retrieve(q, k=2):
  qv = TfidfVectorizer().fit(docs).transform([q])  # demo only
  scores = (V @ qv.T).toarray().ravel()
  idx = np.argsort(scores)[::-1][:k]
  return [docs[i] for i in idx]

In production use a real embedding model and FAISS, Milvus, or a managed vector DB

Planning Strategies That Work

Blog Image

ReAct planning

Alternate between reasoning and action. The agent thinks, selects a tool, observes results, and iterates until done.

Task decomposition

Break a large goal into smaller subtasks with milestones and owners. Great for workflows like data pipelines or content production.

Routing and graphs

Use decision nodes to route to specialized tools or sub agents. Useful when you have different skills like search, math, and database access.

User goal: "Create a weekly sales summary for India and UAE"

Plan:
1) Retrieve last 7 days of orders
2) Aggregate by country and product
3) Generate chart and draft email
4) Ask for confirmation before sending

Keep plans explicit and auditable for users and reviewers

RAG for Agents

Blog Image

Retrieval Augmented Generation grounds the agent in your knowledge. Retrieve the top passages per step and show citations. Cache frequent lookups to reduce cost and latency.

  • Chunk size tuned for your doc types
  • Hybrid search with dense and keyword
  • Citations and confidence in every answer

Guardrails and Safety

Blog Image
  • Input filters: PII detection, allowlists for domains and tools.
  • Output checks: toxicity, hallucination risk, and red team prompts.
  • Tool policies: rate limits, dry run mode, and human approval for high risk actions.
  • Observability: logs, traces, metrics, and cost dashboards.

Evaluate Agents Like a Product

Blog Image

Use a benchmark of tasks and hidden test cases. Track success rate, steps to completion, cost, latency, and user ratings.

# Tiny evaluator sketch
tests = [
  {"goal": "Summarize refund policy", "oracle": "mentions window and method"},
  {"goal": "Draft weekly sales email", "oracle": "has totals and countries"}
]

def evaluate(agent, tests):
  scores = []
  for t in tests:
    out = agent.run(t["goal"])
    ok = all(kw in out.lower() for kw in t["oracle"].split())
    scores.append(int(ok))
  return sum(scores) / len(scores)

Start simple, then add human review and rubrics per use case

Real World Patterns

Blog Image
  • Support copilot: retrieve policy, summarize conversation, and propose replies with citations.
  • Data analyst agent: query warehouse, explain metrics, and generate charts with approval.
  • QA workflow agent: run tests, open issues with evidence, and post results to a channel.

Quick Start Checklist for CDPL Learners

Blog Image
  1. Pick one narrow use case with clear success criteria.
  2. Define 3 to 5 safe tools with strict schemas.
  3. Add short term scratchpad and a small vector memory.
  4. Start with ReAct planning and visible step by step logs.
  5. Ship behind a flag, collect feedback, and iterate weekly.

Conclusion

AI agents are most effective when tools are well designed, memory is relevant and concise, and planning is transparent. Start with a small workflow, add guardrails and evaluation, and iterate in public with your team. With this approach, CDPL learners and partner teams can ship agents that are useful, reliable, and safe.

Tags

#ai agents#agent tools#agent memory#agent planning#react prompting#rag#function calling#workflow automation#cdpl cinute digital
Shoeb Shaikh
Shoeb Shaikh

Shoeb Shaikh is a seasoned Software Testing and Data Science Expert and a Mentor with over 14 years of experience in the field. Specialist in designing and managing processes, and leading high-performing teams to deliver impactful results.

November 6, 2025•5 min read

Share this article

TwitterLinkedInFacebook

Related Posts

1

Learn Prompt Engineering from Scratch (No Code Needed)

Artificial Intelligence
2

Agentic AI & Autonomous Workflows

Artificial Intelligence
3

Overfitting vs Underfitting with Pictures

Artificial Intelligence
4

What Is Artificial Intelligence? Types, Examples, and Use Cases

Artificial Intelligence

Categories

Web Development7Data Science16Python Programming2Artificial Intelligence and Machine Learning (AI/ML)2Digital Marketing7Business Intelligence (BI)8Software Testing13Artificial Intelligence5
View All Categories

Newsletter

Get the latest articles and insights delivered directly to your inbox.

No spam. Unsubscribe anytime.

Popular Tags

#Python#Backend Development#Web Development#Django#Flask#Data Engineering#Apache Spark#IT Careers India#Fresher Jobs#PySpark