惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
aimingoo的专栏
aimingoo的专栏
IT之家
IT之家
G
Google Developers Blog
爱范儿
爱范儿
博客园 - 司徒正美
Recent Announcements
Recent Announcements
The Register - Security
The Register - Security
J
Java Code Geeks
The Cloudflare Blog
M
MIT News - Artificial intelligence
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Security Blog
Microsoft Security Blog
博客园 - Franky
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
Vercel News
Vercel News
宝玉的分享
宝玉的分享
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
B
Blog
小众软件
小众软件
Microsoft Azure Blog
Microsoft Azure Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
T
Troy Hunt's Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
H
Hacker News: Front Page
H
Help Net Security
S
Security @ Cisco Blogs
V
V2EX
Security Archives - TechRepublic
Security Archives - TechRepublic
Stack Overflow Blog
Stack Overflow Blog
O
OpenAI News
L
LINUX DO - 最新话题
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
S
Secure Thoughts
Help Net Security
Help Net Security
F
Full Disclosure
博客园 - 叶小钗
The Hacker News
The Hacker News
Spread Privacy
Spread Privacy
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Jina AI
Jina AI
K
Kaspersky official blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
V
Vulnerabilities – Threatpost
P
Privacy International News Feed
Scott Helme
Scott Helme

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
ตัวแทนโกหกผม จนกระทั่งผมเปิด Apidog AI Agent Debugger
Thanawat Won · 2026-05-20 · via DEV Community

บ่ายวันอังคาร ฉันวนดีบักไปแล้ว 12 รอบ และเอเจนต์ยังตอบอย่างมั่นใจว่า endpoint /users ตอบสนองใน 47 วินาที ทั้งที่ค่าจริงคือ 47 มิลลิวินาที

ลองใช้ Apidog วันนี้

ฉันเสียเวลาไล่บั๊กนี้อยู่สองวัน เพิ่ม logging ใน MCP server ก็แล้ว แก้ system prompt ก็แล้ว อ่าน output ของโมเดลทีละรอบก็แล้ว แต่คำตอบยังดู “สมเหตุสมผล” มากขึ้นโดยที่ยังผิดเหมือนเดิม

สิ่งที่ทำให้เจอสาเหตุจริงคือการเปิดดู trace ว่าโมเดลส่งอะไรไปให้ tool และ tool ส่งอะไรกลับมา นั่นคือจุดที่ AI Agent Debugger ของ Apidog ช่วยได้: มันทำให้เห็นทั้ง prompt, tool call, tool result, token, latency และ output ของโมเดลในมุมมองเดียว

ข้อผิดพลาดที่ฉันตามหา

เซ็ตอัปของฉันมีส่วนประกอบไม่มาก:

  • เอเจนต์ที่ใช้ GPT-5.5
  • MCP server ที่เขียนเอง
  • tool ชื่อ get_response_time(endpoint)
  • system prompt สั้น ๆ
  • user prompt: ปลายทาง /users ทำงานเร็วแค่ไหน?

tool ทำหน้าที่ query metrics pipeline แล้วส่งค่ากลับมาให้โมเดล

ผลลัพธ์ที่ได้กลับไม่เสถียร:

  • “ปลายทางตอบสนองภายใน 47 วินาที”
  • “ประมาณ 0.05 วินาที”
  • “ประสิทธิภาพเป็นที่ยอมรับได้”

ปัญหาของการดีบักเอเจนต์คือ error อาจอยู่ได้หลายจุด:

  1. system prompt
  2. user prompt
  3. การเลือกโมเดล
  4. schema หรือ description ของ tool
  5. argument ที่โมเดลส่งเข้า tool
  6. payload ที่ tool ส่งกลับ
  7. การตีความผลลัพธ์ของโมเดล

ถ้าดูแค่ console log คุณมักเห็นแค่บางส่วนของ flow เท่านั้น

แผง Traces แสดงอะไรบ้าง

AI Agent Debugger ของ Apidog แบ่งหน้าจอเป็นสามส่วน:

  • Sessions: รายการการรันแต่ละครั้ง
  • Turns: ลำดับบทสนทนาและการเรียก tool ใน session นั้น
  • Traces: รายละเอียด execution ทั้งหมดในแต่ละ turn

ในแผง Traces คุณจะเห็นข้อมูลตามลำดับจริง เช่น:

  • system prompt ที่โมเดลได้รับ
  • user prompt ที่โมเดลได้รับ
  • tool name และ parameters ที่โมเดลส่งออกมา
  • payload ที่ tool ส่งกลับมา
  • response ของโมเดล
  • latency, token และ cost ของ turn นั้น

ฉันเปิด session ที่ตอบผิด แล้วเห็นว่า tool call ถูกต้อง:

get_response_time(endpoint="/users")

Enter fullscreen mode Exit fullscreen mode

โมเดลเลือก tool ถูก และส่ง argument ถูก

จากนั้นฉันขยาย tool result:

{
  "value": 47,
  "p95": 89,
  "samples": 1240
}

Enter fullscreen mode Exit fullscreen mode

นี่คือบั๊กจริง

metrics pipeline ส่งค่ากลับมาเป็น มิลลิวินาที แต่ payload ไม่ระบุหน่วย โมเดลจึงตีความ 47 เป็นวินาที แล้วตอบอย่างมั่นใจว่า “47 วินาที”

สรุปคือ:

  • tool ทำงานถูก
  • argument ถูก
  • data ถูก
  • แต่ payload ไม่ self-descriptive
  • system prompt ไม่บอกให้ระวังเรื่อง unit

การแก้ไขใช้เวลาหกบรรทัด

ฉันแก้ schema ของ response ให้มีหน่วยชัดเจน:

{
  "value": { "amount": 47, "unit": "ms" },
  "p95": { "amount": 89, "unit": "ms" },
  "samples": 1240
}

Enter fullscreen mode Exit fullscreen mode

แล้วเพิ่มกฎใน system prompt:

ผลลัพธ์ของเครื่องมือจะส่งคืนหน่วยอย่างชัดเจน โปรดอ่านอย่างระมัดระวัง

Enter fullscreen mode Exit fullscreen mode

จากนั้นรัน prompt เดิมอีกสามครั้ง:

ปลายทาง /users ทำงานเร็วแค่ไหน?

Enter fullscreen mode Exit fullscreen mode

ทั้งสาม session ตอบถูกว่า endpoint ตอบสนองประมาณ 47 มิลลิวินาที และอธิบาย p95 เป็นมิลลิวินาทีเช่นกัน

ฉันยังลองรัน prompt เดียวกันกับ Claude Opus 4.7 เพื่อเปรียบเทียบ session แบบเคียงข้างกัน ผลลัพธ์ถูกเหมือนกัน แต่มี cost สูงกว่าและตอบยาวกว่าเล็กน้อย จุดนี้ทำให้ตัดสินใจเลือกโมเดลสำหรับ production ได้ง่ายขึ้น

สิ่งที่มีประโยชน์ไม่ใช่แค่การหา root cause แต่คือการเปรียบเทียบโมเดลบน config เดียวกัน โดยดู metrics จากแผง session:

  • จำนวน turn
  • จำนวน step
  • latency
  • token usage
  • cost

สิ่งที่ฉันเข้าใจผิด

ตอนแรกฉันคิดว่า AI Agent Debugger เป็น logging tool แต่จริง ๆ แล้วมันต่างกัน

logging บอกว่า “เกิดอะไรขึ้น” ในบางจุดของระบบ

debugger แสดงว่า “โมเดลกับ tool แลกเปลี่ยนอะไรกันจริง ๆ”

สำหรับเอเจนต์ สิ่งนี้สำคัญมาก เพราะ error มักเกิดระหว่าง:

  • prompt
  • model reasoning
  • tool selection
  • tool input
  • tool output
  • final answer

ถ้าคุณอ่านแค่คำตอบสุดท้ายของโมเดลแล้วเดาสาเหตุ คุณไม่ได้ดีบักเอเจนต์โดยตรง แต่กำลังดีบักสมมติฐานของตัวเองเกี่ยวกับเอเจนต์

อีกสิ่งที่ debugger ช่วยเผยให้เห็นคือความไม่เสถียรของพฤติกรรมเอเจนต์ ฉันรัน prompt เดียวกันห้าครั้งหลังแก้ unit แล้วพบว่า:

  • สามครั้งเรียก get_response_time ครั้งเดียว
  • สองครั้งเรียก tool สองครั้ง
  • ครั้งหนึ่งส่ง endpoint path ที่ case ต่างกัน

tool ของฉัน case-sensitive และฉันไม่เคยเห็นบั๊กนี้มาก่อน เพราะ test case เดิมใช้ lowercase ทั้งหมด

วิธีตรวจแบบง่ายคือ:

  1. รัน prompt เดิม 5 ครั้ง
  2. เปิดดู session ทั้งหมด
  3. เทียบ tool call, argument, output และ final answer
  4. จุดที่แตกต่างกันระหว่าง run คือจุดที่เอเจนต์เปราะบาง

ลองด้วยตัวเอง: ตั้งค่า AI Agent Debugger

ด้านล่างคือ flow การตั้งค่าจากโปรเจกต์ใหม่ไปจนถึง session ดีบักที่รันได้

ขั้นตอนที่ 1: สร้าง debug session ใหม่

เปิด Apidog แล้วคลิก AI Agent Debugger ที่แถบด้านบน จากนั้นตั้งค่าโมเดล:

  • เลือก model provider เช่น OpenAI หรือ Anthropic
  • เลือก model เช่น gpt-5.5
  • Base URL จะถูกเติมให้อัตโนมัติหลังเลือก provider
  • คลิก Run เพื่อเริ่ม session

แท็บ AI Agent Debugger ที่มีตัวเลือกผู้ให้บริการโมเดลและโมเดลอยู่ด้านบน Base URL ถูกเติมโดยอัตโนมัติ และปุ่ม Run อยู่ที่ด้านบนขวา

ขั้นตอนที่ 2: กำหนดค่า prompt

ไปที่แท็บ Prompts แล้วกรอกสองส่วนหลัก:

  • System Prompt: ระบุ role, goal, constraint และกฎการใช้ tool
  • User Prompt: prompt ที่ต้องการทดสอบ เช่น Apidog คืออะไร?

ตัวอย่าง system prompt สำหรับกรณี tool ที่มีหน่วย:

คุณเป็นเอเจนต์สำหรับวิเคราะห์ metric ของ API
เมื่อเรียก tool แล้ว ให้ตรวจสอบ unit ในผลลัพธ์เสมอ
ห้ามเดาหน่วยเองหาก tool ไม่ได้ส่งมา

Enter fullscreen mode Exit fullscreen mode

ตัวอย่าง user prompt:

ปลายทาง /users ทำงานเร็วแค่ไหน?

Enter fullscreen mode Exit fullscreen mode

เมื่อตั้งค่าเสร็จ คลิก Run

ถ้าต้องการล้าง input หลังรันแต่ละครั้ง ให้เปิด Clear after Send

ขั้นตอนที่ 3: กำหนดค่า tools

แท็บ Tools แสดงรายการความสามารถที่เอเจนต์เรียกใช้ได้ระหว่าง runtime

Built-in tools

เครื่องมือ ใช้ทำอะไร
bash รันคำสั่งใน shell session ที่คงอยู่
web_fetch ดึงเนื้อหาเว็บและแปลงเป็น Markdown, text หรือ HTML
read อ่านไฟล์ text, image หรือ PDF
edit แก้ไฟล์ด้วย string replacement
write สร้างหรือเขียนทับไฟล์
grep ค้นหาเนื้อหาไฟล์ด้วย regular expression
glob ค้นหาไฟล์ด้วย glob pattern
kill_shell reset shell session ปัจจุบัน

MCP tools

สำหรับ tool ที่มาจาก MCP server สามารถเชื่อมต่อได้สามแบบ:

  • STDIO: เปิด MCP server เป็น local process
  • HTTP: เชื่อมต่อ MCP server ที่รองรับ Streamable HTTP
  • SSE: เชื่อมต่อ MCP server ผ่าน Server-Sent Events

ถ้า MCP server ต้อง authentication ให้ตั้ง request headers หรือ OAuth 2.0 ตามที่ระบบรองรับ เมื่อเชื่อมต่อสำเร็จ ให้เลือก tools ที่ต้องการ expose ให้เอเจนต์ใช้งาน

ขั้นตอนที่ 4: กำหนดค่า Skills, Authentication และ Settings

มีแท็บย่อยที่ควรตรวจสอบก่อนรันจริง:

  • Skills: workflow ที่นำกลับมาใช้ซ้ำได้ เหมาะกับขั้นตอนประจำของโปรเจกต์ หรือกฎที่ไม่อยากใส่ซ้ำใน system prompt
  • Authentication: credentials สำหรับ model provider หรือ MCP service
  • Settings: runtime parameters เช่น Temperature, Max Tokens และ Top P

พารามิเตอร์ที่รองรับขึ้นอยู่กับ provider และ model ที่เลือก ควรตรวจสอบก่อนรัน benchmark หรือเปรียบเทียบโมเดล

ขั้นตอนที่ 5: อ่านข้อมูลจากสามแผงหลัก

หลังคลิก Run session ใหม่จะปรากฏในแผงซ้าย พร้อม summary เช่น:

Session 3
1 turn · 1 step · 10s · 3.1k tokens · $0.02
gpt-5.5

Enter fullscreen mode Exit fullscreen mode

วิธีอ่านแต่ละแผง:

  • Sessions ซ้าย: ประวัติการรันทั้งหมด พร้อม metrics สรุป
  • Turns กลาง: ลำดับ user/model/tool ใน session นั้น
  • Traces ขวา: execution chain แบบละเอียด รวมถึง prompt, model call, tool call, tool input, tool output, latency, error และ final answer

เมื่อ tool call ล้มเหลว หรือโมเดลตอบผิด ให้เริ่มจาก Traces:

  1. ตรวจว่าโมเดลเลือก tool ถูกหรือไม่
  2. ตรวจ argument ที่ส่งเข้า tool
  3. ตรวจ payload ที่ tool ส่งกลับ
  4. ตรวจว่า payload มี field, type และ unit ชัดเจนหรือไม่
  5. เทียบ final answer กับ tool result

ขั้นตอนที่ 6: เปรียบเทียบโมเดล

ใช้ prompt และ tool config เดิม แล้วเปลี่ยนเฉพาะ model

แต่ละ run จะกลายเป็น session ใหม่ในแผงซ้าย ทำให้เทียบได้โดยตรงว่าโมเดลไหนเหมาะกับงานมากกว่า

metrics ที่ควรดู:

  • จำนวน step ที่ใช้เพื่อทำงานเดียวกัน
  • ความแม่นยำในการเลือก tool
  • latency
  • token usage
  • cost
  • ความสม่ำเสมอของ output เมื่อรัน prompt เดิมหลายครั้ง

แนวทางที่ฉันใช้:

รัน prompt เดิม 5 ครั้งต่อโมเดล
เทียบ tool call และ final answer
เลือกโมเดลที่ตอบถูก ใช้ step น้อย latency ต่ำ และ cost คาดเดาได้

Enter fullscreen mode Exit fullscreen mode

Checklist สำหรับดีบักเอเจนต์ที่ตอบผิด

เมื่อเอเจนต์ให้คำตอบผิด แต่ดูเหมือนมั่นใจ ให้ไล่ตรวจตามนี้:

  • [ ] system prompt มี constraint ที่จำเป็นครบหรือไม่
  • [ ] tool description ชัดเจนพอให้โมเดลเลือกถูกหรือไม่
  • [ ] tool input schema บังคับ field สำคัญหรือไม่
  • [ ] โมเดลส่ง argument ถูกต้องหรือไม่
  • [ ] tool output มีหน่วยและ type ชัดเจนหรือไม่
  • [ ] payload มี field ที่คลุมเครือ เช่น value, data, result โดยไม่มี context หรือไม่
  • [ ] final answer ตรงกับ tool result หรือโมเดลตีความผิด
  • [ ] prompt เดิมรันหลายครั้งแล้วได้ tool call เหมือนกันหรือไม่
  • [ ] cost และ token usage คงที่พอสำหรับ production หรือไม่

ประเด็นสำคัญ

บั๊กนี้ไม่ได้เกิดจากโมเดลไม่เก่ง หรือ tool คำนวณผิด แต่เกิดจาก contract ระหว่าง tool กับโมเดลไม่ชัดเจนพอ

สิ่งที่ควรทำเมื่อสร้าง tool ให้เอเจนต์:

  • ส่ง output แบบ self-descriptive
  • ใส่ unit ใน payload เสมอเมื่อเป็นตัวเลข
  • หลีกเลี่ยง field name ที่กำกวม
  • เขียน system prompt ให้บอกวิธีอ่าน tool result
  • รัน prompt เดิมหลายครั้งเพื่อหา nondeterministic behavior
  • เปรียบเทียบโมเดลด้วย config เดียวกันก่อนเลือกใช้จริง

ถ้าคุณกำลังสร้างเอเจนต์ที่เรียก tool หรือ MCP server การดูแค่ final answer ไม่พอ คุณต้องเห็น trace ระหว่างโมเดลกับ tool ด้วย

ดาวน์โหลด Apidog แล้วลองเปิด AI Agent Debugger กับเอเจนต์ตัวถัดไปที่ตอบผิดอย่างมั่นใจ อาจใช้เวลาไม่กี่นาทีในการเจอว่าปัญหาอยู่ตรงไหน: ใน prompt, tool call, payload หรือการตีความของโมเดล

อ่านรายละเอียดฟีเจอร์เพิ่มเติม รวมถึงการตั้งค่า MCP transport และ availability ของแผนบริการได้ที่ Apidog AI Agent Debugger: ความพร้อมใช้งาน, ขอบเขตครอบคลุม และการตั้งค่า