File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,6 @@ def {task.name}(self) -> Task:
5656 config=self.tasks_config['{ task .name } '],
5757 )"""
5858
59- if not self .source [:pos ].endswith ('\n ' ):
60- code = '\n \n ' + code
61- if not self .source [pos :].startswith ('\n ' ):
62- code += '\n \n '
63- self .edit_node_range (pos , pos , code )
64-
6559 def get_new_agent_method (self , agent : AgentConfig ) -> str :
6660 """Get the content of a new agent method."""
6761 return f""" @agent
@@ -72,12 +66,6 @@ def {agent.name}(self) -> Agent:
7266 verbose=True,
7367 )"""
7468
75- if not self .source [:pos ].endswith ('\n ' ):
76- code = '\n \n ' + code
77- if not self .source [pos :].startswith ('\n ' ):
78- code += '\n \n '
79- self .edit_node_range (pos , pos , code )
80-
8169 def get_agent_tools (self , agent_name : str ) -> ast .List :
8270 """
8371 Get the list of tools used by an agent as an AST List node.
You can’t perform that action at this time.
0 commit comments