类的使用
io.agentscope.core.model.GenerateOptions
使用GenerateOptions的程序包
程序包
说明
-
io.agentscope.core中GenerateOptions的使用
修饰符和类型方法说明protected GenerateOptionsReActAgent.buildGenerateOptions()ReActAgent.getGenerateOptions()Gets the configured generation options for this agent.参数类型为GenerateOptions的io.agentscope.core中的方法修饰符和类型方法说明ReActAgent.Builder.generateOptions(GenerateOptions generateOptions) Sets the generation options for model API calls. -
io.agentscope.core.formatter中GenerateOptions的使用
修饰符和类型方法说明voidFormatter.applyOptions(TParams paramsBuilder, GenerateOptions options, GenerateOptions defaultOptions) Apply generation options to provider-specific request parameters.protected <T> TAbstractBaseFormatter.getOptionOrDefault(GenerateOptions options, GenerateOptions defaultOptions, Function<GenerateOptions, T> getter) Get an option value from options or fall back to defaultOptions.类型变量类型为GenerateOptions的io.agentscope.core.formatter中的方法参数修饰符和类型方法说明protected <T> TAbstractBaseFormatter.getOptionOrDefault(GenerateOptions options, GenerateOptions defaultOptions, Function<GenerateOptions, T> getter) Get an option value from options or fall back to defaultOptions. -
io.agentscope.core.hook中GenerateOptions的使用
修饰符和类型方法说明PreReasoningEvent.getEffectiveGenerateOptions()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the effective generation options.PreSummaryEvent.getEffectiveGenerateOptions()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the effective generation options.final GenerateOptionsReasoningEvent.getGenerateOptions()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the generation options.final GenerateOptionsSummaryEvent.getGenerateOptions()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the generation options.参数类型为GenerateOptions的io.agentscope.core.hook中的方法修饰符和类型方法说明reactor.core.publisher.Mono<PostSummaryEvent> LegacyHookDispatcher.firePostSummary(Msg msg, GenerateOptions generateOptions, String modelName) 已过时, 待删除: 此 API 元素将从以后的版本中删除。reactor.core.publisher.Mono<PreSummaryEvent> LegacyHookDispatcher.firePreSummary(List<Msg> msgs, GenerateOptions generateOptions, String modelName, int maxIters, Msg systemMsg) 已过时, 待删除: 此 API 元素将从以后的版本中删除。reactor.core.publisher.Mono<Void> LegacyHookDispatcher.fireSummaryChunk(Msg chunkMsg, io.agentscope.core.agent.accumulator.ReasoningContext context, GenerateOptions generateOptions, String modelName) 已过时, 待删除: 此 API 元素将从以后的版本中删除。voidPreReasoningEvent.setGenerateOptions(GenerateOptions generateOptions) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Set custom generation options for this reasoning call.voidPreSummaryEvent.setGenerateOptions(GenerateOptions generateOptions) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Set custom generation options for this summary call.参数类型为GenerateOptions的io.agentscope.core.hook中的构造器限定符构造器说明PostReasoningEvent(Agent agent, String modelName, GenerateOptions generateOptions, Msg reasoningMessage) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for PostReasoningEvent.PostSummaryEvent(Agent agent, String modelName, GenerateOptions generateOptions, Msg summaryMessage) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for PostSummaryEvent.PreReasoningEvent(Agent agent, String modelName, GenerateOptions generateOptions, List<Msg> inputMessages) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for PreReasoningEvent.PreSummaryEvent(Agent agent, String modelName, GenerateOptions generateOptions, List<Msg> inputMessages, int maxIterations, int currentIteration) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for PreSummaryEvent.ReasoningChunkEvent(Agent agent, String modelName, GenerateOptions generateOptions, Msg incrementalChunk, Msg accumulated) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for ReasoningChunkEvent.protectedReasoningEvent(HookEventType type, Agent agent, String modelName, GenerateOptions generateOptions) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for ReasoningEvent.SummaryChunkEvent(Agent agent, String modelName, GenerateOptions generateOptions, Msg incrementalChunk, Msg accumulated) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for SummaryChunkEvent.protectedSummaryEvent(HookEventType type, Agent agent, String modelName, GenerateOptions generateOptions) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for SummaryEvent. -
io.agentscope.core.middleware中GenerateOptions的使用
修饰符和类型方法说明ModelCallInput.options()返回options记录组件的值。ReasoningInput.options()返回options记录组件的值。参数类型为GenerateOptions的io.agentscope.core.middleware中的构造器限定符构造器说明ModelCallInput(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options, Model model) 创建ModelCallInput记录类的实例。ReasoningInput(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) 创建ReasoningInput记录类的实例。 -
io.agentscope.core.model中GenerateOptions的使用
修饰符和类型方法说明GenerateOptions.Builder.build()Builds a new GenerateOptions instance with the set values.static GenerateOptionsModelUtils.ensureDefaultExecutionConfig(GenerateOptions options) Ensures GenerateOptions has MODEL_DEFAULTS for executionConfig applied.static GenerateOptionsGenerateOptions.mergeOptions(GenerateOptions primary, GenerateOptions fallback) Merges two GenerateOptions instances, with primary options taking precedence.参数类型为GenerateOptions的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.static GenerateOptionsModelUtils.ensureDefaultExecutionConfig(GenerateOptions options) Ensures GenerateOptions has MODEL_DEFAULTS for executionConfig applied.static GenerateOptionsGenerateOptions.mergeOptions(GenerateOptions primary, GenerateOptions fallback) Merges two GenerateOptions instances, with primary options taking precedence.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. -
io.agentscope.core.tracing中GenerateOptions的使用
修饰符和类型方法说明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 元素将从以后的版本中删除。