copyWith method
Returns a copy with model replaced (used by prepareNextTurn).
Implementation
AgentLoopConfig copyWith({Model? model}) {
return AgentLoopConfig(
model: model ?? this.model,
toolExecution: toolExecution,
beforeToolCall: beforeToolCall,
afterToolCall: afterToolCall,
transformContext: transformContext,
prepareNextTurn: prepareNextTurn,
overWindowRelief: overWindowRelief,
getSteeringMessages: getSteeringMessages,
getFollowUpMessages: getFollowUpMessages,
steeringNotifications: steeringNotifications,
hasPendingSteering: hasPendingSteering,
maxEmptyRetries: maxEmptyRetries,
maxSteeringTurns: maxSteeringTurns,
contextWindowCap: contextWindowCap,
wireDump: wireDump,
toolMisuseBreaker: toolMisuseBreaker,
stuckTool: stuckTool,
);
}