Package com.sap.ai.sdk.prompt.registry.spring

# Class SpringAiConverter

java.lang.Object
com.sap.ai.sdk.prompt.registry.spring.SpringAiConverter

public class SpringAiConverter extends Object
Utility class for prompt registry related operations in a Spring context.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static List<org.springframework.ai.chat.messages.Message>`
  `promptTemplateToMessages(PromptTemplateSubstitutionResponse promptResponse)`
  Get a SpringAI list of messages from a Prompt Registry Response.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### promptTemplateToMessages

    @Nonnull public static List<org.springframework.ai.chat.messages.Message> promptTemplateToMessages(@Nonnull PromptTemplateSubstitutionResponse promptResponse)
    Get a SpringAI list of messages from a Prompt Registry Response.
    Parameters:
      `promptResponse` - the response from Prompt Registry.
    Returns:
      list of SpringAI messages.