mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-21 23:22:27 +02:00
docs: remove mentions of pydantic_v1 in tutorials (#1709)
This commit is contained in:
+3
-1
@@ -305,9 +305,11 @@
|
||||
"source": [
|
||||
"from langchain.smith import RunEvalConfig\n",
|
||||
"from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder\n",
|
||||
"from langchain_core.pydantic_v1 import BaseModel, Field\n",
|
||||
"from langchain_openai import ChatOpenAI\n",
|
||||
"\n",
|
||||
"# NOTE: you must use langchain-core >= 0.3 with Pydantic v2\n",
|
||||
"from pydantic import BaseModel, Field\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"class RedTeamingResult(BaseModel):\n",
|
||||
" reasoning: str = Field(description=\"Reasoning behind whether you consider the \")\n",
|
||||
|
||||
Reference in New Issue
Block a user