Class ModelDescription.Builder
java.lang.Object
dev.langchain4j.model.catalog.ModelDescription.Builder
- Enclosing class:
ModelDescription
- Since:
- 1.10.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Constructs a ModelDescription instance.description(String description) displayName(String name) Required.maxInputTokens(Integer maxInputTokens) Maximum number of input tokens the model can accept in a single request.maxOutputTokens(Integer maxOutputTokens) Maximum number of tokens the model can generate in a single response.Required.provider(ModelProvider provider) Required.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Required. Unique identifier for the model as defined by the provider. -
displayName
Required. Human-readable display name for the model. -
description
-
provider
Required. The provider that offers this model. -
type
-
maxInputTokens
Maximum number of input tokens the model can accept in a single request. -
maxOutputTokens
Maximum number of tokens the model can generate in a single response. -
createdAt
-
owner
-
build
Constructs a ModelDescription instance.- Throws:
NullPointerException- if id, name, or provider isnull
-