Uses of Class
io.agentscope.extensions.model.ollama.options.OllamaOptions
Packages that use OllamaOptions
Package
Description
-
Uses of OllamaOptions in io.agentscope.extensions.model.ollama
Methods in io.agentscope.extensions.model.ollama with parameters of type OllamaOptionsModifier and TypeMethodDescriptionio.agentscope.core.model.ChatResponseOllamaChatModel.chat(List<io.agentscope.core.message.Msg> messages, OllamaOptions options) Chat with the model using Ollama-specific options.OllamaChatModel.Builder.defaultOptions(OllamaOptions defaultOptions) Constructors in io.agentscope.extensions.model.ollama with parameters of type OllamaOptionsModifierConstructorDescriptionOllamaChatModel(String modelName, String baseUrl, OllamaOptions defaultOptions) Creates a new OllamaChatModel with default settings.OllamaChatModel(String modelName, String baseUrl, OllamaOptions defaultOptions, io.agentscope.core.formatter.Formatter<OllamaMessage, OllamaResponse, OllamaRequest> formatter, io.agentscope.core.model.transport.HttpTransport httpTransport) Creates a new OllamaChatModel.OllamaChatModel(String modelName, String baseUrl, OllamaOptions defaultOptions, io.agentscope.core.formatter.Formatter<OllamaMessage, OllamaResponse, OllamaRequest> formatter, io.agentscope.core.model.transport.HttpTransport httpTransport, boolean stream) Creates a new OllamaChatModel with an explicit streaming mode. -
Uses of OllamaOptions in io.agentscope.extensions.model.ollama.formatter
Methods in io.agentscope.extensions.model.ollama.formatter with parameters of type OllamaOptionsModifier and TypeMethodDescriptionvoidOllamaChatFormatter.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<io.agentscope.core.model.ToolSchema> tools, io.agentscope.core.model.ToolChoice toolChoice) Build a complete OllamaRequest for the API call.OllamaMultiAgentFormatter.buildRequest(String model, List<OllamaMessage> messages, boolean stream, OllamaOptions options, OllamaOptions defaultOptions, List<io.agentscope.core.model.ToolSchema> tools, io.agentscope.core.model.ToolChoice toolChoice) Build a complete OllamaRequest for the API call. -
Uses of OllamaOptions in io.agentscope.extensions.model.ollama.options
Methods in io.agentscope.extensions.model.ollama.options that return OllamaOptionsModifier and TypeMethodDescriptionOllamaOptions.Builder.build()OllamaOptions.copy()static OllamaOptionsOllamaOptions.fromGenerateOptions(io.agentscope.core.model.GenerateOptions genOptions) Converts genericGenerateOptionstoOllamaOptions.static OllamaOptionsOllamaOptions.fromOptions(OllamaOptions fromOptions) OllamaOptions.merge(io.agentscope.core.model.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.Methods in io.agentscope.extensions.model.ollama.options with parameters of type OllamaOptionsModifier and TypeMethodDescriptionstatic OllamaOptionsOllamaOptions.fromOptions(OllamaOptions fromOptions) OllamaOptions.merge(OllamaOptions other) Merges the given options into a new instance, with the given options taking precedence.