Record Class ToolResultExpanded
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ToolResultExpanded
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record ToolResultExpanded(String textResultForLlm, ToolResultType resultType, List<ExternalToolTextResultForLlmBinaryResultsForLlm> binaryResultsForLlm, String sessionLog, String error, Object toolTelemetry, Boolean skipLargeOutputProcessing, List<ToolResultNewMessage> newMessages, List<Object> contents, List<String> toolReferences, List<Object> citableSources, Object skillInvocation, Boolean postToolUseFailureHooksProcessed, Object uiResource, Map<String,Object> mcpMeta, Object structuredContent, TaskCompletionDecision taskCompletionDecision)
extends Record
Expanded canonical result returned by a session tool.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionToolResultExpanded(String textResultForLlm, ToolResultType resultType, List<ExternalToolTextResultForLlmBinaryResultsForLlm> binaryResultsForLlm, String sessionLog, String error, Object toolTelemetry, Boolean skipLargeOutputProcessing, List<ToolResultNewMessage> newMessages, List<Object> contents, List<String> toolReferences, List<Object> citableSources, Object skillInvocation, Boolean postToolUseFailureHooksProcessed, Object uiResource, Map<String, Object> mcpMeta, Object structuredContent, TaskCompletionDecision taskCompletionDecision) Creates an instance of aToolResultExpandedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebinaryResultsForLlmrecord component.Returns the value of thecitableSourcesrecord component.contents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.mcpMeta()Returns the value of themcpMetarecord component.Returns the value of thenewMessagesrecord component.Returns the value of thepostToolUseFailureHooksProcessedrecord component.Returns the value of theresultTyperecord component.Returns the value of thesessionLogrecord component.Returns the value of theskillInvocationrecord component.Returns the value of theskipLargeOutputProcessingrecord component.Returns the value of thestructuredContentrecord component.Returns the value of thetaskCompletionDecisionrecord component.Returns the value of thetextResultForLlmrecord component.Returns the value of thetoolReferencesrecord component.Returns the value of thetoolTelemetryrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuiResourcerecord component.
-
Constructor Details
-
ToolResultExpanded
public ToolResultExpanded(String textResultForLlm, ToolResultType resultType, List<ExternalToolTextResultForLlmBinaryResultsForLlm> binaryResultsForLlm, String sessionLog, String error, Object toolTelemetry, Boolean skipLargeOutputProcessing, List<ToolResultNewMessage> newMessages, List<Object> contents, List<String> toolReferences, List<Object> citableSources, Object skillInvocation, Boolean postToolUseFailureHooksProcessed, Object uiResource, Map<String, Object> mcpMeta, Object structuredContent, TaskCompletionDecision taskCompletionDecision) Creates an instance of aToolResultExpandedrecord class.- Parameters:
textResultForLlm- the value for thetextResultForLlmrecord componentresultType- the value for theresultTyperecord componentbinaryResultsForLlm- the value for thebinaryResultsForLlmrecord componentsessionLog- the value for thesessionLogrecord componenterror- the value for theerrorrecord componenttoolTelemetry- the value for thetoolTelemetryrecord componentskipLargeOutputProcessing- the value for theskipLargeOutputProcessingrecord componentnewMessages- the value for thenewMessagesrecord componentcontents- the value for thecontentsrecord componenttoolReferences- the value for thetoolReferencesrecord componentcitableSources- the value for thecitableSourcesrecord componentskillInvocation- the value for theskillInvocationrecord componentpostToolUseFailureHooksProcessed- the value for thepostToolUseFailureHooksProcessedrecord componentuiResource- the value for theuiResourcerecord componentmcpMeta- the value for themcpMetarecord componentstructuredContent- the value for thestructuredContentrecord componenttaskCompletionDecision- the value for thetaskCompletionDecisionrecord component
-
-
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). -
textResultForLlm
Returns the value of thetextResultForLlmrecord component.- Returns:
- the value of the
textResultForLlmrecord component
-
resultType
Returns the value of theresultTyperecord component.- Returns:
- the value of the
resultTyperecord component
-
binaryResultsForLlm
Returns the value of thebinaryResultsForLlmrecord component.- Returns:
- the value of the
binaryResultsForLlmrecord component
-
sessionLog
Returns the value of thesessionLogrecord component.- Returns:
- the value of the
sessionLogrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
toolTelemetry
Returns the value of thetoolTelemetryrecord component.- Returns:
- the value of the
toolTelemetryrecord component
-
skipLargeOutputProcessing
Returns the value of theskipLargeOutputProcessingrecord component.- Returns:
- the value of the
skipLargeOutputProcessingrecord component
-
newMessages
Returns the value of thenewMessagesrecord component.- Returns:
- the value of the
newMessagesrecord component
-
contents
-
toolReferences
-
citableSources
-
skillInvocation
Returns the value of theskillInvocationrecord component.- Returns:
- the value of the
skillInvocationrecord component
-
postToolUseFailureHooksProcessed
Returns the value of thepostToolUseFailureHooksProcessedrecord component.- Returns:
- the value of the
postToolUseFailureHooksProcessedrecord component
-
uiResource
Returns the value of theuiResourcerecord component.- Returns:
- the value of the
uiResourcerecord component
-
mcpMeta
-
structuredContent
Returns the value of thestructuredContentrecord component.- Returns:
- the value of the
structuredContentrecord component
-
taskCompletionDecision
Returns the value of thetaskCompletionDecisionrecord component.- Returns:
- the value of the
taskCompletionDecisionrecord component
-