This commit is contained in:
LinghaoZhuang 2026-01-29 11:17:15 +08:00 committed by GitHub
commit 3497412e15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -276,6 +276,13 @@ export async function dispatchReplyFromConfig(params: {
ctx,
{
...params.replyOptions,
onToolResult: (payload: ReplyPayload) => {
if (shouldRouteToOriginating) {
void sendPayloadAsync(payload, undefined, false);
} else {
dispatcher.sendToolResult(payload);
}
},
onBlockReply: (payload: ReplyPayload, context) => {
const run = async () => {
// Accumulate block text for TTS generation after streaming