The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Fix superfluous Auto-fixing parser documents (#12062)
Shinya Maeda89bc73c6c3ab
diff --git a/docs/docs/modules/model_io/output_parsers/output_fixing_parser.mdx b/docs/docs/modules/model_io/output_parsers/output_fixing_parser.mdxindex 024bb0033c..83151da7dd 100644--- a/docs/docs/modules/model_io/output_parsers/output_fixing_parser.mdx+++ b/docs/docs/modules/model_io/output_parsers/output_fixing_parser.mdx@@ -7,11 +7,9 @@ But we can do other things besides throw errors. Specifically, we can pass the mFor this example, we'll use the above Pydantic output parser. Here's what happens if we pass it a result that does not comply with the schema:```python-from langchain.prompts import PromptTemplate, ChatPromptTemplate, HumanMessagePromptTemplate-from langchain.llms import OpenAIfrom langchain.chat_models import ChatOpenAIfrom langchain.output_parsers import PydanticOutputParser-from pydantic import BaseModel, Field, validator+from langchain.pydantic_v1 import BaseModel, Fieldfrom typing import List```