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

Method command_descriptions

agents.py:537–547  ·  view source on GitHub ↗
(self, phase)

Source from the content-addressed store, hash-verified

535 return ()
536
537 def command_descriptions(self, phase):
538 if phase not in self.phases:
539 raise Exception(f"Invalid phase: {phase}")
540 if phase == "data preparation":
541 return (
542 "You can produce dialogue using the following command: ```DIALOGUE\ndialogue here\n```\n where 'dialogue here' is the actual dialogue you will send and DIALOGUE is just the word DIALOGUE.\n"
543 "When you and the ML engineer have finalized your dataset preparation code and are ready to submit the final code, please use the following command: ```SUBMIT_CODE\ncode here\n```\n where 'code here' is the finalized code you will send and SUBMIT_CODE is just the word SUBMIT_CODE. Do not use any classes or functions. The submitted code must have a HuggingFace dataset import and must use an external HuggingFace dataset. If your code returns any errors, they will be provided to you, and you are also able to see print statements. Make sure function variables are created inside the function or passed as a function parameter. DO NOT CREATE A MAIN FUNCTION.\n"
544 "Make sure to submit code in a reasonable amount of time. Do not make the code too complex, try to make it simple. Do not take too long to submit code. Submit the code early. You should submit the code ASAP.\n"
545 "You can only use a single command per inference turn. Do not use more than one command per inference. If you use multiple commands, then only one of them will be executed, not both.\n"
546 "When performing a command, make sure to include the three ticks (```) at the top and bottom ```COMMAND\ntext\n``` where COMMAND is the specific command you want to run (e.g. SUBMIT_CODE, DIALOGUE).\n")
547 return ""
548
549 def phase_prompt(self, phase):
550 if phase not in self.phases:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected