MCPcopy Index your code
hub / github.com/FSoft-AI4Code/HyperAgent / HyperAgent

Class HyperAgent

src/hyperagent/pilot.py:95–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 return manager, user_proxy, repo_dir
94
95class 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(
123 self.system, message=query, silent=self.verbose
124 )

Callers 5

main.pyFile · 0.90
mainFunction · 0.90
mainFunction · 0.90
data_generation.pyFile · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected