Skip to content

Commit db80832

Browse files
authored
docs: output parser nits (langchain-ai#16588)
1 parent ef42d9d commit db80832

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

docs/docs/modules/model_io/output_parsers/index.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ LangChain has lots of different types of output parsers. This is a list of outpu
3333
| Name | Supports Streaming | Has Format Instructions | Calls LLM | Input Type | Output Type | Description |
3434
|-----------------|--------------------|-------------------------------|-----------|----------------------------------|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
3535
| [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. |
36-
3736
| [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. |
3837
| [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. |
3938
| [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). |

docs/docs/modules/model_io/output_parsers/types/openai_tools.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"source": [
88
"# OpenAI Tools\n",
99
"\n",
10-
"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",
10+
"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",
1111
"\n",
1212
"There are a few different variants of output parsers:\n",
1313
"\n",

0 commit comments

Comments
 (0)