转小写 + 只保留字母数字。源码: lib.rs 的 canonical_tool_token
(text: str)
| 123 | # ============================================================ |
| 124 | |
| 125 | def _canonical_token(text: str) -> str: |
| 126 | """转小写 + 只保留字母数字。源码: lib.rs 的 canonical_tool_token""" |
| 127 | return re.sub(r"[^a-z0-9]", "", text.lower()) |
| 128 | |
| 129 | |
| 130 | _SUBAGENT_ALIASES: dict[str, str] = { |
no outgoing calls
no test coverage detected