mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-26 17:06:23 +02:00
support ask-human in sync mode
This commit is contained in:
parent
38a8700fa9
commit
9e89a81c8d
2 changed files with 28 additions and 2 deletions
|
|
@ -48,6 +48,8 @@ function mapAgentTool(t: z.infer<typeof AgentTool>): Tool {
|
|||
switch (t.name) {
|
||||
case "bash":
|
||||
return BashTool;
|
||||
case "ask-human":
|
||||
return AskHumanTool;
|
||||
default:
|
||||
throw new Error(`Unknown builtin tool: ${t.name}`);
|
||||
}
|
||||
|
|
@ -154,7 +156,7 @@ export class AgentNode implements Step {
|
|||
|
||||
const { fullStream } = streamText({
|
||||
model: openai("gpt-4.1"),
|
||||
// model: google("gemini-2.5-pro"),
|
||||
// model: google("gemini-2.5-flash"),
|
||||
messages: convertFromMessages(input),
|
||||
system: this.agent.instructions,
|
||||
stopWhen: stepCountIs(1),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue