Tool Use Function Calling
📘 LLM দিয়ে API/ফাংশন কল করানো।
🌐 Let an LLM call APIs and functions.
🦾
1
ধারণা · Concept
কী এবং কেন📘 বাংলা ব্যাখ্যা:
LLM দিয়ে API/ফাংশন কল করানো।
LLM দিয়ে API/ফাংশন কল করানো।
🌐 English:
Let an LLM call APIs and functions.
Let an LLM call APIs and functions.
🗂 কোথায় পড়ে
৪. ডিপ লার্নিং ও এআই → এজেন্টিক এআই → Tool Use Function Calling
🎯 এই শাখার লক্ষ্য
Design tool-using, memory-backed, multi-agent systems safely
🧰 টুলস
LangGraph, CrewAI, MCP
🪜
ধাপে ধাপে শিখুন · Step-by-step
কেন শিখবেন → কীভাবে শিখবেন → উদাহরণ → সাধারণ ভুল💡 কেন গুরুত্বপূর্ণ?
LLM-কে বাস্তব জগতের সাথে যুক্ত করার মূল কৌশল।
- ধাপ 1প্রতিটি টুলের নাম, বর্ণনা ও ইনপুট স্কিমা (JSON Schema) লিখুন
- ধাপ 2মডেল প্রয়োজনে tool_use ব্লকে টুল ও আর্গুমেন্ট ফেরত দেয়
- ধাপ 3আপনার কোড টুল চালিয়ে ফল tool_result হিসেবে ফেরত পাঠায়
- ধাপ 4মডেল ফল দেখে উত্তর দেয় বা আরেকটি টুল কল করে
🧪 বাস্তব উদাহরণ
get_weather(district) টুল—"কাল সিলেটে বৃষ্টি হবে?" প্রশ্নে মডেল নিজেই টুল ডাকে।
⚠️ সাধারণ ভুল
অস্পষ্ট টুল বর্ণনা—মডেল ভুল টুল বা ভুল আর্গুমেন্ট দেয়।
🔑 মূল শব্দ (Key terms)
function callingtool useJSON schematool result
3
সাব-টপিক ও বিস্তারিত · Sub-topics
টপিক → সাব-টপিক → সাব-সাব টপিক2.1 টুল স্কিমা (JSON)
2.2 মডেল টুল বাছাই ও আর্গুমেন্ট তৈরি
2.3 ফলাফল ফেরত দিয়ে লুপ চালানো
🎬
ভিডিও · Videos (বাংলা ও English)
ক্লিক করলে সাইটের ভেতরেই ফ্লোটিং প্লেয়ারে চলবে · ভিডিও MySQL-এ সংরক্ষিত📺 আরও খুঁজুন
💻
হাতে-কলমে · Try it (Agentic AI)
এডিট করে Run চাপুন · Ctrl+Enter# ReAct-style agent with real tools (rule-based planner stands in for an LLM)
import statistics
data={"Dhaka":[31,33,35,36],"Sylhet":[28,29,30,31]}
tools={"mean":lambda c:statistics.mean(data[c]),"max":lambda c:max(data[c])}
plan=[("mean","Dhaka"),("mean","Sylhet"),("max","Dhaka")]; memory={}
for tool,arg in plan:
obs=tools[tool](arg); memory[f"{tool}({arg})"]=obs
print(f"Thought: need {tool} of {arg} -> Action: {tool}('{arg}') -> Observation: {obs}")
hot=max(data,key=lambda c:memory[f"mean({c})"]); print("Final answer: hotter city =",hot,memory)❓
সেল্ফ-চেক · Self check
🔗
সংযুক্ত কনসেপ্ট · Connected concepts
এই শাখার অন্যান্য অংশ
1. What is an AI Agent2. Tool Use Function Calling3. ReAct Reasoning and Acting4. Agent Memory5. Planning & Task Decomposition6. Multi-Agent Systems7. LangGraph8. Model Context Protocol MCP9. Agent Evaluation & Guardrails10. Building a Data Analyst Agent