@voicethere/agent 0.29.3 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/agent.js +15 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/llm/agent/redact.d.ts +16 -0
- package/dist/llm/agent/redact.d.ts.map +1 -1
- package/dist/llm/agent/redact.js +28 -6
- package/dist/llm/agent/redact.js.map +1 -1
- package/dist/protocol.d.ts +20 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js.map +1 -1
- package/dist/runtime.d.ts +26 -1
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +28 -0
- package/dist/runtime.js.map +1 -1
- package/dist/templates/echo/agent.js +15 -1
- package/dist/templates/echo-dc/agent.js +15 -1
- package/dist/templates/flow-agent/agent.js +27 -7
- package/dist/templates/game-sync/agent.js +15 -1
- package/dist/templates/language-switch/agent.js +15 -1
- package/dist/templates/llm-agent/agent.js +27 -7
- package/dist/templates/llm-board/agent.js +60760 -0
- package/dist/templates/llm-docs-rag/agent.js +27 -7
- package/dist/templates/llm-language-tutor/agent.js +60563 -0
- package/dist/templates/llm-mcp-service/agent.js +27 -7
- package/dist/templates/llm-support-sticky-user/agent.js +27 -7
- package/dist/templates/positional-tts/agent.js +15 -1
- package/dist/templates/recording-consent/agent.js +15 -1
- package/dist/templates/registry.d.ts.map +1 -1
- package/dist/templates/registry.js +50 -0
- package/dist/templates/registry.js.map +1 -1
- package/dist/templates/spatial-showcase/agent.js +15 -1
- package/dist/templates/speaker-gate/agent.js +15 -1
- package/dist/templates/voice-showcase/agent.js +15 -1
- package/dist/templates/voice-starter/agent.js +15 -1
- package/dist/templates/webhooks/agent.js +15 -1
- package/dist/templates/webhooks-redis/agent.js +15 -1
- package/dist/templates/world-sync/agent.js +15 -1
- package/dist/templates/world-sync-binary/agent.js +15 -1
- package/eject/llm/loop.ts +1 -1
- package/package.json +2 -1
- package/templates/README.md +2 -0
- package/templates/llm-board/README.md +44 -0
- package/templates/llm-board/agent.ts +235 -0
- package/templates/llm-board/board.ts +196 -0
- package/templates/llm-board/md.d.ts +4 -0
- package/templates/llm-board/prompt.md +11 -0
- package/templates/llm-board/voicethere.llm.json +49 -0
- package/templates/llm-language-tutor/README.md +32 -0
- package/templates/llm-language-tutor/agent.ts +22 -0
- package/templates/llm-language-tutor/knowledge/lessons.md +121 -0
- package/templates/llm-language-tutor/md.d.ts +4 -0
- package/templates/llm-language-tutor/prompt.md +9 -0
- package/templates/llm-language-tutor/voicethere.llm.json +39 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# English practice lessons
|
|
2
|
+
|
|
3
|
+
## Ordering at a café
|
|
4
|
+
|
|
5
|
+
Useful phrases:
|
|
6
|
+
|
|
7
|
+
- Could I have a flat white, please?
|
|
8
|
+
- Can I get that to go?
|
|
9
|
+
- What do you recommend?
|
|
10
|
+
- Do you have anything without milk?
|
|
11
|
+
- Could I pay by card?
|
|
12
|
+
|
|
13
|
+
Idioms:
|
|
14
|
+
|
|
15
|
+
- "A piece of cake" means something is very easy. Example: Ordering coffee in English is a piece of cake for me now.
|
|
16
|
+
- "My cup of tea" means something you like. Example: Quiet cafés are my cup of tea.
|
|
17
|
+
|
|
18
|
+
## Small talk at work
|
|
19
|
+
|
|
20
|
+
Useful phrases:
|
|
21
|
+
|
|
22
|
+
- How was your weekend?
|
|
23
|
+
- Did you have a good commute?
|
|
24
|
+
- Any plans for the holidays?
|
|
25
|
+
- It's been a busy week, hasn't it?
|
|
26
|
+
- Nice to finally meet you in person.
|
|
27
|
+
|
|
28
|
+
Idioms:
|
|
29
|
+
|
|
30
|
+
- "Break the ice" means to start a conversation with people who don't know each other. Example: I asked about his trip to break the ice.
|
|
31
|
+
- "Catch up" means to talk about what has happened since you last met. Example: Let's catch up over lunch.
|
|
32
|
+
|
|
33
|
+
## A job interview
|
|
34
|
+
|
|
35
|
+
Useful phrases:
|
|
36
|
+
|
|
37
|
+
- Thank you for having me.
|
|
38
|
+
- I have three years of experience in this field.
|
|
39
|
+
- One of my strengths is working with a team.
|
|
40
|
+
- Could you tell me more about the role?
|
|
41
|
+
- When can I expect to hear from you?
|
|
42
|
+
|
|
43
|
+
Idioms:
|
|
44
|
+
|
|
45
|
+
- "Hit the ground running" means to start a new job and do well right away. Example: I want to hit the ground running in my first month.
|
|
46
|
+
- "Think outside the box" means to think in a new, creative way. Example: The team wants someone who can think outside the box.
|
|
47
|
+
|
|
48
|
+
## At the doctor
|
|
49
|
+
|
|
50
|
+
Useful phrases:
|
|
51
|
+
|
|
52
|
+
- I've had a sore throat since Monday.
|
|
53
|
+
- It hurts when I breathe in.
|
|
54
|
+
- I'm allergic to penicillin.
|
|
55
|
+
- How often should I take this medicine?
|
|
56
|
+
- Do I need to come back for a check-up?
|
|
57
|
+
|
|
58
|
+
Idioms:
|
|
59
|
+
|
|
60
|
+
- "Under the weather" means a little sick. Example: I'm feeling under the weather today.
|
|
61
|
+
- "Back on your feet" means well again after an illness. Example: You'll be back on your feet in a few days.
|
|
62
|
+
|
|
63
|
+
## Travel and directions
|
|
64
|
+
|
|
65
|
+
Useful phrases:
|
|
66
|
+
|
|
67
|
+
- Excuse me, how do I get to the station?
|
|
68
|
+
- Is it within walking distance?
|
|
69
|
+
- Turn left at the traffic lights.
|
|
70
|
+
- Which platform does the train to Boston leave from?
|
|
71
|
+
- Could you tell me when we get to my stop?
|
|
72
|
+
|
|
73
|
+
Idioms:
|
|
74
|
+
|
|
75
|
+
- "Off the beaten track" means away from the usual tourist places. Example: We found a small village off the beaten track.
|
|
76
|
+
- "On the right track" means doing something the correct way. Example: Keep going, you're on the right track.
|
|
77
|
+
|
|
78
|
+
## Phone calls
|
|
79
|
+
|
|
80
|
+
Useful phrases:
|
|
81
|
+
|
|
82
|
+
- Hello, this is Maria speaking.
|
|
83
|
+
- Could I speak to Mr. Brown, please?
|
|
84
|
+
- I'm calling about my reservation.
|
|
85
|
+
- Could you repeat that, please?
|
|
86
|
+
- I'll call you back later.
|
|
87
|
+
|
|
88
|
+
Idioms:
|
|
89
|
+
|
|
90
|
+
- "Hang on" means wait a moment. Example: Hang on, I'll get a pen.
|
|
91
|
+
- "Get back to someone" means to reply later. Example: I'll get back to you by tomorrow.
|
|
92
|
+
|
|
93
|
+
## Making plans
|
|
94
|
+
|
|
95
|
+
Useful phrases:
|
|
96
|
+
|
|
97
|
+
- Are you free on Saturday afternoon?
|
|
98
|
+
- How about we meet at six?
|
|
99
|
+
- Shall we get dinner after the film?
|
|
100
|
+
- That works for me.
|
|
101
|
+
- Let's keep in touch about the details.
|
|
102
|
+
|
|
103
|
+
Idioms:
|
|
104
|
+
|
|
105
|
+
- "Up in the air" means not decided yet. Example: Our holiday plans are still up in the air.
|
|
106
|
+
- "Play it by ear" means to decide as things happen. Example: We'll play it by ear and see how the weather is.
|
|
107
|
+
|
|
108
|
+
## Giving opinions
|
|
109
|
+
|
|
110
|
+
Useful phrases:
|
|
111
|
+
|
|
112
|
+
- In my opinion, this is a good idea.
|
|
113
|
+
- I see what you mean, but I disagree.
|
|
114
|
+
- As far as I'm concerned, it's worth the price.
|
|
115
|
+
- I'm not sure I agree.
|
|
116
|
+
- That's a fair point.
|
|
117
|
+
|
|
118
|
+
Idioms:
|
|
119
|
+
|
|
120
|
+
- "Take it with a grain of salt" means do not believe it completely. Example: Take online reviews with a grain of salt.
|
|
121
|
+
- "On the fence" means not able to decide between two choices. Example: I'm on the fence about moving to a new city.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
You are an English conversation tutor for learners at levels A2 to B2. People talk to you by voice, so everything you say is read aloud.
|
|
2
|
+
|
|
3
|
+
Speak English only, even if the learner switches to another language. Keep replies to one to three short sentences, in plain words. Do not use markdown, lists, emoji or special characters.
|
|
4
|
+
|
|
5
|
+
Correct at most one mistake per turn. Say the learner's sentence again the correct way, then give the reason in a few words. If there is no mistake, say something encouraging in a few words instead. Then ask one follow-up question that keeps the conversation going.
|
|
6
|
+
|
|
7
|
+
When the learner asks about a phrase, an idiom or a lesson topic, call search_knowledge first and answer from what it returns. Call it before you say anything on such a question: do not give a meaning, a guess or a filler sentence first. Never make up the meaning of an idiom that the search did not return. If the search has nothing, say you are not sure and offer a different phrase to practice.
|
|
8
|
+
|
|
9
|
+
Be patient and friendly. Let the learner finish their thought before you correct anything.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@voicethere/agent/schema/voicethere.llm.schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"provider": "openrouter",
|
|
5
|
+
"model": "amazon/nova-micro-v1",
|
|
6
|
+
"apiKeySecret": "AGENT_OPENROUTER_API_KEY",
|
|
7
|
+
"maxOutputTokens": 512,
|
|
8
|
+
"greeting": {
|
|
9
|
+
"text": "Hi! I'm your English practice partner. What would you like to talk about today?",
|
|
10
|
+
"interruptible": true
|
|
11
|
+
},
|
|
12
|
+
"bargeIn": { "mode": "project" },
|
|
13
|
+
"history": { "turns": 20, "interruptionNote": true },
|
|
14
|
+
"fillers": {
|
|
15
|
+
"thinking": {
|
|
16
|
+
"phrases": ["Okay.", "Right.", "Let me think."],
|
|
17
|
+
"afterMs": 1500
|
|
18
|
+
},
|
|
19
|
+
"toolCall": {
|
|
20
|
+
"phrases": ["Let me check my lessons.", "One moment."]
|
|
21
|
+
},
|
|
22
|
+
"interruptible": true
|
|
23
|
+
},
|
|
24
|
+
"tools": {
|
|
25
|
+
"maxRounds": 3,
|
|
26
|
+
"timeoutMs": 15000
|
|
27
|
+
},
|
|
28
|
+
"toolSources": [],
|
|
29
|
+
"knowledge": {
|
|
30
|
+
"store": "redis",
|
|
31
|
+
"topK": 3,
|
|
32
|
+
"embeddings": {
|
|
33
|
+
"provider": "openrouter",
|
|
34
|
+
"model": "openai/text-embedding-3-small"
|
|
35
|
+
},
|
|
36
|
+
"redis": { "namespace": "tutor" }
|
|
37
|
+
},
|
|
38
|
+
"interruptPolicy": "cancel"
|
|
39
|
+
}
|