mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-27 01:16:23 +02:00
Merge branch 'cli' of github.com:rowboatlabs/rowboat into cli
This commit is contained in:
commit
cfaf160e89
6 changed files with 158 additions and 47 deletions
|
|
@ -63,6 +63,10 @@ export class StreamRenderer {
|
|||
this.onError(event.error);
|
||||
break;
|
||||
}
|
||||
case "pause-for-human-input": {
|
||||
this.onPauseForHumanInput(event.toolCallId, event.question);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -225,6 +229,13 @@ export class StreamRenderer {
|
|||
this.write(this.dim("└─────────────\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