core[patch[: docstring update (#21036)

Added missed docstrings. Updated docstrings to consistent format.
This commit is contained in:
Leonid Ganeline
2024-04-29 12:35:34 -07:00
committed by GitHub
parent f479a337cc
commit 1a2ff56cd8
20 changed files with 159 additions and 38 deletions

View File

@@ -8,7 +8,7 @@ from langchain_core.utils import image as image_utils
class ImagePromptTemplate(BasePromptTemplate[ImageURL]):
"""An image prompt template for a multimodal model."""
"""Image prompt template for a multimodal model."""
template: dict = Field(default_factory=dict)
"""Template for the prompt."""

View File

@@ -17,7 +17,7 @@ from langchain_core.runnables.config import RunnableConfig
class PromptTemplate(StringPromptTemplate):
"""A prompt template for a language model.
"""Prompt template for a language model.
A prompt template consists of a string template. It accepts a set of parameters
from the user that can be used to generate a prompt for a language model.

View File

@@ -33,7 +33,10 @@ from langchain_core.runnables.base import (
@beta()
class StructuredPrompt(ChatPromptTemplate):
"""Structured prompt template for a language model."""
schema_: Union[Dict, Type[BaseModel]]
"""Schema for the structured prompt."""
@classmethod
def get_lc_namespace(cls) -> List[str]: