Is your feature request related to a problem? Please describe.
Actually AgentExecutor requires implementation of two methods, which makes it impossible to use a lambda.
Describe the solution you'd like
So maybe it would be great to have the cancel nethod as default (maybe throwing an exception by default) so we can always override, but if not, then we can use a functional interface.
Describe alternatives you've considered
No response
Additional context
No response
Code of Conduct
Is your feature request related to a problem? Please describe.
Actually AgentExecutor requires implementation of two methods, which makes it impossible to use a lambda.
Describe the solution you'd like
So maybe it would be great to have the cancel nethod as default (maybe throwing an exception by default) so we can always override, but if not, then we can use a functional interface.
Describe alternatives you've considered
No response
Additional context
No response
Code of Conduct