Method
__init__
(
self,
repo_path,
commit="str",
language="python",
clone_dir="data/repos",
save_trajectories_path=DEFAULT_TRAJECTORIES_PATH,
llm_configs = DEFAULT_LLM_CONFIGS,
verbose = DEFAULT_VERBOSE_LEVEL,
image_name = DEFAULT_IMAGE_NAME
)
Source from the content-addressed store, hash-verified
| 94 | |
| 95 | class HyperAgent: |
| 96 | def __init__( |
| 97 | self, |
| 98 | repo_path, |
| 99 | commit="str", |
| 100 | language="python", |
| 101 | clone_dir="data/repos", |
| 102 | save_trajectories_path=DEFAULT_TRAJECTORIES_PATH, |
| 103 | llm_configs = DEFAULT_LLM_CONFIGS, |
| 104 | verbose = DEFAULT_VERBOSE_LEVEL, |
| 105 | image_name = DEFAULT_IMAGE_NAME |
| 106 | ): |
| 107 | self.repo_path = repo_path |
| 108 | self.language = language |
| 109 | self.system, self.user_proxy, repo_dir = Setup( |
| 110 | self.repo_path, |
| 111 | commit, |
| 112 | language=language, |
| 113 | clone_dir=clone_dir, |
| 114 | save_trajectories_path=save_trajectories_path, |
| 115 | llm_configs=llm_configs, |
| 116 | image_name=image_name |
| 117 | ) |
| 118 | self.repo_dir = repo_dir |
| 119 | self.verbose = verbose |
| 120 | |
| 121 | def query_codebase(self, query): |
| 122 | return self.user_proxy.initiate_chat( |
Callers
nothing calls this directly
Tested by
no test coverage detected