接口 Model
- 所有已知实现类:
AnthropicChatModel,ChatModelBase,DashScopeChatModel,GeminiChatModel,OllamaChatModel,OpenAIChatModel
public interface Model
-
方法概要
修饰符和类型方法说明Get model name for logging and identification.reactor.core.publisher.Flux<ChatResponse> stream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) Stream chat completion responses.
-
方法详细资料
-
stream
reactor.core.publisher.Flux<ChatResponse> stream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) Stream chat completion responses. The model internally handles message formatting using its configured formatter.- 参数:
messages- AgentScope messages to send to the modeltools- Optional list of tool schemas (null or empty if no tools)options- Optional generation options (null to use defaults)- 返回:
- Flux stream of chat responses
-
getModelName
String getModelName()Get model name for logging and identification.- 返回:
- model name
-