create-theokit 1.5.1 → 1.6.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/package.json
CHANGED
|
@@ -25,7 +25,10 @@ export default agent()
|
|
|
25
25
|
.system(BASE_INSTRUCTIONS)
|
|
26
26
|
.tool(weatherTool)
|
|
27
27
|
.tool(currentTimeTool)
|
|
28
|
-
// `
|
|
29
|
-
//
|
|
28
|
+
// `.skills([...])` registers the code-defined skill: the SDK lists its name + description in a
|
|
29
|
+
// `<skills>` block in every system prompt (cheap), so the model KNOWS the skill exists.
|
|
30
|
+
.skills([dailyBriefingSkill])
|
|
31
|
+
// `defineSkillReadTool` then gives the model a `skill_read` tool to load the full body on demand —
|
|
32
|
+
// so a long procedure only enters the prompt when the model actually needs it.
|
|
30
33
|
.tool(defineSkillReadTool([dailyBriefingSkill]))
|
|
31
34
|
.build()
|
|
@@ -16,6 +16,6 @@ export const BASE_INSTRUCTIONS = `You are a helpful assistant living inside a Th
|
|
|
16
16
|
what failed and what you need (e.g. a valid city or IANA timezone).
|
|
17
17
|
|
|
18
18
|
## Skills
|
|
19
|
-
-
|
|
20
|
-
skill's description
|
|
21
|
-
|
|
19
|
+
- The \`<skills>\` block above lists documented procedures (skills) by name + description. When a request
|
|
20
|
+
matches a skill's description, call the \`skill_read\` tool with that skill's name to load its full
|
|
21
|
+
steps, then follow them. Don't guess a procedure a skill already documents.`
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"typecheck": "tsc --noEmit"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"theokit": "^0.
|
|
19
|
-
"@theokit/agents": "^0.
|
|
18
|
+
"theokit": "^0.35.0",
|
|
19
|
+
"@theokit/agents": "^0.37.0",
|
|
20
20
|
"@theokit/sdk": "^2.25.0",
|
|
21
21
|
"@theokit/ui": "^1.0.0",
|
|
22
22
|
"@usetheo/ui": "^0.14.0",
|