类的使用
io.agentscope.core.model.ModelCreationContext
使用ModelCreationContext的程序包
-
io.agentscope.core.model中ModelCreationContext的使用
修饰符和类型方法说明ModelCreationContext.Builder.build()static ModelCreationContextModelCreationContext.empty()修饰符和类型方法说明static booleanModelRegistry.canResolve(String modelId, ModelCreationContext context) ReturnstrueifModelRegistry.resolve(String, ModelCreationContext)can find a named model or a matching factory/provider pattern (without creating an instance).ModelRegistry.ContextModelFactory.create(String modelId, ModelCreationContext context) static ModelModelRegistry.resolve(String modelId, ModelCreationContext context) Resolves aModelfor the given id and creation context: named registration first, then cache when enabled, then user factories (newest first), then SPI providers. -
io.agentscope.core.model.spi中ModelCreationContext的使用
修饰符和类型方法说明default ModelModelProvider.create(String modelId, ModelCreationContext context) Creates a model for the full model id using a provider-neutral context.default booleanModelProvider.supports(String modelId, ModelCreationContext context) Returns whether this provider can create a model for the full model id and context.