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

Method process

sources/agents/mcp_agent.py:55–70  ·  view source on GitHub ↗
(self, prompt, speech_module)

Source from the content-addressed store, hash-verified

53 return prompt
54
55 async def process(self, prompt, speech_module) -> str:
56 if self.enabled == False:
57 return "MCP Agent is disabled."
58 prompt = self.expand_prompt(prompt)
59 self.memory.push('user', prompt)
60 working = True
61 while working == True:
62 animate_thinking("Thinking...", color="status")
63 answer, reasoning = await self.llm_request()
64 exec_success, _ = self.execute_modules(answer)
65 answer = self.remove_blocks(answer)
66 self.last_answer = answer
67 self.status_message = "Ready"
68 if len(self.blocks_result) == 0:
69 working = False
70 return answer, reasoning
71
72if __name__ == "__main__":
73 pass

Callers

nothing calls this directly

Calls 6

expand_promptMethod · 0.95
animate_thinkingFunction · 0.90
pushMethod · 0.80
llm_requestMethod · 0.80
execute_modulesMethod · 0.80
remove_blocksMethod · 0.80

Tested by

no test coverage detected