Skip to content

Add custom Json encoder

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

  1. Follow the docs to set up local environment and run the executor.
  2. 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

Merge request reports

Loading