类的使用
io.agentscope.core.model.ChatResponse
使用ChatResponse的程序包
-
io.agentscope.core.formatter中ChatResponse的使用
修饰符和类型方法说明Formatter.parseResponse(TResp response, Instant startTime) Parse provider-specific response to AgentScope ChatResponse. -
io.agentscope.core.model中ChatResponse的使用
修饰符和类型方法说明ChatResponse.Builder.build()Builds a new ChatResponse instance with the set values.Creates a new instance of ChatResponse with the specified ID, copying all other fields from this instance.返回变量类型为ChatResponse的类型的io.agentscope.core.model中的方法修饰符和类型方法说明static reactor.core.publisher.Flux<ChatResponse> ModelUtils.applyTimeoutAndRetry(reactor.core.publisher.Flux<ChatResponse> responseFlux, GenerateOptions options, GenerateOptions defaultOptions, String modelName, String provider) Applies timeout and retry configuration to a model response Flux.protected abstract reactor.core.publisher.Flux<ChatResponse> ChatModelBase.doStream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) Internal implementation for streaming chat completion responses.final reactor.core.publisher.Flux<ChatResponse> ChatModelBase.stream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) Stream chat completion responses.reactor.core.publisher.Flux<ChatResponse> Model.stream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) Stream chat completion responses.类型变量类型为ChatResponse的io.agentscope.core.model中的方法参数修饰符和类型方法说明static reactor.core.publisher.Flux<ChatResponse> ModelUtils.applyTimeoutAndRetry(reactor.core.publisher.Flux<ChatResponse> responseFlux, GenerateOptions options, GenerateOptions defaultOptions, String modelName, String provider) Applies timeout and retry configuration to a model response Flux. -
io.agentscope.core.tracing中ChatResponse的使用
返回变量类型为ChatResponse的类型的io.agentscope.core.tracing中的方法修饰符和类型方法说明default reactor.core.publisher.Flux<ChatResponse> Tracer.callModel(ChatModelBase instance, List<Msg> inputMessages, List<ToolSchema> toolSchemas, GenerateOptions options, Supplier<reactor.core.publisher.Flux<ChatResponse>> modelCall) 已过时, 待删除: 此 API 元素将从以后的版本中删除。类型变量类型为ChatResponse的io.agentscope.core.tracing中的方法参数修饰符和类型方法说明default reactor.core.publisher.Flux<ChatResponse> Tracer.callModel(ChatModelBase instance, List<Msg> inputMessages, List<ToolSchema> toolSchemas, GenerateOptions options, Supplier<reactor.core.publisher.Flux<ChatResponse>> modelCall) 已过时, 待删除: 此 API 元素将从以后的版本中删除。