mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-07 22:11:51 +00:00
prompty: docstring (#23152)
Added missed docstrings. Format docstrings to the consistent format (used in the API Reference) --------- Co-authored-by: ccurme <chester.curme@gmail.com>
This commit is contained in:
@@ -8,6 +8,8 @@ from .core import Invoker, Prompty, SimpleModel
|
||||
|
||||
|
||||
class PromptyChatParser(Invoker):
|
||||
"""Parse a chat prompt into a list of messages."""
|
||||
|
||||
def __init__(self, prompty: Prompty) -> None:
|
||||
self.prompty = prompty
|
||||
self.roles = ["assistant", "function", "system", "user", "human", "ai"]
|
||||
|
Reference in New Issue
Block a user