chore(core): fix some pydocs to use google-style (#32764)

Co-authored-by: Mason Daugherty <mason@langchain.dev>
This commit is contained in:
Christophe Bornet
2025-09-08 19:52:17 +02:00
committed by GitHub
parent 01fdeede50
commit 16420cad71
24 changed files with 281 additions and 360 deletions

View File

@@ -39,19 +39,20 @@ class PipelinePromptTemplate(BasePromptTemplate):
This can be useful when you want to reuse parts of prompts.
A PipelinePrompt consists of two main parts:
- final_prompt: This is the final prompt that is returned
- pipeline_prompts: This is a list of tuples, consisting
of a string (`name`) and a Prompt Template.
Each PromptTemplate will be formatted and then passed
to future prompt templates as a variable with
the same name as `name`
- final_prompt: This is the final prompt that is returned
- pipeline_prompts: This is a list of tuples, consisting
of a string (``name``) and a Prompt Template.
Each PromptTemplate will be formatted and then passed
to future prompt templates as a variable with
the same name as ``name``
"""
final_prompt: BasePromptTemplate
"""The final prompt that is returned."""
pipeline_prompts: list[tuple[str, BasePromptTemplate]]
"""A list of tuples, consisting of a string (`name`) and a Prompt Template."""
"""A list of tuples, consisting of a string (``name``) and a Prompt Template."""
@classmethod
def get_lc_namespace(cls) -> list[str]: