MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / _call_llm

Method _call_llm

src/harness/agentic_loop/plan_generator.py:166–178  ·  view source on GitHub ↗

Single LLM call with system prompt, no tools.

(self, user_message: str)

Source from the content-addressed store, hash-verified

164 return "\n".join(lines)
165
166 def _call_llm(self, user_message: str) -> str:
167 """Single LLM call with system prompt, no tools."""
168 messages = [
169 {"role": "system", "content": self._system_prompt},
170 {"role": "user", "content": user_message},
171 ]
172 response = self.llm_client.completion(
173 model=self.model,
174 messages=messages,
175 tools=None,
176 temperature=self.temperature,
177 )
178 return response.choices[0].message.content or ""
179
180 @staticmethod
181 def _extract_yaml(raw: str) -> str:

Callers 1

generateMethod · 0.95

Calls 1

completionMethod · 0.80

Tested by

no test coverage detected