Commit 1a1ab28
committed
feat(hooks): apply ModifiedInput from pre-tool hooks to tool call arguments
The pre-tool hook system already supported returning updated_input via
hook_specific_output, and the executor populated Result.ModifiedInput.
However, the runtime never applied it back to toolCall.Function.Arguments
before execution, making input-rewriting hooks (like RTK) ineffective.
Marshal ModifiedInput to JSON and overwrite the tool call arguments
when a pre-tool hook provides modified input.
Assisted-By: cagent1 parent 6621ea9 commit 1a1ab28
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1837 | 1837 | | |
1838 | 1838 | | |
1839 | 1839 | | |
1840 | | - | |
1841 | | - | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
1842 | 1853 | | |
1843 | 1854 | | |
1844 | 1855 | | |
| |||
0 commit comments