Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@
+ SAPDocumentTranslationOutputTargetLanguage.create("de-DE"))
.sourceLanguage("en-US")));
```
- [Orchestration] Deprecated models `OrchestrationAiModel.CLAUDE_3_OPUS` and `OrchestrationAiModel.CLAUDE_3_5_SONNET`.
- Replacement are respectively `OrchestrationAiModel.CLAUDE_4_OPUS` and `OrchestrationAiModel.CLAUDE_4_SONNET`.

### ✨ New Functionality

- [Orchestration] Added embedding generation support with new `OrchestrationClient#embed()` methods.
- Added `OrchestrationEmbeddingModel` with `TEXT_EMBEDDING_3_SMALL`, `TEXT_EMBEDDING_3_LARGE`, `AMAZON_TITAN_EMBED_TEXT` and `NVIDIA_LLAMA_32_NV_EMBEDQA_1B` embedding models.
- Introduced `OrchestrationEmbeddingRequest` for building requests fluently and `OrchestrationEmbeddingResponse#getEmbeddingVectors()` to retrieve embeddings.
- [Orchestration] Added new model `OrchestrationAiModel.MISTRAL_MEDIUM_INSTRUCT`.

### 📈 Improvements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ public class OrchestrationAiModel {
public static final OrchestrationAiModel MISTRAL_SMALL_INSTRUCT =
new OrchestrationAiModel("mistralai--mistral-small-instruct");

/** MistralAI Mistral Medium Instruct model */
public static final OrchestrationAiModel MISTRAL_MEDIUM_INSTRUCT =
new OrchestrationAiModel("mistralai--mistral-medium-instruct");

/**
* MistralAI Mixtral 8x7B Instruct v01 model
*
Expand Down Expand Up @@ -104,11 +108,23 @@ public class OrchestrationAiModel {
public static final OrchestrationAiModel CLAUDE_3_HAIKU =
new OrchestrationAiModel("anthropic--claude-3-haiku");

/** Anthropic Claude 3 Opus model */
/**
* Anthropic Claude 3 Opus model
*
* @deprecated This model is deprecated on AI Core. The suggested replacement model is {@link
* OrchestrationAiModel#CLAUDE_4_OPUS}.
*/
@Deprecated
public static final OrchestrationAiModel CLAUDE_3_OPUS =
new OrchestrationAiModel("anthropic--claude-3-opus");

/** Anthropic Claude 3.5 Sonnet model */
/**
* Anthropic Claude 3.5 Sonnet model
*
* @deprecated This model is deprecated on AI Core. The suggested replacement model is {@link
* OrchestrationAiModel#CLAUDE_4_SONNET}.
*/
@Deprecated
public static final OrchestrationAiModel CLAUDE_3_5_SONNET =
new OrchestrationAiModel("anthropic--claude-3.5-sonnet");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public ChatResponse runAgent(@Nonnull final String userInput) {
val options = new OrchestrationChatOptions(config);
options.setToolCallbacks(
List.of(ToolCallbacks.from(new WeatherMethod(), new RestaurantMethod())));
options.setInternalToolExecutionEnabled(true);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drive by update that I noticed when doing TechEd.
This is redundant since the value is true by default. The function is also showcased to false in multiple places.


// Prompts for the chain workflow
final List<String> systemPrompts =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ public ChatResponse toolCallingMcp() {
// GPT-4o-mini doesn't work too well with the file system tool, so we use 4o here
val options = new OrchestrationChatOptions(config.withLlmConfig(GPT_4O));
options.setToolCallbacks(List.of(toolCallbackProvider.getToolCallbacks()));
options.setInternalToolExecutionEnabled(true);

val sys =
new SystemMessage(
Expand Down