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:
@@ -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);
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user