diff --git a/src/agents/bee/agent.ts b/src/agents/bee/agent.ts index 62c40901..5f7d673d 100644 --- a/src/agents/bee/agent.ts +++ b/src/agents/bee/agent.ts @@ -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;