Skip to content

Commit 7b87101

Browse files
committed
Fix CustomerTools example to use existing methods
1 parent a03f7d5 commit 7b87101

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)