You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Tag '{{authorized_imports}}' should be provided in the prompt."
915
908
)
916
-
self.system_prompt=self.system_prompt.replace(
917
-
"{{authorized_imports}}",
918
-
"You can import from any package you want."
919
-
if"*"inself.authorized_imports
920
-
elsestr(self.authorized_imports),
921
-
)
922
909
923
910
if"*"inself.additional_authorized_imports:
924
911
self.logger.log(
925
912
"Caution: you set an authorization for all imports, meaning your agent can decide to import any package it deems necessary. This might raise issues if the package is not installed in your environment.",
926
913
0,
927
914
)
928
915
916
+
super().__init__(
917
+
tools=tools,
918
+
model=model,
919
+
system_prompt=system_prompt,
920
+
grammar=grammar,
921
+
planning_interval=planning_interval,
922
+
**kwargs,
923
+
)
929
924
ifuse_e2b_executorandlen(self.managed_agents) >0:
930
925
raiseException(
931
926
f"You passed both {use_e2b_executor=} and some managed agents. Managed agents is not yet supported with remote code execution."
0 commit comments