Record Class RuntimeStatus

java.lang.Object
java.lang.Record
ai.redouble.demo.RuntimeStatus

public record RuntimeStatus(boolean dispatcherRunning, List<ProviderStatus> providers, DemoCatalog.Status catalog, List<CatalogEntry> entries, Map<String, Map<String,String>> serving, Map<String, Map<String,String>> servingRefusals, String corpus, String corpusAsOf) extends Record
The whole status panel in one shape: whether the dispatcher runs, the providers, the catalog summary, the catalog entries, per grade the entry the runtime serves each kind of request with now (text, images, documents) and, where it serves none, its refusal in its own words, the shipped corpus path the page prefills, and the day the corpus's price story is answered for, which the pricing steps open on.
Since:
0.1 (2026-09-24)
Author:
Andrey Santrosyan
  • Constructor Details

    • RuntimeStatus

      public RuntimeStatus(boolean dispatcherRunning, List<ProviderStatus> providers, DemoCatalog.Status catalog, List<CatalogEntry> entries, Map<String, Map<String,String>> serving, Map<String, Map<String,String>> servingRefusals, String corpus, String corpusAsOf)
      Creates an instance of a RuntimeStatus record class.
      Parameters:
      dispatcherRunning - the value for the dispatcherRunning record component
      providers - the value for the providers record component
      catalog - the value for the catalog record component
      entries - the value for the entries record component
      serving - the value for the serving record component
      servingRefusals - the value for the servingRefusals record component
      corpus - the value for the corpus record component
      corpusAsOf - the value for the corpusAsOf record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • dispatcherRunning

      public boolean dispatcherRunning()
      Returns the value of the dispatcherRunning record component.
      Returns:
      the value of the dispatcherRunning record component
    • providers

      public List<ProviderStatus> providers()
      Returns the value of the providers record component.
      Returns:
      the value of the providers record component
    • catalog

      public DemoCatalog.Status catalog()
      Returns the value of the catalog record component.
      Returns:
      the value of the catalog record component
    • entries

      public List<CatalogEntry> entries()
      Returns the value of the entries record component.
      Returns:
      the value of the entries record component
    • serving

      public Map<String, Map<String,String>> serving()
      Returns the value of the serving record component.
      Returns:
      the value of the serving record component
    • servingRefusals

      public Map<String, Map<String,String>> servingRefusals()
      Returns the value of the servingRefusals record component.
      Returns:
      the value of the servingRefusals record component
    • corpus

      public String corpus()
      Returns the value of the corpus record component.
      Returns:
      the value of the corpus record component
    • corpusAsOf

      public String corpusAsOf()
      Returns the value of the corpusAsOf record component.
      Returns:
      the value of the corpusAsOf record component