Module com.github.copilot.java
Package com.github.copilot.generated.rpc
Record Class AgentRegistrySpawnParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.AgentRegistrySpawnParams
@Generated("copilot-sdk-codegen")
public record AgentRegistrySpawnParams(String cwd, String agentName, String model, String name, AgentRegistrySpawnPermissionMode permissionMode, String initialPrompt)
extends Record
Inputs to spawn a managed-server child via the controller's spawn delegate.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionAgentRegistrySpawnParams(String cwd, String agentName, String model, String name, AgentRegistrySpawnPermissionMode permissionMode, String initialPrompt) Creates an instance of aAgentRegistrySpawnParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentNamerecord component.cwd()Returns the value of thecwdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinitialPromptrecord component.model()Returns the value of themodelrecord component.name()Returns the value of thenamerecord component.Returns the value of thepermissionModerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentRegistrySpawnParams
public AgentRegistrySpawnParams(String cwd, String agentName, String model, String name, AgentRegistrySpawnPermissionMode permissionMode, String initialPrompt) Creates an instance of aAgentRegistrySpawnParamsrecord class.- Parameters:
cwd- the value for thecwdrecord componentagentName- the value for theagentNamerecord componentmodel- the value for themodelrecord componentname- the value for thenamerecord componentpermissionMode- the value for thepermissionModerecord componentinitialPrompt- the value for theinitialPromptrecord component
-
-
Method Details
-
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. -
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. -
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). -
cwd
Returns the value of thecwdrecord component.- Returns:
- the value of the
cwdrecord component
-
agentName
Returns the value of theagentNamerecord component.- Returns:
- the value of the
agentNamerecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
permissionMode
Returns the value of thepermissionModerecord component.- Returns:
- the value of the
permissionModerecord component
-
initialPrompt
Returns the value of theinitialPromptrecord component.- Returns:
- the value of the
initialPromptrecord component
-