mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-23 19:39:58 +00:00
core[patch[: docstring update (#21036)
Added missed docstrings. Updated docstrings to consistent format.
This commit is contained in:
@@ -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."""
|
||||
|
@@ -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.
|
||||
|
@@ -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]:
|
||||
|
Reference in New Issue
Block a user