opto.optimizers.textgrad.rm_node_attrs

Contents

opto.optimizers.textgrad.rm_node_attrs#

rm_node_attrs(text: str) str[source]#

Removes trace node attributes (text inside square brackets) from a string.

Parameters:

text – Input string that may contain trace node attributes like [ParameterNode]

Returns:

String with trace node attributes removed