docs(ai-chat): headStart handover for custom agents + triggerConfig#3964
docs(ai-chat): headStart handover for custom agents + triggerConfig#3964ericallam wants to merge 1 commit into
Conversation
|
WalkthroughThe documentation for the AI chat module is updated to introduce a handover mechanism between 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Summary
chat.headStartnow works with thechat.customAgentandchat.createSessionbackends (not justchat.agent), and takes atriggerConfigoption. These docs cover both.The Fast starts guide gets a "Handover with custom agents" section showing how each backend consumes the handover (
consumeHandoverreturning{ isFinal, skipped }for custom agents,turn.handoverfor createSession), including threadingoriginalMessagesso a resumed tool round merges into the handed-over assistant. Thechat.headStartAPI section documentstriggerConfig(tags, queue, machine, and the rest) on the auto-triggered run.The reference picks up
ChatTurn.handover,turn.complete()with no source,chat.waitForHandover, and a newHeadStartHandlerOptionstable.Docs for the SDK changes in #3963.