require.Contains(t, text, "- reply: Ada's replies")
require.Contains(t, text, "Goal: let Ada work later")
require.Contains(t, text, `- work: an agent's report, starting "[Name]"`)
+ require.Contains(t, text, "- zoom(id, 1) gives message id whole\n- zoom(\"Name\") gives an agent's whole chat\n")
require.NotContains(t, text, promptName)
// The old agent name is built from parts, so the source does not spell
func TestPromptLeavesOutAbsentFeatures(t *testing.T) {
text := prompt("Ada", "")
- for _, absent := range []string{"image", "ubagent", "computer", "device", `zoom("Name")`, "instructions at the end"} {
+ for _, absent := range []string{"image", "ubagent", "computer", "device", "instructions at the end"} {
require.NotContains(t, text, absent)
}
}
}
func TestAgentToolsAreStrictAndStable(t *testing.T) {
- tools := agentTools()
+ tools := promptTools()
names := make([]string, len(tools))
for n, tool := range tools {
names[n] = tool.Name
require.NoError(t, err)
for range 10 {
- again, err := json.Marshal(agentTools())
+ again, err := json.Marshal(promptTools())
require.NoError(t, err)
require.Equal(t, first, again)
}