Skip to content

Commit 17fc0ae

Browse files
filiphrnamsoo2
authored andcommitted
Fix CustomerTools example to use existing methods (spring-projects#3390)
Signed-off-by: Filip Hrisafov <[email protected]> Signed-off-by: minsoo.nam <[email protected]>
1 parent a0a505b commit 17fc0ae

File tree

1 file changed

+1
-1
lines changed
  • spring-ai-docs/src/main/antora/modules/ROOT/pages/api

1 file changed

+1
-1
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/tools.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ class CustomerTools {
939939
940940
@Tool(description = "Retrieve customer information")
941941
Customer getCustomerInfo(Long id, ToolContext toolContext) {
942-
return customerRepository.findById(id, toolContext.get("tenantId"));
942+
return customerRepository.findById(id, toolContext.getContext().get("tenantId"));
943943
}
944944
945945
}

0 commit comments

Comments
 (0)