-
由 Will Chen 提交于
Use the AI SDK's hasToolCall() function to stop the agent loop when the add_integration tool is invoked, allowing the user to set up the integration before the agent continues. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Stop the local agent loop when the add_integration tool is called, pausing the run so the user can finish setup. Adds hasToolCall('add_integration') to stopWhen and keeps the 25-step cap. <sup>Written for commit b5826e0563b4b0925715733a86e02707f9387e45. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Adds an early stop condition to pause the local agent when integration setup is triggered. > > - Imports `hasToolCall` and `addIntegrationTool` > - Updates `stopWhen` to `[stepCountIs(25), hasToolCall(addIntegrationTool.name)]` to halt on `add_integration` tool invocation > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit b5826e0563b4b0925715733a86e02707f9387e45. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by:Claude <noreply@anthropic.com> Co-authored-by:
gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| .. | ||
| handlers | ||
| processors |