Open yairyairyair opened 3 weeks ago
If to be more specific these are the not_implemented parts in the json
"agent_scratchpad": {
"lc": 1,
"type": "not_implemented",
"id": ["langchain_core", "runnables", "base", "RunnableLambda"],
"repr": "RunnableLambda(lambda x: format_log_to_str(x['intermediate_steps']))"
}
"last": {
"lc": 1,
"type": "not_implemented",
"id": [
"langchain",
"agents",
"output_parsers",
"react_single_input",
"ReActSingleInputOutputParser"
],
"repr": "ReActSingleInputOutputParser()",
"name": "ReActSingleInputOutputParser",
...
}
@yairyairyair thanks for the feedback.
Runnables can contain arbitrary logic (you can wrap any python function in a Runnable), so the only way to be able to serialize anything would be to do something unsafe like pickling python objects.
Out of curiosity, what are you using serialization for?
Tried using pickle, dill and jsonpickle all didnt work. Dont mind the security aspect of it. Using it to move runnables from one service to another.
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
Basically i just want to dumps a runnable and loads it, i want it to work for any langchain runnable
System Info
generic langchain installation