MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / get_agent_message

Method get_agent_message

src/prompt/server.py:199–222  ·  view source on GitHub ↗

Get an agent message using AgentMessagePrompt. Args: prompt_name: Name of the prompt (e.g., "tool_calling"). If None, will try to infer from kwargs or use default. modules: Modules to render in the template reload: Whether

(self, 
                         prompt_name: Optional[str] = None,
                         modules: Dict[str, Any] = None, 
                         reload: bool = True, 
                         **kwargs)

Source from the content-addressed store, hash-verified

197 )
198
199 async def get_agent_message(self,
200 prompt_name: Optional[str] = None,
201 modules: Dict[str, Any] = None,
202 reload: bool = True,
203 **kwargs):
204 """Get an agent message using AgentMessagePrompt.
205
206 Args:
207 prompt_name: Name of the prompt (e.g., "tool_calling").
208 If None, will try to infer from kwargs or use default.
209 modules: Modules to render in the template
210 reload: Whether to reload the prompt
211 **kwargs: Additional arguments (may include prompt_name for backward compatibility)
212 """
213 # Ensure prompt_manager is initialized
214 if not hasattr(self, 'prompt_context_manager'):
215 await self.initialize()
216
217 return await self.prompt_context_manager.get_agent_message(
218 prompt_name=prompt_name,
219 modules=modules,
220 reload=reload,
221 **kwargs
222 )
223
224 async def get_messages(self,
225 prompt_name: Optional[str] = None,

Callers 10

mainFunction · 0.95
_get_messagesMethod · 0.45
_get_messagesMethod · 0.45
_get_messagesMethod · 0.45
_get_messagesMethod · 0.45
_get_messagesMethod · 0.45
_get_messagesMethod · 0.45
_get_messagesMethod · 0.45
_get_messagesMethod · 0.45
_get_messagesMethod · 0.45

Calls 1

initializeMethod · 0.95

Tested by 1

mainFunction · 0.76