MCPcopy Create free account
hub / github.com/chainlit/chainlit / default

Method default

backend/chainlit/session.py:31–35  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

29
30class JSONEncoderIgnoreNonSerializable(json.JSONEncoder):
31 def default(self, obj):
32 try:
33 return super(JSONEncoderIgnoreNonSerializable, self).default(obj)
34 except TypeError:
35 return None
36
37
38def clean_metadata(metadata: Dict, max_size: int = 1048576):

Callers 1

app.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected