MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / _execute

Method _execute

KVCOMM/agents/final_decision.py:270–287  ·  view source on GitHub ↗

To be overriden by the descendant class

(self, input:Dict[str,str],  spatial_info:Dict[str,Any], temporal_info:Dict[str,Any],**kwargs)

Source from the content-addressed store, hash-verified

268 }
269
270 def _execute(self, input:Dict[str,str], spatial_info:Dict[str,Any], temporal_info:Dict[str,Any],**kwargs):
271 """ To be overriden by the descendant class """
272 """ Use the processed input to get the result """
273 inputs = asyncio.run(
274 self._process_inputs(
275 input,
276 spatial_info,
277 temporal_info,
278 mode="default",
279 **kwargs,
280 )
281 )
282 message = [
283 {"role": "system", "content": inputs["system_prompt"]},
284 {"role": "user", "content": inputs["user_prompt"]},
285 ]
286 response = self.llm.gen(message)
287 return response
288
289 async def _async_execute(self, input:Dict[str,str], spatial_info:Dict[str,Any], temporal_info:Dict[str,Any], mode: str = "default", **kwargs):
290 """ To be overriden by the descendant class """

Callers

nothing calls this directly

Calls 3

_process_inputsMethod · 0.95
runMethod · 0.45
genMethod · 0.45

Tested by

no test coverage detected