register_prompt_wrapper

register_prompt_wrapper(name, wrapper, overwrite=False)

Register a prompt wrapper for use in Python and CLI experiment configs.

Parameters

Name Type Description Default
name str String key users will pass as prompt_type such as "concise". required
wrapper PromptWrapper Callable accepting a PromptContext and returning a full prompt string. required
overwrite bool Set to True to replace an existing wrapper with the same name. False