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

Method get_system_message

src/prompt/server.py:174–197  ·  view source on GitHub ↗

Get a system message using SystemPrompt. 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 to re

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

Source from the content-addressed store, hash-verified

172 return prompt_config
173
174 async def get_system_message(self,
175 prompt_name: Optional[str] = None,
176 modules: Dict[str, Any] = None,
177 reload: bool = False,
178 **kwargs):
179 """Get a system message using SystemPrompt.
180
181 Args:
182 prompt_name: Name of the prompt (e.g., "tool_calling").
183 If None, will try to infer from kwargs or use default.
184 modules: Modules to render in the template
185 reload: Whether to reload the prompt
186 **kwargs: Additional arguments (may include prompt_name for backward compatibility)
187 """
188 # Ensure prompt_manager is initialized
189 if not hasattr(self, 'prompt_context_manager'):
190 await self.initialize()
191
192 return await self.prompt_context_manager.get_system_message(
193 prompt_name=prompt_name,
194 modules=modules,
195 reload=reload,
196 **kwargs
197 )
198
199 async def get_agent_message(self,
200 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