Skip to content

The agent engineering platform.

Fix not imported 'validator' (#715)

Николай Шангин18b14668932c
diff --git a/docs/modules/prompts/examples/custom_prompt_template.md b/docs/modules/prompts/examples/custom_prompt_template.md
index c3358eb004..4caa6131c1 100644
--- a/docs/modules/prompts/examples/custom_prompt_template.md
+++ b/docs/modules/prompts/examples/custom_prompt_template.md
@@ -34,7 +34,7 @@ Next, we'll create a custom prompt template that takes in the function name as i
```python
from langchain.prompts import BasePromptTemplate
-from pydantic import BaseModel
+from pydantic import BaseModel, validator
class FunctionExplainerPromptTemplate(BasePromptTemplate, BaseModel):