类的使用
io.agentscope.core.model.ollama.OllamaOptions
使用OllamaOptions的程序包
-
io.agentscope.core.formatter.ollama中OllamaOptions的使用
修饰符和类型方法说明voidOllamaChatFormatter.applyOptions(OllamaRequest request, OllamaOptions options, OllamaOptions defaultOptions) Apply OllamaOptions to the request.voidOllamaMultiAgentFormatter.applyOptions(OllamaRequest request, OllamaOptions options, OllamaOptions defaultOptions) Apply OllamaOptions to the request.voidOllamaToolsHelper.applyOptions(OllamaRequest request, OllamaOptions options, OllamaOptions defaultOptions) Apply OllamaOptions to OllamaRequest.OllamaChatFormatter.buildRequest(String model, List<OllamaMessage> messages, boolean stream, OllamaOptions options, OllamaOptions defaultOptions, List<ToolSchema> tools, ToolChoice toolChoice) Build a complete OllamaRequest for the API call.OllamaMultiAgentFormatter.buildRequest(String model, List<OllamaMessage> messages, boolean stream, OllamaOptions options, OllamaOptions defaultOptions, List<ToolSchema> tools, ToolChoice toolChoice) Build a complete OllamaRequest for the API call. -
io.agentscope.core.model中OllamaOptions的使用
参数类型为OllamaOptions的io.agentscope.core.model中的方法修饰符和类型方法说明OllamaChatModel.chat(List<Msg> messages, OllamaOptions options) Chat with the model using Ollama-specific options.OllamaChatModel.Builder.defaultOptions(OllamaOptions defaultOptions) 参数类型为OllamaOptions的io.agentscope.core.model中的构造器限定符构造器说明OllamaChatModel(String modelName, String baseUrl, OllamaOptions defaultOptions) Creates a new OllamaChatModel with default settings.OllamaChatModel(String modelName, String baseUrl, OllamaOptions defaultOptions, Formatter<OllamaMessage, OllamaResponse, OllamaRequest> formatter, HttpTransport httpTransport) Creates a new OllamaChatModel. -
io.agentscope.core.model.ollama中OllamaOptions的使用
修饰符和类型方法说明OllamaOptions.Builder.build()OllamaOptions.copy()static OllamaOptionsOllamaOptions.fromGenerateOptions(GenerateOptions genOptions) Converts genericGenerateOptionstoOllamaOptions.static OllamaOptionsOllamaOptions.fromOptions(OllamaOptions fromOptions) OllamaOptions.merge(GenerateOptions other) Merges the givenGenerateOptionsinto a new instance, with the given options taking precedence.OllamaOptions.merge(OllamaOptions other) Merges the given options into a new instance, with the given options taking precedence.修饰符和类型方法说明static OllamaOptionsOllamaOptions.fromOptions(OllamaOptions fromOptions) OllamaOptions.merge(OllamaOptions other) Merges the given options into a new instance, with the given options taking precedence.