core[patch]: docstring update (#16813)

- added missed docstrings
- formated docstrings to consistent form
This commit is contained in:
Leonid Ganeline
2024-02-09 12:47:41 -08:00
committed by GitHub
parent e10030e241
commit ae66bcbc10
33 changed files with 162 additions and 131 deletions

View File

@@ -556,7 +556,7 @@ MessageLikeRepresentation = Union[
class ChatPromptTemplate(BaseChatPromptTemplate):
"""A prompt template for chat models.
"""Prompt template for chat models.
Use to create flexible templated prompts for chat models.

View File

@@ -11,7 +11,7 @@ def _get_inputs(inputs: dict, input_variables: List[str]) -> dict:
class PipelinePromptTemplate(BasePromptTemplate):
"""A prompt template for composing multiple prompt templates together.
"""Prompt template for composing multiple prompt templates together.
This can be useful when you want to reuse parts of prompts.
A PipelinePrompt consists of two main parts: