MCPcopy
hub / github.com/Fosowl/agenticSeek / process

Method process

sources/agents/file_agent.py:27–40  ·  view source on GitHub ↗
(self, prompt, speech_module)

Source from the content-addressed store, hash-verified

25 model_provider=provider.get_model_name())
26
27 async def process(self, prompt, speech_module) -> str:
28 exec_success = False
29 prompt += f"\nYou must work in directory: {self.work_dir}"
30 self.memory.push('user', prompt)
31 while exec_success is False and not self.stop:
32 await self.wait_message(speech_module)
33 animate_thinking("Thinking...", color="status")
34 answer, reasoning = await self.llm_request()
35 self.last_reasoning = reasoning
36 exec_success, _ = self.execute_modules(answer)
37 answer = self.remove_blocks(answer)
38 self.last_answer = answer
39 self.status_message = "Ready"
40 return answer, reasoning
41
42if __name__ == "__main__":
43 pass

Callers

nothing calls this directly

Calls 6

animate_thinkingFunction · 0.90
pushMethod · 0.80
wait_messageMethod · 0.80
llm_requestMethod · 0.80
execute_modulesMethod · 0.80
remove_blocksMethod · 0.80

Tested by

no test coverage detected