Uses of Class
io.agentscope.harness.agent.memory.compaction.CompactionConfig
Packages that use CompactionConfig
Package
Description
-
Uses of CompactionConfig in io.agentscope.harness.agent
Methods in io.agentscope.harness.agent with parameters of type CompactionConfigModifier and TypeMethodDescriptionHarnessAgent.Builder.compaction(CompactionConfig config) Overrides the defaultCompactionMiddlewareconfiguration. -
Uses of CompactionConfig in io.agentscope.harness.agent.memory.compaction
Methods in io.agentscope.harness.agent.memory.compaction that return CompactionConfigModifier and TypeMethodDescriptionCompactionConfig.Builder.build()CompactionConfig.withEffective(int effectiveTriggerTokens, int effectiveKeepTokens) Creates a resolved copy with effective trigger and keep values computed from a model's context window.Methods in io.agentscope.harness.agent.memory.compaction with parameters of type CompactionConfigModifier and TypeMethodDescriptionConversationCompactor.compactIfNeeded(io.agentscope.core.agent.RuntimeContext rc, List<io.agentscope.core.message.Msg> conversationMessages, CompactionConfig config, String agentId, String sessionId) Runs compaction on the supplied conversation messages if a trigger condition is met. -
Uses of CompactionConfig in io.agentscope.harness.agent.middleware
Constructors in io.agentscope.harness.agent.middleware with parameters of type CompactionConfigModifierConstructorDescriptionCompactionMiddleware(WorkspaceManager workspaceManager, io.agentscope.core.model.Model model, CompactionConfig config)