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

Method get

src/prompt/context.py:749–761  ·  view source on GitHub ↗

Get prompt instance by name Args: name: Name of the prompt Returns: Prompt: Prompt instance or None if not found

(self, name: str)

Source from the content-addressed store, hash-verified

747 return restored_config
748
749 async def get(self, name: str) -> Optional[Prompt]:
750 """Get prompt instance by name
751
752 Args:
753 name: Name of the prompt
754
755 Returns:
756 Prompt: Prompt instance or None if not found
757 """
758 prompt_config = self._prompt_configs.get(name)
759 if prompt_config is None:
760 return None
761 return prompt_config.instance if prompt_config.instance is not None else None
762
763 async def get_info(self, name: str) -> Optional[PromptConfig]:
764 """Get a prompt configuration by name

Callers 11

get_variablesMethod · 0.95
set_variablesMethod · 0.95
register_prompt_classMethod · 0.45
_load_from_codeMethod · 0.45
registerMethod · 0.45
updateMethod · 0.45
copyMethod · 0.45
restoreMethod · 0.45
get_infoMethod · 0.45
load_from_jsonMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected