Record Class AhpSessionCreateRequest
java.lang.Object
java.lang.Record
com.github.copilot.AhpSessionCreateRequest
- Record Components:
config- host-selected session settingscancellation- completes normally when the participation ends; a late factory result is still delivered to the release callback
@CopilotExperimental
public record AhpSessionCreateRequest(SessionConfig config, CompletionStage<Void> cancellation)
extends Record
An application-owned AHP session creation request. Preserve the supplied
settings when adding application tools, prompts, permissions, and hooks.
-
Constructor Summary
ConstructorsConstructorDescriptionAhpSessionCreateRequest(SessionConfig config, CompletionStage<Void> cancellation) Creates an instance of aAhpSessionCreateRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecancellationrecord component.config()Returns the value of theconfigrecord 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
-
AhpSessionCreateRequest
Creates an instance of aAhpSessionCreateRequestrecord class.- Parameters:
config- the value for theconfigrecord componentcancellation- the value for thecancellationrecord 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). -
config
-
cancellation
Returns the value of thecancellationrecord component.- Returns:
- the value of the
cancellationrecord component
-