add langchain

This commit is contained in:
2023-10-20 03:07:59 +00:00
parent 0d84e20704
commit 1f7d9d3fe0
13755 changed files with 1932710 additions and 4 deletions

View File

@@ -6,6 +6,16 @@ export agent, addNewMessage, clearMessage, removeLatestMsg, generatePrompt_token
using JSON3, DataStructures, Dates
const py_agents = PythonCall.pynew()
const py_llms = PythonCall.pynew()
function __init__()
PythonCall.pycopy!(py_cv2, pyimport("cv2"))
# equivalent to from urllib.request import urlopen in python
PythonCall.pycopy!(py_agents, pyimport("langchain" => "agents"))
PythonCall.pycopy!(py_llms, pyimport("langchain" => "llms"))
end
#------------------------------------------------------------------------------------------------100