Skip to main content

Module util

Module util 

Source
Expand description

Shared utility functions for the graph subsystem.

Functions§

extract_json_object
Extract the first balanced JSON object from a string.
merge_json_objects
Merge two JSON objects, with overlay keys taking precedence.
parse_datetime
Parse a SurrealDB datetime value (serde_json::Value) into a chrono DateTime.
strip_markdown_fencing
Strip markdown code fencing (json ... ) from LLM responses.