diff --git a/pyagent/config.py b/pyagent/config.py index 8e1d4cb..31a9892 100644 --- a/pyagent/config.py +++ b/pyagent/config.py @@ -228,6 +228,8 @@ def _render_toml_value(v: Any) -> str: return "true" if v else "false" if isinstance(v, int): return str(v) + if isinstance(v, float): + return repr(v) if isinstance(v, str): escaped = v.replace("\\", "\\\\").replace('"', '\\"') return f'"{escaped}"'