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 f7c7ece commit 84546c0Copy full SHA for 84546c0
sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiAgenticWorkflowService.java
@@ -44,7 +44,7 @@ public ChatResponse runAgent(@Nonnull final String userInput) {
44
val cl = ChatClient.builder(client).defaultAdvisors(advisor).build();
45
46
// Add (mocked) tools
47
- val options = new OpenAiChatOptions(new OpenAiChatCompletionConfig());
+ val options = new OpenAiChatOptions();
48
options.setToolCallbacks(
49
List.of(ToolCallbacks.from(new WeatherMethod(), new RestaurantMethod())));
50
options.setInternalToolExecutionEnabled(true);
0 commit comments