<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[工具调用 schema 写太宽，模型就开始乱填]]></title><description><![CDATA[<p dir="auto">我们有个创建工单工具，参数 schema 写得比较宽，结果模型经常把用户描述塞到不该塞的字段里。</p>
]]></description><link>https://localaihub.com/topic/105/工具调用-schema-写太宽-模型就开始乱填</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 19:44:48 GMT</lastBuildDate><atom:link href="https://localaihub.com/topic/105.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 May 2026 19:50:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 工具调用 schema 写太宽，模型就开始乱填 on Thu, 07 May 2026 17:19:00 GMT]]></title><description><![CDATA[<p dir="auto">先从窄 schema 开始，后面真不够再放宽。别反过来。</p>
]]></description><link>https://localaihub.com/post/860</link><guid isPermaLink="true">https://localaihub.com/post/860</guid><dc:creator><![CDATA[阿航]]></dc:creator><pubDate>Thu, 07 May 2026 17:19:00 GMT</pubDate></item><item><title><![CDATA[Reply to 工具调用 schema 写太宽，模型就开始乱填 on Thu, 07 May 2026 15:31:00 GMT]]></title><description><![CDATA[<p dir="auto">我先把 priority 和 category 改 enum，再加后端校验。</p>
]]></description><link>https://localaihub.com/post/859</link><guid isPermaLink="true">https://localaihub.com/post/859</guid><dc:creator><![CDATA[小陈在改bug]]></dc:creator><pubDate>Thu, 07 May 2026 15:31:00 GMT</pubDate></item><item><title><![CDATA[Reply to 工具调用 schema 写太宽，模型就开始乱填 on Thu, 07 May 2026 14:18:00 GMT]]></title><description><![CDATA[<p dir="auto">错误提示也要写好。后端拒绝后，把可修正原因给模型，不要只报 500。</p>
]]></description><link>https://localaihub.com/post/858</link><guid isPermaLink="true">https://localaihub.com/post/858</guid><dc:creator><![CDATA[小蓝]]></dc:creator><pubDate>Thu, 07 May 2026 14:18:00 GMT</pubDate></item><item><title><![CDATA[Reply to 工具调用 schema 写太宽，模型就开始乱填 on Thu, 07 May 2026 13:53:00 GMT]]></title><description><![CDATA[<p dir="auto">还有 dry-run。先返回将要执行的动作，不直接落库。</p>
]]></description><link>https://localaihub.com/post/857</link><guid isPermaLink="true">https://localaihub.com/post/857</guid><dc:creator><![CDATA[nora]]></dc:creator><pubDate>Thu, 07 May 2026 13:53:00 GMT</pubDate></item><item><title><![CDATA[Reply to 工具调用 schema 写太宽，模型就开始乱填 on Thu, 07 May 2026 13:09:00 GMT]]></title><description><![CDATA[<p dir="auto">至少加确认页。让用户看到模型要创建什么，再点确认。</p>
]]></description><link>https://localaihub.com/post/856</link><guid isPermaLink="true">https://localaihub.com/post/856</guid><dc:creator><![CDATA[陈一]]></dc:creator><pubDate>Thu, 07 May 2026 13:09:00 GMT</pubDate></item><item><title><![CDATA[Reply to 工具调用 schema 写太宽，模型就开始乱填 on Thu, 07 May 2026 12:41:00 GMT]]></title><description><![CDATA[<p dir="auto">我们现在是模型填完就直接建单。</p>
]]></description><link>https://localaihub.com/post/855</link><guid isPermaLink="true">https://localaihub.com/post/855</guid><dc:creator><![CDATA[小陈在改bug]]></dc:creator><pubDate>Thu, 07 May 2026 12:41:00 GMT</pubDate></item><item><title><![CDATA[Reply to 工具调用 schema 写太宽，模型就开始乱填 on Thu, 07 May 2026 09:58:00 GMT]]></title><description><![CDATA[<p dir="auto">尤其是写操作。创建、删除、发消息、扣款，这些不能让模型一次直接执行。</p>
]]></description><link>https://localaihub.com/post/854</link><guid isPermaLink="true">https://localaihub.com/post/854</guid><dc:creator><![CDATA[小吴]]></dc:creator><pubDate>Thu, 07 May 2026 09:58:00 GMT</pubDate></item><item><title><![CDATA[Reply to 工具调用 schema 写太宽，模型就开始乱填 on Thu, 07 May 2026 09:35:00 GMT]]></title><description><![CDATA[<p dir="auto">必须要。模型输出永远不能当可信输入。后端校验、权限校验、幂等都要有。</p>
]]></description><link>https://localaihub.com/post/853</link><guid isPermaLink="true">https://localaihub.com/post/853</guid><dc:creator><![CDATA[林小北]]></dc:creator><pubDate>Thu, 07 May 2026 09:35:00 GMT</pubDate></item><item><title><![CDATA[Reply to 工具调用 schema 写太宽，模型就开始乱填 on Thu, 07 May 2026 06:47:00 GMT]]></title><description><![CDATA[<p dir="auto">schema 约束够了，还需要后端校验吗？</p>
]]></description><link>https://localaihub.com/post/852</link><guid isPermaLink="true">https://localaihub.com/post/852</guid><dc:creator><![CDATA[普通网友A]]></dc:creator><pubDate>Thu, 07 May 2026 06:47:00 GMT</pubDate></item><item><title><![CDATA[Reply to 工具调用 schema 写太宽，模型就开始乱填 on Thu, 07 May 2026 04:41:00 GMT]]></title><description><![CDATA[<p dir="auto">我们之前 location 也写 string，模型会填“客户那边”。后来拆成 city、site_id、free_note，好很多。</p>
]]></description><link>https://localaihub.com/post/851</link><guid isPermaLink="true">https://localaihub.com/post/851</guid><dc:creator><![CDATA[半糖]]></dc:creator><pubDate>Thu, 07 May 2026 04:41:00 GMT</pubDate></item><item><title><![CDATA[Reply to 工具调用 schema 写太宽，模型就开始乱填 on Thu, 07 May 2026 04:13:00 GMT]]></title><description><![CDATA[<p dir="auto">工具参数不是给人看的表单，是给模型走窄路的轨道。</p>
]]></description><link>https://localaihub.com/post/850</link><guid isPermaLink="true">https://localaihub.com/post/850</guid><dc:creator><![CDATA[Grace]]></dc:creator><pubDate>Thu, 07 May 2026 04:13:00 GMT</pubDate></item><item><title><![CDATA[Reply to 工具调用 schema 写太宽，模型就开始乱填 on Thu, 07 May 2026 02:06:00 GMT]]></title><description><![CDATA[<p dir="auto">那它当然会填“比较紧急但也不是特别急”。priority 应该 enum。</p>
]]></description><link>https://localaihub.com/post/849</link><guid isPermaLink="true">https://localaihub.com/post/849</guid><dc:creator><![CDATA[melo]]></dc:creator><pubDate>Thu, 07 May 2026 02:06:00 GMT</pubDate></item><item><title><![CDATA[Reply to 工具调用 schema 写太宽，模型就开始乱填 on Wed, 06 May 2026 23:02:00 GMT]]></title><description><![CDATA[<p dir="auto">比如 priority，我写的是 string。</p>
]]></description><link>https://localaihub.com/post/848</link><guid isPermaLink="true">https://localaihub.com/post/848</guid><dc:creator><![CDATA[小陈在改bug]]></dc:creator><pubDate>Wed, 06 May 2026 23:02:00 GMT</pubDate></item><item><title><![CDATA[Reply to 工具调用 schema 写太宽，模型就开始乱填 on Wed, 06 May 2026 21:35:00 GMT]]></title><description><![CDATA[<p dir="auto">schema 太宽就是在邀请模型发挥。能枚举就枚举，能限制长度就限制长度。</p>
]]></description><link>https://localaihub.com/post/847</link><guid isPermaLink="true">https://localaihub.com/post/847</guid><dc:creator><![CDATA[阿白]]></dc:creator><pubDate>Wed, 06 May 2026 21:35:00 GMT</pubDate></item></channel></rss>