Skip to content

Commit

Permalink
feat(agents)!: set auto retry for Bee as a default behaviour
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Dvorak <[email protected]>
  • Loading branch information
Tomas2D committed Dec 3, 2024
1 parent 6136c77 commit 04b5c45
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/agents/bee/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,18 @@ export class BeeAgent extends BaseAgent<BeeRunInput, BeeRunOutput, BeeRunOptions
options: BeeRunOptions = {},
run: GetRunContext<typeof this>,
): Promise<BeeRunOutput> {
const runner = new this.runner(this.input, options, run);
const runner = new this.runner(
this.input,
{
...options,
execution: options?.execution ?? {
maxRetriesPerStep: 3,
totalMaxRetries: 20,
maxIterations: 10,
},
},
run,
);
await runner.init(input);

let finalMessage: BaseMessage | undefined;
Expand Down

0 comments on commit 04b5c45

Please sign in to comment.