mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-27 01:16:23 +02:00
add back ask-human support
This commit is contained in:
parent
39f0f5af79
commit
36530c2ccd
5 changed files with 131 additions and 24 deletions
|
|
@ -62,6 +62,10 @@ export class StreamRenderer {
|
|||
this.onError(event.error);
|
||||
break;
|
||||
}
|
||||
case "pause-for-human-input": {
|
||||
this.onPauseForHumanInput(event.toolCallId, event.question);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -194,6 +198,13 @@ export class StreamRenderer {
|
|||
this.write("\n");
|
||||
}
|
||||
|
||||
private onPauseForHumanInput(toolCallId: string, question: string) {
|
||||
this.write(this.cyan(`\n→ Pause for human input (${toolCallId})`));
|
||||
this.write("\n");
|
||||
this.write(this.bold("Question: ") + question);
|
||||
this.write("\n");
|
||||
}
|
||||
|
||||
private onUsage(usage: {
|
||||
inputTokens?: number;
|
||||
outputTokens?: number;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue