MCPcopy Create free account
hub / github.com/SamuelSchmidgall/AgentLaboratory / command_descriptions

Method command_descriptions

mlesolver.py:545–551  ·  view source on GitHub ↗

Provide command descriptions @return: (str) command descriptions

(self)

Source from the content-addressed store, hash-verified

543 )
544
545 def command_descriptions(self):
546 """
547 Provide command descriptions
548 @return: (str) command descriptions
549 """
550 cmd_strings = "\n".join([_cmd.docstring() for _cmd in self.commands])
551 return f"\nYou also have access to tools which can be interacted with using the following structure: ```COMMAND\n<command information here>\n```, where COMMAND is whichever command you want to run (e.g. EDIT, REPLACE...), <command information here> is information used for the command, such as code to run or a search query, and ``` are meant to encapsulate the command. ``` must be included as part of the command both at the beginning and at the end of the code. DO NOT FORGOT TO HAVE ``` AT THE TOP AND BOTTOM OF CODE. and this structure must be followed to execute a command correctly. YOU CAN ONLY EXECUTE A SINGLE COMMAND AT A TIME! Do not try to perform multiple commands EVER only one. {self._common_code_errors()}" + cmd_strings
552
553 def run_code(self):
554 """

Callers 1

system_promptMethod · 0.95

Calls 2

_common_code_errorsMethod · 0.95
docstringMethod · 0.45

Tested by

no test coverage detected