类的使用
io.agentscope.core.formatter.ollama.dto.OllamaMessage
使用OllamaMessage的程序包
程序包
说明
-
io.agentscope.core.formatter.ollama中OllamaMessage的使用
修饰符和类型方法说明OllamaMessageConverter.convertMessage(Msg msg) Converts an AgentScope Msg object to an OllamaMessage object.OllamaConversationMerger.mergeToMessage(List<Msg> msgs, Function<Msg, String> nameExtractor, Function<List<ContentBlock>, String> toolResultConverter, String historyPrompt) 返回变量类型为OllamaMessage的类型的io.agentscope.core.formatter.ollama中的方法类型变量类型为OllamaMessage的io.agentscope.core.formatter.ollama中的方法参数修饰符和类型方法说明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.formatter.ollama.dto中OllamaMessage的使用
返回变量类型为OllamaMessage的类型的io.agentscope.core.formatter.ollama.dto中的方法类型变量类型为OllamaMessage的io.agentscope.core.formatter.ollama.dto中的方法参数修饰符和类型方法说明OllamaRequest.Builder.messages(List<OllamaMessage> messages) voidOllamaRequest.setMessages(List<OllamaMessage> messages) -
io.agentscope.core.model中OllamaMessage的使用
类型变量类型为OllamaMessage的io.agentscope.core.model中的方法参数修饰符和类型方法说明OllamaChatModel.Builder.formatter(Formatter<OllamaMessage, OllamaResponse, OllamaRequest> formatter) 类型变量类型为OllamaMessage的io.agentscope.core.model中的构造器参数限定符构造器说明OllamaChatModel(String modelName, String baseUrl, OllamaOptions defaultOptions, Formatter<OllamaMessage, OllamaResponse, OllamaRequest> formatter, HttpTransport httpTransport) Creates a new OllamaChatModel.