diff --git a/docs/release_notes.md b/docs/release_notes.md index b5c8a8214..11fee6cf2 100644 --- a/docs/release_notes.md +++ b/docs/release_notes.md @@ -18,6 +18,7 @@ from public API - [Orchestration] Internal AI SDK methods `createConfig` were removed from `GroundingProvider` and `MaskingProvider` - [Orchestration] Internal AI SDK method `createMessage` was removed from `Message` class. +- [Orchestration] Removed internal `AssistantMessage(List toolCalls)` please use `AssistantMessage.withToolCalls(List)` instead. - [Orchestration] Removed deprecated models: - `OrchestrationAiModel.IBM_GRANITE_13B_CHAT` - `OrchestrationAiModel.MISTRAL_LARGE_INSTRUCT` diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/AssistantMessage.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/AssistantMessage.java index 120ef2ce3..750ac330a 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/AssistantMessage.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/AssistantMessage.java @@ -45,10 +45,8 @@ public class AssistantMessage extends Message { * Creates a new assistant message with the given tool calls. * * @param toolCalls list of tool call objects - * @deprecated Please use {@link #withToolCalls(List)} instead. */ - @Deprecated - public AssistantMessage(@Nonnull final List toolCalls) { + AssistantMessage(@Nonnull final List toolCalls) { content = new MessageContent(List.of()); this.toolCalls = toolCalls; reasoningContent = null;