Class ConversationPrompt

java.lang.Object
com.oracle.database.selectai.model.ConversationPrompt

public final class ConversationPrompt extends Object
Read-only metadata row for a prompt stored in a Select AI conversation.

Instances are populated from USER_CLOUD_AI_CONVERSATION_PROMPTS and returned by Conversation.listPrompts(). Prompt metadata can contain caller-provided or generated content, including conversation titles, prompt text, prompt responses, client identifiers, and client IP addresses. Applications should avoid logging full prompt metadata unless application policy permits it.

See Also:
  • Method Details

    • builder

      Creates a builder for conversation prompt metadata.
      Returns:
      new builder
    • getConversationPromptId

      Returns the conversation prompt identifier.
      Returns:
      conversation prompt identifier, or null when unavailable
    • getConversationId

      Returns the conversation identifier associated with this prompt.
      Returns:
      conversation identifier, or null when unavailable
    • getConversationTitle

      Returns the conversation title captured with this prompt row.

      This value may contain caller-provided or customer content.

      Returns:
      conversation title, or null when unavailable
    • getProfileName

      Returns the Select AI profile used for this prompt.
      Returns:
      profile name, or null when unavailable
    • getPromptAction

      Returns the prompt action used for this prompt.
      Returns:
      prompt action such as chat, narrate, or showsql
    • getPrompt

      public String getPrompt()
      Returns the prompt text.

      This value may contain caller-provided or customer content.

      Returns:
      prompt text, or null when unavailable
    • getPromptResponse

      Returns the prompt response text.

      This value may contain generated response text or customer content.

      Returns:
      prompt response text, or null when unavailable
    • getCreated

      Returns the prompt row creation timestamp.
      Returns:
      defensive copy of creation timestamp, or null when unavailable
    • getModified

      Returns the prompt row modification timestamp.
      Returns:
      defensive copy of modification timestamp, or null when unavailable
    • getClientIdentifier

      Returns the database client identifier captured with this prompt.
      Returns:
      client identifier, or null when unavailable
    • getClientIp

      public String getClientIp()
      Returns the client IP address captured by the database.

      This value may be customer or client network metadata.

      Returns:
      client IP address, or null when unavailable
    • getSid

      public Long getSid()
      Returns the database session identifier captured with this prompt.
      Returns:
      database session identifier, or null when unavailable
    • getSerialNumber

      Returns the database session serial number captured with this prompt.
      Returns:
      database session serial number, or null when unavailable
    • toString

      public String toString()
      Returns a non-sensitive summary of this prompt metadata.
      Overrides:
      toString in class Object
      Returns:
      summary string that omits prompt text, prompt response, and title