We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0a505b commit 17fc0aeCopy full SHA for 17fc0ae
spring-ai-docs/src/main/antora/modules/ROOT/pages/api/tools.adoc
@@ -939,7 +939,7 @@ class CustomerTools {
939
940
@Tool(description = "Retrieve customer information")
941
Customer getCustomerInfo(Long id, ToolContext toolContext) {
942
- return customerRepository.findById(id, toolContext.get("tenantId"));
+ return customerRepository.findById(id, toolContext.getContext().get("tenantId"));
943
}
944
945
0 commit comments