# Hermes examples ## File repair The base integration smoke started with this file. ```python def twice(x): return x + 2 ``` User request ```text Read math_helper.py with read_file, fix twice(x) to double its input using patch, then run a local assertion for twice(3) with terminal. ``` Hermes executed the following structured tool calls in order. ```json { "name": "read_file", "arguments": { "path": "math_helper.py" } } ``` ```json { "name": "patch", "arguments": { "new_string": "def twice(x): return x * 2", "old_string": "def twice(x): return x + 2", "path": "math_helper.py" } } ``` ```json { "name": "terminal", "arguments": { "command": "python3 -c \"from math_helper import twice; assert twice(3) == 6; print('ok', twice(3))\"" } } ``` The terminal returned `ok 6` and exit code 0. Each result was included under the matching tool-call ID in the next request. ## Adapter activation On a separate fixed request to read `math_helper.py`, the GGUF returned a structured `read_file` call at scales 0, 0.5 and 1.0. On an identical numerical probe, the probability distribution changed at each scale.