feat(scenarios): 支持场景配置加载与首页展示
This commit is contained in:
23
templates/scenarios/index.html
Normal file
23
templates/scenarios/index.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Universal Agent Demo Framework</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Universal Agent Demo Framework</h1>
|
||||
<p>用于复试展示的通用 AI Agent Demo 框架。</p>
|
||||
<main>
|
||||
{% for scenario in scenarios %}
|
||||
<section>
|
||||
<h2>{{ scenario.name }}</h2>
|
||||
<p>{{ scenario.description }}</p>
|
||||
<p>场景 ID:{{ scenario.id }}</p>
|
||||
<p><a href="{% url 'chat:index' scenario.id %}">进入对话</a></p>
|
||||
</section>
|
||||
{% empty %}
|
||||
<p>暂无可用场景,请检查 configs 目录。</p>
|
||||
{% endfor %}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user