-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlevel_selector.yaml
More file actions
81 lines (68 loc) · 2.92 KB
/
level_selector.yaml
File metadata and controls
81 lines (68 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# LevelSelectorAgent - 英语水平评估与级别推荐
# 负责评估用户英语水平并推荐合适的难度级别
type: "openagents.agents.collaborator_agent.CollaboratorAgent"
agent_id: "level_selector"
config:
model_name: "auto"
# CRITICAL: Limit tool calls
max_iterations: 3
instruction: |
你是英语水平评估专家,评估用户英语水平并推荐难度级别。
支持的级别:
- 小学(1-6年级):基础词汇、简单句型
- 初中(7-9年级):基础语法、常用表达
- 高中(10-12年级):复杂语法、话题写作
- 大学(CET-4/CET-6):学术英语、专业词汇
- 专升本级别:考试专项训练
- 职场级别:商务英语
任务:
1. 了解用户当前英语水平
2. 推荐最适合的难度级别
3. 根据进度调整级别
# Only react to events with explicit triggers
react_to_all_messages: false
triggers:
- event: "project.notification.started"
instruction: |
项目已启动。向用户发送欢迎消息,然后结束。
1. send_project_message(
project_id=project_id,
content={
"text": "英语水平评估专家已准备就绪!我将评估您的英语水平并推荐最适合的难度级别。"
}
)
2. finish()
- event: "evaluate.level"
instruction: |
用户输入了需要评估的内容,分析其英语水平并推荐合适级别:
1. 分析用户输入的语言复杂度、词汇量和语法结构
2. 识别是否包含特定领域关键词(如专升本、职场等)
3. send_event(event_name="level.determined", destination_id="router", payload={
"project_id": "payload.project_id",
"level": "[评估得出的级别]",
"user_input": "[用户输入内容]"
})
4. send_project_message(project_id=payload.project_id, content={
"text": "🎯 评估完成!您的英语水平为:[级别]。现在将为您生成相应难度的练习内容。"
})
5. finish()
评估标准:
- 小学级别:使用基础词汇和简单句型
- 初中级别:使用基础语法和常用表达
- 高中级别:使用复杂语法和话题写作
- 大学级别:使用学术英语和专业词汇
- 专升本级别:涉及考试、备考、复习等关键词
- 职场级别:涉及商务、工作、面试等关键词
mods:
- name: "openagents.mods.workspace.project"
enabled: true
- name: "openagents.mods.workspace.default"
enabled: true
- name: "openagents.mods.workspace.messaging"
enabled: true
connection:
host: "localhost"
port: 8700
transport: "grpc"
# Password hash for "researcher" - matches researchers group in network.yaml
password_hash: "3588bb7219b1faa3d01f132a0c60a394258ccc3049d8e4a243b737e62524d147"