Comment From: sunyuhan1998
I think this might require significant changes. Currently, the handling of @Tool
is parsed in a fully static manner, and supporting property injection through a mechanism similar to BeanPostProcessor
would likely involve substantial modifications (though I haven't thought it through in detail yet). Additionally, compatibility with other annotations such as @ToolParam
would also need to be considered. Perhaps until this feature is supported, you could consider downgrading to a programmatic approach, such as using MethodToolCallback
, to achieve the scenario you described.