File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,16 @@ async def initialize_agent(
99
99
self .config .security .security_analyzer = (
100
100
settings .security_analyzer or self .config .security .security_analyzer
101
101
)
102
+ self .config .sandbox .base_container_image = (
103
+ settings .sandbox_base_container_image
104
+ or self .config .sandbox .base_container_image
105
+ )
106
+ self .config .sandbox .runtime_container_image = (
107
+ settings .sandbox_runtime_container_image
108
+ if settings .sandbox_base_container_image
109
+ or settings .sandbox_runtime_container_image
110
+ else self .config .sandbox .runtime_container_image
111
+ )
102
112
max_iterations = settings .max_iterations or self .config .max_iterations
103
113
104
114
# This is a shallow copy of the default LLM config, so changes here will
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ class Settings(BaseModel):
33
33
enable_default_condenser : bool = False
34
34
enable_sound_notifications : bool = False
35
35
user_consents_to_analytics : bool | None = None
36
+ sandbox_base_container_image : str | None = None
37
+ sandbox_runtime_container_image : str | None = None
36
38
37
39
model_config = {
38
40
'validate_assignment' : True ,
You can’t perform that action at this time.
0 commit comments