Record Class AutobotProviderChatResponse
java.lang.Object
java.lang.Record
com.shaft.mcp.AutobotProviderChatResponse
- Record Components:
status- normalized provider statusprovider- provider identifiermodel- provider modelmode- assistant modeanswer- provider answer, or fallback textsummary- short summary of the structured codegen responsecodeBlocks- structured code blocks returned by the providercitedGuideUrls- official SHAFT guide URLs the provider citedlocatorAssumptions- locator assumptions the provider flagged as unverifiedguardrailStatus- result of running SHAFT guardrails on the returned codewarnings- safe warningsduration- provider durationfallbackReason- 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 Summary
ConstructorsConstructorDescriptionAutobotProviderChatResponse(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) Creates an immutable response.AutobotProviderChatResponse(String status, String provider, String model, String mode, String answer, List<String> warnings, Duration duration, String fallbackReason) Compatibility constructor for callers compiled against the answer-only response shape. -
Method Summary
Modifier and TypeMethodDescriptionanswer()Returns the value of theanswerrecord component.Returns the value of thecitedGuideUrlsrecord component.Returns the value of thecodeBlocksrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefallbackReasonrecord component.Returns the value of theguardrailStatusrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelocatorAssumptionsrecord component.mode()Returns the value of themoderecord component.model()Returns the value of themodelrecord component.provider()Returns the value of theproviderrecord component.status()Returns the value of thestatusrecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
AutobotProviderChatResponse
public 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) Creates an immutable response. -
AutobotProviderChatResponse
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
status
-
provider
-
model
-
mode
-
answer
-
summary
-
codeBlocks
Returns the value of thecodeBlocksrecord component.- Returns:
- the value of the
codeBlocksrecord component
-
citedGuideUrls
Returns the value of thecitedGuideUrlsrecord component.- Returns:
- the value of the
citedGuideUrlsrecord component
-
locatorAssumptions
Returns the value of thelocatorAssumptionsrecord component.- Returns:
- the value of the
locatorAssumptionsrecord component
-
guardrailStatus
Returns the value of theguardrailStatusrecord component.- Returns:
- the value of the
guardrailStatusrecord component
-
warnings
-
duration
-
fallbackReason
Returns the value of thefallbackReasonrecord component.- Returns:
- the value of the
fallbackReasonrecord component
-