MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / __call__

Method __call__

src/hyperagent/agents/llms.py:35–43  ·  view source on GitHub ↗
(self, prompt: str)

Source from the content-addressed store, hash-verified

33 )
34
35 def __call__(self, prompt: str):
36 response = self.client.chat.completions.create(
37 messages = [
38 {"role": "system", "content": self.system_prompt},
39 {"role": "user", "content": prompt},
40 ],
41 model = self.config["model"],
42 )
43 return response.choices[0].message.content
44
45
46class LocalLLM(LLM):

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected