Update python_repl docs (#4012)

In the example for creating a Python REPL tool under the Agent module,
the ".run" was omitted in the example. I believe this is required when
defining a Tool.
fix_agent_callbacks
AndreLCanada 1 year ago committed by GitHub
parent 67db495fcf
commit bf726f9d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,7 +65,7 @@
"repl_tool = Tool(\n",
" name=\"python_repl\",\n",
" description=\"A Python shell. Use this to execute python commands. Input should be a valid python command. If you want to see the output of a value, you should print it out with `print(...)`.\",\n",
" func=python_repl\n",
" func=python_repl.run\n",
")"
]
}

Loading…
Cancel
Save