MCPcopy
hub / github.com/joshpxyne/gpt-migrate / prompt_constructor

Function prompt_constructor

gpt_migrate/utils.py:28–33  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

26 return language
27
28def prompt_constructor(*args):
29 prompt = ""
30 for arg in args:
31 with open(os.path.abspath(f'prompts/{arg}'), 'r') as file:
32 prompt += file.read().strip()
33 return prompt
34
35def llm_run(prompt,waiting_message,success_message,globals):
36

Callers 9

create_testsFunction · 0.90
debug_errorFunction · 0.90
debug_testfileFunction · 0.90
create_environmentFunction · 0.90
get_function_signaturesFunction · 0.90
get_dependenciesFunction · 0.90
write_migrationFunction · 0.90
add_env_filesFunction · 0.90

Calls

no outgoing calls

Tested by 1

create_testsFunction · 0.72