MCPcopy Create free account
hub / github.com/BillHuang2001/evogit / llm_crossover

Function llm_crossover

python-impl/evogit/api.py:486–497  ·  view source on GitHub ↗
(config, llm_backend, seeds, commits)

Source from the content-addressed store, hash-verified

484
485
486def llm_crossover(config, llm_backend, seeds, commits) -> list[str]:
487 prompts = _construct_prompt(config, commits, 2, "crossover")
488
489 responses = llm_backend.query(seeds, prompts)
490 responses = [config.respond_extractor(response) for response in responses]
491 offspring = []
492 for commit, response in zip(commits, responses):
493 code, commit_message = response
494 git.update_file(config, commit, code, f"{config.llm_name}: {commit_message}")
495 offspring.append(git.read_head_commit(config))
496
497 return offspring
498
499
500def load_vectors(config: EvoGitConfig, commits: list[str]) -> np.ndarray:

Callers

nothing calls this directly

Calls 2

_construct_promptFunction · 0.85
queryMethod · 0.80

Tested by

no test coverage detected