Package com.sap.ai.sdk.foundationmodels.openai.model

# Interface OpenAiChatMessage

All Known Implementing Classes:
  `OpenAiChatMessage.OpenAiChatAssistantMessage`, `OpenAiChatMessage.OpenAiChatFunctionMessage`, `OpenAiChatMessage.OpenAiChatSystemMessage`, `OpenAiChatMessage.OpenAiChatToolMessage`, `OpenAiChatMessage.OpenAiChatUserMessage`

@Deprecated public interface OpenAiChatMessage
Deprecated.
OpenAI chat message types.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Interface
  Description
  `static class`
  `OpenAiChatMessage.OpenAiChatAssistantMessage`
  Deprecated.
  OpenAI assistant message.
  `static class`
  `OpenAiChatMessage.OpenAiChatFunctionMessage`
  Deprecated.
  OpenAI function message.
  `static class`
  `OpenAiChatMessage.OpenAiChatSystemMessage`
  Deprecated.
  OpenAI system message.
  `static class`
  `OpenAiChatMessage.OpenAiChatToolMessage`
  Deprecated.
  OpenAI tool message.
  `static class`
  `OpenAiChatMessage.OpenAiChatUserMessage`
  Deprecated.
  OpenAI user message.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `getContent()`
  Deprecated.
  The contents of the message.
  `String`
  `getRole()`
  Deprecated.
  The role of the messages author.

- ## Method Details

  - ### getRole

    @Nonnull String getRole()
    Deprecated.
    The role of the messages author.
    Returns:
      The role of the messages author.

  - ### getContent

    @Nullable Object getContent()
    Deprecated.
    The contents of the message.
    Returns:
      The contents of the message.