You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass="key">"match"</span>: { <spanclass="key">"userMessage"</span>: <spanclass="str">"plan a trip"</span>, <spanclass="key">"turnIndex"</span>: <spanclass="num">0</span> },
530
+
<spanclass="key">"response"</span>: { <spanclass="key">"content"</span>: <spanclass="str">"I'd love to help plan your trip! Where would you like to go?"</span> }
531
+
},
532
+
{
533
+
<spanclass="key">"match"</span>: { <spanclass="key">"userMessage"</span>: <spanclass="str">"plan a trip"</span>, <spanclass="key">"turnIndex"</span>: <spanclass="num">1</span> },
534
+
<spanclass="key">"response"</span>: {
535
+
<spanclass="key">"content"</span>: <spanclass="str">"Great choice! Let me search for flights."</span>,
<spanclass="key">"response"</span>: { <spanclass="key">"content"</span>: <spanclass="str">"I found several flights to Tokyo. The best option is..."</span> }
542
+
}
543
+
]
544
+
}</code></pre>
545
+
</div>
546
+
547
+
<h3>Tool-call cycle with hasToolResult</h3>
548
+
<p>
549
+
For a simple tool round-trip, <code>hasToolResult</code> is the most concise matcher:
550
+
<code>false</code> on the initial request, <code>true</code> after the tool result comes
0 commit comments