Build and run agents you can see, understand and trust.
Python agentchatbotlarge-language-modelsllmllm-agentmcpmulti-agentmulti-modalreact-agentrealtime-agentvoice-agentvoice-assistant
fix(context): allow trigger ratio of 0.9- #2396 (#2396)
qbc84918a5f6be7
diff --git a/src/agentscope/agent/_config.py b/src/agentscope/agent/_config.pyindex 8165a385c..666c17e2a 100644--- a/src/agentscope/agent/_config.py+++ b/src/agentscope/agent/_config.py@@ -54,7 +54,7 @@ class ContextConfig(BaseModel):model_config = {"arbitrary_types_allowed": True}"""Allow arbitrary types in the pydantic model."""- trigger_ratio: float = Field(default=0.8, gt=0, lt=0.9)+ trigger_ratio: float = Field(default=0.8, gt=0, le=0.9)"""When the token exceeds this ratio of the maximum context length, thecontext will be compressed. To reserve the context for context compression,the maximum ratio is 0.9."""