Update tools.adoc Corrected incorrect punctuation usage (#2503)

Original:
ChatOptions chatOptions = ToolCallingChatOptions.builder()
    .toolCallbacks(customerTools)
    .toolContext(Map.of("tenantId", "acme"))
    .build():

After Change:
ChatOptions chatOptions = ToolCallingChatOptions.builder()
    .toolCallbacks(customerTools)
    .toolContext(Map.of("tenantId", "acme"))
    .build();

Signed-off-by: Hu Shihao <122598964+Hushihaoooooo@users.noreply.github.com>
This commit is contained in:
Hu Shihao
2025-03-19 19:52:08 +08:00
committed by GitHub
parent 61c60a6126
commit 4c0813dfb3

View File

@@ -970,7 +970,7 @@ ToolCallback[] customerTools = ToolCallbacks.from(new CustomerTools());
ChatOptions chatOptions = ToolCallingChatOptions.builder()
.toolCallbacks(customerTools)
.toolContext(Map.of("tenantId", "acme"))
.build():
.build();
Prompt prompt = new Prompt("Tell me more about the customer with ID 42", chatOptions);
chatModel.call(prompt);
----