Package io.agentscope.extensions.aistio
Record Class AistioConfig
java.lang.Object
java.lang.Record
io.agentscope.extensions.aistio.AistioConfig
- Record Components:
controlPlane- aistiod ASDP gRPC endpoint,host:port(optional)controlPlaneHttp- aistiod REST base URL for HTTP self-register, e.g.http://localhost:8081internalToken- trusted bootstrap/workload token for first registrationregistrationCredential- Agent registration credential for an existing logical identityagentId- stable Catalog Agent UUID when registration is performed out of bandbindingId- stable external Binding UUID when registration is performed out of bandgeneration- registered AgentInstance generation when registration is performed out of bandagentKey- stable logical key registered in the control planetenant- collaboration tenantnamespace- collaboration / Kubernetes namespaceinstanceKey- this replica's stable key; defaults toHOSTNAMEthen the local host nameenableEvents- whether to persist and push the Level-2 event stream (on by default when ASDP gRPC is enabled because it is the canonical conversation history used for reconnect and replay)eventJournalDir- directory for the durable event outbox; empty uses~/.agentscope/aistio/event-journalcontractHttpPort- port for the in-process/agentscope/*contract server;0binds an ephemeral portcontractHttpHost- bind address, empty for all interfacespublicBaseUrl- URL the control plane should use to reach the contract server; empty deriveshttp://localhost:<boundPort>sessionAffinity- affinity hint the control plane uses when routing session commandsstartHttp- whether to start the contract serverstartGrpc- whether to open the ASDP upstream channelstartHttpRegister- whether to POST /api/v1/agent-registrations
public record AistioConfig(String controlPlane, String controlPlaneHttp, String internalToken, String registrationCredential, String agentId, String bindingId, long generation, String agentKey, String tenant, String namespace, String instanceKey, boolean enableEvents, String eventJournalDir, int contractHttpPort, String contractHttpHost, String publicBaseUrl, String sessionAffinity, boolean startHttp, boolean startGrpc, boolean startHttpRegister)
extends Record
Connection and reporting settings for a
SessionBridge.
Standalone BYO (recommended locally): set controlPlaneHttp + internalToken,
keep startGrpc=false. The bridge serves /agentscope/* and self-registers via
POST /api/v1/agent-registrations.
Optional ASDP gRPC: set controlPlane (host:port) and startGrpc=true.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAistioConfig(String controlPlane, String controlPlaneHttp, String internalToken, String registrationCredential, String agentId, String bindingId, long generation, String agentKey, String tenant, String namespace, String instanceKey, boolean enableEvents, String eventJournalDir, int contractHttpPort, String contractHttpHost, String publicBaseUrl, String sessionAffinity, boolean startHttp, boolean startGrpc, boolean startHttpRegister) Creates an instance of aAistioConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionagentId()Returns the value of theagentIdrecord component.agentKey()Returns the value of theagentKeyrecord component.Returns the value of thebindingIdrecord component.static AistioConfig.BuilderReturns the value of thecontractHttpHostrecord component.intReturns the value of thecontractHttpPortrecord component.Returns the value of thecontrolPlanerecord component.Returns the value of thecontrolPlaneHttprecord component.booleanReturns the value of theenableEventsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventJournalDirrecord component.longReturns the value of thegenerationrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceKeyrecord component.Returns the value of theinternalTokenrecord component.Returns the value of thenamespacerecord component.Returns the value of thepublicBaseUrlrecord component.Returns the value of theregistrationCredentialrecord component.Returns the value of thesessionAffinityrecord component.booleanReturns the value of thestartGrpcrecord component.booleanReturns the value of thestartHttprecord component.booleanReturns the value of thestartHttpRegisterrecord component.tenant()Returns the value of thetenantrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AistioConfig
public AistioConfig(String controlPlane, String controlPlaneHttp, String internalToken, String registrationCredential, String agentId, String bindingId, long generation, String agentKey, String tenant, String namespace, String instanceKey, boolean enableEvents, String eventJournalDir, int contractHttpPort, String contractHttpHost, String publicBaseUrl, String sessionAffinity, boolean startHttp, boolean startGrpc, boolean startHttpRegister) Creates an instance of aAistioConfigrecord class.- Parameters:
controlPlane- the value for thecontrolPlanerecord componentcontrolPlaneHttp- the value for thecontrolPlaneHttprecord componentinternalToken- the value for theinternalTokenrecord componentregistrationCredential- the value for theregistrationCredentialrecord componentagentId- the value for theagentIdrecord componentbindingId- the value for thebindingIdrecord componentgeneration- the value for thegenerationrecord componentagentKey- the value for theagentKeyrecord componenttenant- the value for thetenantrecord componentnamespace- the value for thenamespacerecord componentinstanceKey- the value for theinstanceKeyrecord componentenableEvents- the value for theenableEventsrecord componenteventJournalDir- the value for theeventJournalDirrecord componentcontractHttpPort- the value for thecontractHttpPortrecord componentcontractHttpHost- the value for thecontractHttpHostrecord componentpublicBaseUrl- the value for thepublicBaseUrlrecord componentsessionAffinity- the value for thesessionAffinityrecord componentstartHttp- the value for thestartHttprecord componentstartGrpc- the value for thestartGrpcrecord componentstartHttpRegister- the value for thestartHttpRegisterrecord component
-
-
Method Details
-
builder
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
controlPlane
Returns the value of thecontrolPlanerecord component.- Returns:
- the value of the
controlPlanerecord component
-
controlPlaneHttp
Returns the value of thecontrolPlaneHttprecord component.- Returns:
- the value of the
controlPlaneHttprecord component
-
internalToken
Returns the value of theinternalTokenrecord component.- Returns:
- the value of the
internalTokenrecord component
-
registrationCredential
Returns the value of theregistrationCredentialrecord component.- Returns:
- the value of the
registrationCredentialrecord component
-
agentId
Returns the value of theagentIdrecord component.- Returns:
- the value of the
agentIdrecord component
-
bindingId
Returns the value of thebindingIdrecord component.- Returns:
- the value of the
bindingIdrecord component
-
generation
public long generation()Returns the value of thegenerationrecord component.- Returns:
- the value of the
generationrecord component
-
agentKey
Returns the value of theagentKeyrecord component.- Returns:
- the value of the
agentKeyrecord component
-
tenant
Returns the value of thetenantrecord component.- Returns:
- the value of the
tenantrecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
instanceKey
Returns the value of theinstanceKeyrecord component.- Returns:
- the value of the
instanceKeyrecord component
-
enableEvents
public boolean enableEvents()Returns the value of theenableEventsrecord component.- Returns:
- the value of the
enableEventsrecord component
-
eventJournalDir
Returns the value of theeventJournalDirrecord component.- Returns:
- the value of the
eventJournalDirrecord component
-
contractHttpPort
public int contractHttpPort()Returns the value of thecontractHttpPortrecord component.- Returns:
- the value of the
contractHttpPortrecord component
-
contractHttpHost
Returns the value of thecontractHttpHostrecord component.- Returns:
- the value of the
contractHttpHostrecord component
-
publicBaseUrl
Returns the value of thepublicBaseUrlrecord component.- Returns:
- the value of the
publicBaseUrlrecord component
-
sessionAffinity
Returns the value of thesessionAffinityrecord component.- Returns:
- the value of the
sessionAffinityrecord component
-
startHttp
public boolean startHttp()Returns the value of thestartHttprecord component.- Returns:
- the value of the
startHttprecord component
-
startGrpc
public boolean startGrpc()Returns the value of thestartGrpcrecord component.- Returns:
- the value of the
startGrpcrecord component
-
startHttpRegister
public boolean startHttpRegister()Returns the value of thestartHttpRegisterrecord component.- Returns:
- the value of the
startHttpRegisterrecord component
-