Get a prompt configuration by name Args: name: Name of the prompt
(self, name: str)
| 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 |
| 765 | |
| 766 | Args: |
| 767 | name: Name of the prompt |
| 768 | """ |
| 769 | return self._prompt_configs.get(name) |
| 770 | |
| 771 | async def list(self) -> List[str]: |
| 772 | """Get list of registered prompts |
no test coverage detected