Skip to content

Supporting within NeMo guardrails serialization #28741

Answered by feijoes
snassimr asked this question in Q&A
Discussion options

You must be logged in to vote

@snassimr You could try creating custom serialization for RunnableRails. from_dict and to_dict are necessary for serialization and deserialization in Langchain.

class SerializableRunnableRails(RunnableRails):
    def to_dict(self):
        ...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@snassimr
Comment options

Answer selected by snassimr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants