langchain: fix systax warning in create_json_chat_agent (#23253)

fix systax warning in `create_json_chat_agent`

```
.../langchain/agents/json_chat/base.py:22: SyntaxWarning: invalid escape sequence '\ '
  """Create an agent that uses JSON to format its logic, build for Chat Models.
```
pull/23249/head
Mu Yang 3 months ago committed by GitHub
parent b108b4d010
commit 401d469a92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -122,8 +122,8 @@ def create_json_chat_agent(
```json ```json
{{ {{
"action": string, \ The action to take. Must be one of {tool_names} "action": string, \\ The action to take. Must be one of {tool_names}
"action_input": string \ The input to the action "action_input": string \\ The input to the action
}} }}
``` ```
@ -134,7 +134,7 @@ def create_json_chat_agent(
```json ```json
{{ {{
"action": "Final Answer", "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…
Cancel
Save