类的使用
io.agentscope.core.agent.StreamOptions
使用StreamOptions的程序包
-
io.agentscope.core.agent中StreamOptions的使用
修饰符和类型方法说明StreamOptions.Builder.build()static StreamOptionsStreamOptions.defaults()Default options: All event types, incremental mode, include both reasoning chunk and reasoning result.参数类型为StreamOptions的io.agentscope.core.agent中的方法修饰符和类型方法说明final reactor.core.publisher.Flux<Event> AgentBase.stream(List<Msg> msgs, StreamOptions options) Stream with multiple input messages.final reactor.core.publisher.Flux<Event> AgentBase.stream(List<Msg> msgs, StreamOptions options, com.fasterxml.jackson.databind.JsonNode schema) Stream with multiple input messages using a JSON schema.final reactor.core.publisher.Flux<Event> AgentBase.stream(List<Msg> msgs, StreamOptions options, Class<?> structuredModel) Stream with multiple input messages.default reactor.core.publisher.Flux<Event> StreamableAgent.stream(StreamOptions options) Stream execution events based on current state without adding new input.default reactor.core.publisher.Flux<Event> StreamableAgent.stream(StreamOptions options, Class<?> structuredModel) Stream execution events with structured output support based on current state.default reactor.core.publisher.Flux<Event> StreamableAgent.stream(Msg msg, StreamOptions options) Stream execution events for a single message.default reactor.core.publisher.Flux<Event> StreamableAgent.stream(Msg msg, StreamOptions options, com.fasterxml.jackson.databind.JsonNode schema) Stream execution events for a single message with JSON schema support.default reactor.core.publisher.Flux<Event> StreamableAgent.stream(Msg msg, StreamOptions options, Class<?> structuredModel) Stream execution events for a single message with structured output support.reactor.core.publisher.Flux<Event> StreamableAgent.stream(List<Msg> msgs, StreamOptions options) Stream execution events in real-time as the agent processes the input.reactor.core.publisher.Flux<Event> StreamableAgent.stream(List<Msg> msgs, StreamOptions options, com.fasterxml.jackson.databind.JsonNode schema) Stream execution events with JSON schema support.reactor.core.publisher.Flux<Event> StreamableAgent.stream(List<Msg> msgs, StreamOptions options, Class<?> structuredModel) Stream execution events with structured output support. -
io.agentscope.core.pipeline中StreamOptions的使用
参数类型为StreamOptions的io.agentscope.core.pipeline中的方法修饰符和类型方法说明reactor.core.publisher.Flux<Event> FanoutPipeline.stream(Msg input, StreamOptions options) Stream execution events from all agents with specified options.reactor.core.publisher.Flux<Event> FanoutPipeline.stream(Msg input, StreamOptions options, Class<?> structuredOutputClass) Stream execution events from all agents with structured output support. -
io.agentscope.core.tool.subagent中StreamOptions的使用
修饰符和类型方法说明SubAgentConfig.Builder.streamOptions(StreamOptions streamOptions) Sets the stream options for event forwarding.