Class TranscriptMiddleware
java.lang.Object
io.agentscope.harness.agent.middleware.TranscriptMiddleware
- All Implemented Interfaces:
io.agentscope.core.middleware.MiddlewareBase,HarnessRuntimeMiddleware
Persists the conversation transcript at the end of every agent call.
Independent of memory flush: wired even when disableMemoryHooks is set, so session
history stays complete for Operate / SessionSearchTool / resumption.
-
Constructor Summary
ConstructorsConstructorDescriptionTranscriptMiddleware(WorkspaceManager workspaceManager) TranscriptMiddleware(WorkspaceManager workspaceManager, TranscriptStore transcriptStore, String tenant) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent>onAgent(io.agentscope.core.agent.Agent agent, io.agentscope.core.agent.RuntimeContext ctx, io.agentscope.core.middleware.AgentInput input, Function<io.agentscope.core.middleware.AgentInput, reactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent>> next) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.agentscope.core.middleware.MiddlewareBase
onActing, onModelCall, onReasoning, onSystemPrompt, order
-
Constructor Details
-
TranscriptMiddleware
-
TranscriptMiddleware
public TranscriptMiddleware(WorkspaceManager workspaceManager, TranscriptStore transcriptStore, String tenant)
-
-
Method Details
-
onAgent
public reactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent> onAgent(io.agentscope.core.agent.Agent agent, io.agentscope.core.agent.RuntimeContext ctx, io.agentscope.core.middleware.AgentInput input, Function<io.agentscope.core.middleware.AgentInput, reactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent>> next) - Specified by:
onAgentin interfaceio.agentscope.core.middleware.MiddlewareBase
-