main.py 360 Bytes
from intent_fusion import IntentFusionApp, OpenAIAdapter

app = IntentFusionApp(
    intents_path="benchmarks/glsx/intents.yaml",
    llm=OpenAIAdapter(),
    embedding_enabled=False,
    prewarm=False,
)

result = app.route_sync("询问本月新车交付数")
print(result.top.name if result.top else None)
print(result.orchestrated)  # 多意图时会有值