Class MessageConvertersKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Message toSpringAiMessage(Message $self) Convert one of our messages to a Spring AI message with multimodal support.
      final static Message toEmbabelMessage(AssistantMessage $self) Convert a Spring AI AssistantMessage to an Embabel message.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • toSpringAiMessage

         final static Message toSpringAiMessage(Message $self)

        Convert one of our messages to a Spring AI message with multimodal support.

      • toEmbabelMessage

         final static Message toEmbabelMessage(AssistantMessage $self)

        Convert a Spring AI AssistantMessage to an Embabel message. Handles both regular messages and messages with tool calls.