Class AvailableTeam

java.lang.Object
com.oracle.database.selectai.model.agent.AvailableTeam

public final class AvailableTeam extends Object
Read-only discovery metadata for an agent team available to the current database user.

An available team may be owned by another schema and therefore cannot necessarily be opened as a mutable Team handle. Use its team name, including the owner qualification when returned by the database, with SelectAIAgent.runTeam(String, com.oracle.database.selectai.model.agent.RunTeamRequest).

Since:
1.1.0
See Also:
  • Constructor Details

    • AvailableTeam

      public AvailableTeam(String teamName, String description, String rawJson)
      Creates a discovery snapshot.
      Parameters:
      teamName - team name returned by the database
      description - team description, if provided
      rawJson - original JSON object returned by the database, if provided
      Throws:
      IllegalArgumentException - when teamName is null or blank
  • Method Details

    • getTeamName

      public String getTeamName()
      Returns the team name reported by the database.
      Returns:
      team name
    • getDescription

      Returns the team description reported by the database.
      Returns:
      description, or null when none was returned
    • getRawJson

      public String getRawJson()
      Returns the original JSON object for forward-compatible access to discovery fields introduced by a newer database release.
      Returns:
      raw JSON object, or null when no JSON representation was retained