Class MergeUtils

java.lang.Object
org.springframework.ai.azure.openai.MergeUtils

public class MergeUtils extends Object
Utility class for merging ChatCompletions instances and their associated objects. Uses reflection to create instances with private constructors and set private fields.
Since:
1.0.0
Author:
Grogdunn, Christian Tzolov
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.azure.ai.openai.models.ChatCompletions
     
    static com.azure.ai.openai.models.ChatCompletions
    mergeChatCompletions(com.azure.ai.openai.models.ChatCompletions left, com.azure.ai.openai.models.ChatCompletions right)
    Merge two ChatCompletions instances into a single ChatCompletions instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MergeUtils

      public MergeUtils()
  • Method Details

    • emptyChatCompletions

      public static com.azure.ai.openai.models.ChatCompletions emptyChatCompletions()
      Returns:
      an empty ChatCompletions instance.
    • mergeChatCompletions

      public static com.azure.ai.openai.models.ChatCompletions mergeChatCompletions(com.azure.ai.openai.models.ChatCompletions left, com.azure.ai.openai.models.ChatCompletions right)
      Merge two ChatCompletions instances into a single ChatCompletions instance.
      Parameters:
      left - the left ChatCompletions instance.
      right - the right ChatCompletions instance.
      Returns:
      a merged ChatCompletions instance.