opto.trace.utils

opto.trace.utils#

Functions

contain

escape_json_nested_quotes

Escapes double quotation marks inside JSON string values for a specific format: {"name": "string value", "value": "string value"} Does not escape quotes around keys or structural quotes.

for_all_methods

Applying a decorator to all methods of a class.

parse_eqs_to_dict

Parse the text of equations into a dictionary

remove_non_ascii

Example usage can be found in optimizers/textgrad.py

render_opt_step

sum_feedback

Aggregate the feedback of a list of nodes.

test_json_quote_escaper