🔧 تیپ #4
ابزارها: دستهای ایجنت برای کار با دنیای بیرون
ابزار در واقع یک تابع ساده است که با نام، توضیح و اسکیمای مشخص به مدل معرفی میشود. مدل خودش آن را اجرا نمیکند؛ فقط درخواستی ساختیافته تولید میکند، کد شما آن را میچرخاند و نتیجه دوباره به گفتوگو برمیگردد. همین حلقه است که یک مدل زبانی را به ایجنت تبدیل میکند 🔧، چون به آن اجازه میدهد بهجای حدس زدن، فایل بخواند، به دیتابیس وصل شود یا API صدا بزند.
Tools: How Agents Reach Outside the Model
A tool is just a function you expose to the model with a name, a description, and a typed input schema. The model never executes it: it emits a structured request, your code runs the function, and the result is fed back into the conversation. That request-execute-return loop is what turns a text generator into an agent 🔧, because it lets the model read files, query a database, or call an API instead of guessing.
@dslanders
Post #5793
909