接口的使用
io.agentscope.core.middleware.MiddlewareBase
使用MiddlewareBase的程序包
程序包
说明
-
io.agentscope.core中MiddlewareBase的使用
返回变量类型为MiddlewareBase的类型的io.agentscope.core中的方法参数类型为MiddlewareBase的io.agentscope.core中的方法修饰符和类型方法说明ReActAgent.Builder.middleware(MiddlewareBase middleware) Adds a middleware for intercepting agent execution.类型变量类型为MiddlewareBase的io.agentscope.core中的方法参数修饰符和类型方法说明ReActAgent.Builder.middlewares(List<? extends MiddlewareBase> middlewares) Adds multiple middlewares for intercepting agent execution. -
io.agentscope.core.middleware中MiddlewareBase的使用
修饰符和类型类说明classKeeps the agent's todo list in front of the model so long-running tasks don't drift.修饰符和类型方法说明reactor.core.publisher.Flux<AgentEvent> MiddlewareChain.MiddlewareMethod.apply(MiddlewareBase mw, Agent agent, RuntimeContext ctx, I input, Function<I, reactor.core.publisher.Flux<AgentEvent>> next) 类型变量类型为MiddlewareBase的io.agentscope.core.middleware中的方法参数修饰符和类型方法说明static <I> Function<I, reactor.core.publisher.Flux<AgentEvent>> MiddlewareChain.build(List<? extends MiddlewareBase> middlewares, Agent agent, RuntimeContext ctx, MiddlewareChain.MiddlewareMethod<I> method, Function<I, reactor.core.publisher.Flux<AgentEvent>> core) Build a middleware chain that producesFlux<AgentEvent>. -
io.agentscope.core.shutdown中MiddlewareBase的使用
修饰符和类型类说明final classSystem middleware that integrates graceful shutdown into the agent lifecycle. -
io.agentscope.core.skill中MiddlewareBase的使用
修饰符和类型类说明classDynamically composes skills from an ordered list ofrepositorieson everycall()viaDynamicSkillMiddleware.onSystemPrompt(Agent, RuntimeContext, String), replacing the static skill prompt with a per-call view that supports per-user skill isolation and one-click marketplace integration. -
io.agentscope.core.tracing中MiddlewareBase的使用
修饰符和类型类说明classMiddleware that adds OpenTelemetry tracing to the agent lifecycle.