The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs: output parser nits (#16588)
Bagaturdb80832e4fa4
diff --git a/docs/docs/modules/model_io/output_parsers/index.mdx b/docs/docs/modules/model_io/output_parsers/index.mdxindex 239cd644ef..ea0ada5db3 100644--- a/docs/docs/modules/model_io/output_parsers/index.mdx+++ b/docs/docs/modules/model_io/output_parsers/index.mdx@@ -33,7 +33,6 @@ LangChain has lots of different types of output parsers. This is a list of outpu| Name | Supports Streaming | Has Format Instructions | Calls LLM | Input Type | Output Type | Description ||-----------------|--------------------|-------------------------------|-----------|----------------------------------|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|| [OpenAITools](./types/openai_tools) | | (Passes `tools` to model) | | `Message` (with `tool_choice`) | JSON object | Uses latest OpenAI function calling args `tools` and `tool_choice` to structure the return output. If you are using a model that supports function calling, this is generally the most reliable method. |-| [OpenAIFunctions](./types/openai_functions) | ✅ | (Passes `functions` to model) | | `Message` (with `function_call`) | JSON object | Uses legacy OpenAI function calling args `functions` and `function_call` to structure the return output. || [JSON](./types/json) | ✅ | ✅ | | `str \| Message` | JSON object | Returns a JSON object as specified. You can specify a Pydantic model and it will return JSON for that model. Probably the most reliable output parser for getting structured data that does NOT use function calling. || [XML](./types/xml) | ✅ | ✅ | | `str \| Message` | `dict` | Returns a dictionary of tags. Use when XML output is needed. Use with models that are good at writing XML (like Anthropic's). |diff --git a/docs/docs/modules/model_io/output_parsers/types/openai_tools.ipynb b/docs/docs/modules/model_io/output_parsers/types/openai_tools.ipynbindex 84a3bb5d0a..a9a68f3f70 100644--- a/docs/docs/modules/model_io/output_parsers/types/openai_tools.ipynb+++ b/docs/docs/modules/model_io/output_parsers/types/openai_tools.ipynb@@ -7,7 +7,7 @@"source": ["# OpenAI Tools\n","\n",- "These output parsers extract tool calls from OpenAI's function calling API responses. This means they are only usable with models that support function calling, and specifically the latest `tools` and `tool_choice` parameters. We recommend familiarizing yourself with [function calling](/docs/modules/model_io/chat/function_calling) before reading this gu\n",+ "These output parsers extract tool calls from OpenAI's function calling API responses. This means they are only usable with models that support function calling, and specifically the latest `tools` and `tool_choice` parameters. We recommend familiarizing yourself with [function calling](/docs/modules/model_io/chat/function_calling) before reading this guide.\n","\n","There are a few different variants of output parsers:\n","\n",