Class BailianMemoryClient.Builder
java.lang.Object
io.agentscope.core.memory.bailian.BailianMemoryClient.Builder
- Enclosing class:
- BailianMemoryClient
Builder for
BailianMemoryClient.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiBaseUrl(String apiBaseUrl) Sets the base URL for the Bailian API.Sets the API key for authentication.build()Builds theBailianMemoryClientinstance.httpTransport(io.agentscope.core.model.transport.HttpTransport httpTransport) Sets the HTTP transport for API requests.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiBaseUrl
Sets the base URL for the Bailian API.- Parameters:
apiBaseUrl- the base URL for the Bailian API- Returns:
- this builder
-
apiKey
Sets the API key for authentication.- Parameters:
apiKey- the Bailian API key- Returns:
- this builder
-
httpTransport
public BailianMemoryClient.Builder httpTransport(io.agentscope.core.model.transport.HttpTransport httpTransport) Sets the HTTP transport for API requests.If not specified, the default HTTP transport from
HttpTransportFactory.getDefault()will be used.- Parameters:
httpTransport- the HTTP transport- Returns:
- this builder
-
build
Builds theBailianMemoryClientinstance.- Returns:
- a new
BailianMemoryClientinstance
-