Record Class AutobotProviderChatResponse

java.lang.Object
java.lang.Record
com.shaft.mcp.AutobotProviderChatResponse
Record Components:
status - normalized provider status
provider - provider identifier
model - provider model
mode - assistant mode
answer - provider answer, or fallback text
summary - short summary of the structured codegen response
codeBlocks - structured code blocks returned by the provider
citedGuideUrls - official SHAFT guide URLs the provider cited
locatorAssumptions - locator assumptions the provider flagged as unverified
guardrailStatus - result of running SHAFT guardrails on the returned code
warnings - safe warnings
duration - provider duration
fallbackReason - safe failure reason

public record AutobotProviderChatResponse(String status, String provider, String model, String mode, String answer, String summary, List<AutobotCodeBlock> codeBlocks, List<String> citedGuideUrls, List<String> locatorAssumptions, String guardrailStatus, List<String> warnings, Duration duration, String fallbackReason) extends Record
Safe cloud provider chat response returned by SHAFT Autobot MCP.
  • Constructor Details

  • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • provider

      public String provider()
      Returns the value of the provider record component.
      Returns:
      the value of the provider record component
    • model

      public String model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component
    • mode

      public String mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • answer

      public String answer()
      Returns the value of the answer record component.
      Returns:
      the value of the answer record component
    • summary

      public String summary()
      Returns the value of the summary record component.
      Returns:
      the value of the summary record component
    • codeBlocks

      public List<AutobotCodeBlock> codeBlocks()
      Returns the value of the codeBlocks record component.
      Returns:
      the value of the codeBlocks record component
    • citedGuideUrls

      public List<String> citedGuideUrls()
      Returns the value of the citedGuideUrls record component.
      Returns:
      the value of the citedGuideUrls record component
    • locatorAssumptions

      public List<String> locatorAssumptions()
      Returns the value of the locatorAssumptions record component.
      Returns:
      the value of the locatorAssumptions record component
    • guardrailStatus

      public String guardrailStatus()
      Returns the value of the guardrailStatus record component.
      Returns:
      the value of the guardrailStatus record component
    • warnings

      public List<String> warnings()
      Returns the value of the warnings record component.
      Returns:
      the value of the warnings record component
    • duration

      public Duration duration()
      Returns the value of the duration record component.
      Returns:
      the value of the duration record component
    • fallbackReason

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