Add custom Json encoder
requested to merge 33-workflow-service-not-creating-all-the-checkpoints-in-a-workflow-life-cycle into main
Not all checkpoints are being saved due to an exception raised in json.dumps
.
I added a custom encoder to handle encoding of langchain
messages.
I haven't added any exception handling because for this we have another issue where we'll apply a wholistic solution.
How to verify
- Follow the docs to set up local environment and run the executor.
- Verify all checkpoints are created
curl --verbose \
--header "Authorization: Bearer $GITLAB_TOKEN" \
http://<GDK_HOST>/api/v4/ai/duo_workflows/workflows/<workflow_id>/checkpoints
Closes #33 (closed)
Edited by Halil Coban