mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-31 03:59:25 +00:00
fix comments in output format (#11536)
- **Description:** Fixes the comments in the ConvoOutputParser. Because the \\\\ is escaping a single \\, they render something like: `"action_input": string \ The input to the action` in the prompt. Changing this to \\\\\\\\ lets it escape two slashes so that it renders a proper comment: `"action_input": string \\ The input to the action` - **Issue:** N/A - **Dependencies:** - **Tag maintainer:** @hwchase17 - **Twitter handle:**
This commit is contained in:
parent
8e45f720a8
commit
447a523662
@ -18,8 +18,8 @@ Markdown code snippet formatted in the following schema:
|
||||
|
||||
```json
|
||||
{{{{
|
||||
"action": string, \\ The action to take. Must be one of {tool_names}
|
||||
"action_input": string \\ The input to the action
|
||||
"action": string, \\\\ The action to take. Must be one of {tool_names}
|
||||
"action_input": string \\\\ The input to the action
|
||||
}}}}
|
||||
```
|
||||
|
||||
@ -29,7 +29,7 @@ Use this if you want to respond directly to the human. Markdown code snippet for
|
||||
```json
|
||||
{{{{
|
||||
"action": "Final Answer",
|
||||
"action_input": string \\ You should put what you want to return to use here
|
||||
"action_input": string \\\\ You should put what you want to return to use here
|
||||
}}}}
|
||||
```"""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user