Class NacosA2aRegistryProperties.Builder

java.lang.Object
io.agentscope.core.nacos.a2a.registry.NacosA2aRegistryProperties.Builder
Enclosing class:
NacosA2aRegistryProperties

public static class NacosA2aRegistryProperties.Builder extends Object
  • Method Details

    • setAsLatest

      public NacosA2aRegistryProperties.Builder setAsLatest(boolean setAsLatest)
      Sets whether to register the A2A service as the latest version.
      Parameters:
      setAsLatest - true to register as latest version, false otherwise
      Returns:
      the builder instance for method chaining
    • enabledRegisterEndpoint

      public NacosA2aRegistryProperties.Builder enabledRegisterEndpoint(boolean enabledRegisterEndpoint)
      Sets whether to automatically register all Transport as Endpoints for this A2A service.
      Parameters:
      enabledRegisterEndpoint - true to enable endpoint registration, false to 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, or null to not override
      Returns:
      the builder instance for method chaining
    • build

      Build a new instance of NacosA2aRegistryProperties.
      Returns:
      new instance of NacosA2aRegistryProperties