Agents can now alter tool call arguments - #95
Conversation
Maven test summary
This comment is automatically generated by the GitHub Actions workflow. |
Maven test summary
This comment is automatically generated by the GitHub Actions workflow. |
|
| var argumentNode = mapper | ||
| .readTree(toolCall.getArguments()); | ||
| for (final var extension : this.extensions) { | ||
| argumentNode = extension.modifyToolCallArguments(context, (A) this, toolCall, argumentNode); |
There was a problem hiding this comment.
Can we fire an eventBus event with the extension class name will be helpful while instrumenting and debugging.
There was a problem hiding this comment.
Will raise too many events? also events make sens only when arguments are passed input and output .. and we would risk passing sensitive information. the exact reason why i have not added a log there as well.
There was a problem hiding this comment.
Purpose will not be to pass arguments but to instrument that an extension method was called and took x time.



Users can implement the relevant function in extension to modify the incoming params which are passed in as a json node. and respond with the modified json node.
During application the extensions are called in sequence and the return from one is passed as param to another.
an extension can throw an exception and the toll call will fail permanenetly