Class NacosA2aRegistryProperties.Builder
java.lang.Object
io.agentscope.core.nacos.a2a.registry.NacosA2aRegistryProperties.Builder
- Enclosing class:
- NacosA2aRegistryProperties
The Builder for
NacosA2aRegistryProperties.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a new instance ofNacosA2aRegistryProperties.enabledRegisterEndpoint(boolean enabledRegisterEndpoint) Sets whether to automatically register all Transport as Endpoints for this A2A service.overwritePreferredTransport(String overwritePreferredTransport) Sets the transport to use for overriding the preferredTransport and URL in the Agent Card.setAsLatest(boolean setAsLatest) Sets whether to register the A2A service as the latest version.
-
Method Details
-
setAsLatest
Sets whether to register the A2A service as the latest version.- Parameters:
setAsLatest-trueto register as latest version,falseotherwise- Returns:
- the builder instance for method chaining
-
enabledRegisterEndpoint
Sets whether to automatically register all Transport as Endpoints for this A2A service.- Parameters:
enabledRegisterEndpoint-trueto enable endpoint registration,falseto disable- Returns:
- the builder instance for method chaining
-
overwritePreferredTransport
public NacosA2aRegistryProperties.Builder overwritePreferredTransport(String overwritePreferredTransport) Sets the transport to use for overriding the preferredTransport and URL in the Agent Card.- Parameters:
overwritePreferredTransport- the transport to use for overriding, ornullto not override- Returns:
- the builder instance for method chaining
-
build
Build a new instance ofNacosA2aRegistryProperties.- Returns:
- new instance of
NacosA2aRegistryProperties
-