INNER CODE UNIT · Python

parse_aliases

lishuangqiang/AI-Meeting · skills/xunzhi-agent-domain/scripts/extract_agent_scene_map.py:21

def parse_aliases(raw_tail: str) -> list[str]:
    return re.findall(r'"([^"]+)"', raw_tail or "")


def main() -> None:
    bindings = load_bindings()
    lines = [
        "# Agent 场景索引(自动生成)",
        "",
        "该文档从 `BusinessAgentScene.java` 和 `application.yaml` 的 `xunzhi-agent.agent-binding` 自动提取。",
        "",
        "| 枚举名 | 场景 code | 默认名 | 别名 | 当前配置绑定 |",
        "| --- | --- | --- | --- | --- |",
    ]
    for line in SCENE_FILE.read_text(encoding="utf-8").splitlines():
        match = PATTERN.match(line)
        if not match:
            continue

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…