Record Class SessionMetadataGetContextAttributionResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionMetadataGetContextAttributionResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionMetadataGetContextAttributionResult(SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution contextAttribution)
extends Record
Per-source attribution breakdown for the session's current context window, or null if uninitialized.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordPer-source token attribution snapshot for the current context window. -
Constructor Summary
ConstructorsConstructorDescriptionSessionMetadataGetContextAttributionResult(SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution contextAttribution) Creates an instance of aSessionMetadataGetContextAttributionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontextAttributionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionMetadataGetContextAttributionResult
public SessionMetadataGetContextAttributionResult(SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution contextAttribution) Creates an instance of aSessionMetadataGetContextAttributionResultrecord class.- Parameters:
contextAttribution- the value for thecontextAttributionrecord 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). -
contextAttribution
public SessionMetadataGetContextAttributionResult.SessionMetadataGetContextAttributionResultContextAttribution contextAttribution()Returns the value of thecontextAttributionrecord component.- Returns:
- the value of the
contextAttributionrecord component
-