feat: enforce full AI outbound generation and reduce template replies
This commit is contained in:
@@ -70,10 +70,9 @@ class AgentPreRuleService:
|
||||
)
|
||||
|
||||
async def _rule_pred_meaningless_short_text(self, ctx: RuleContext) -> bool:
|
||||
from core.pydantic_ai_agent import _is_meaningless_short_text
|
||||
|
||||
message = ctx.get("message")
|
||||
return _is_meaningless_short_text(message.msg)
|
||||
state = ctx.get("state")
|
||||
return self.agent._should_handle_as_meaningless_short_text(state, message.msg)
|
||||
|
||||
async def _rule_act_meaningless_short_text(self, ctx: RuleContext) -> RuleResult:
|
||||
from core.pydantic_ai_agent import AgentResponse
|
||||
|
||||
Reference in New Issue
Block a user