Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(harness-cron-prompt-flow): update mock responses to use_skill tool

Steven Enamakele95b48e90246
diff --git a/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts b/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts
index 1fa5a66227..09d142970b 100644
--- a/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts
+++ b/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts
@@ -111,7 +111,7 @@ async function sendMessage(page: Page, prompt: string): Promise<void> {
test.describe('Harness - Cron prompt-flow', () => {
test.skip(
true,
- 'cron prompt flows now hand off to the scheduling specialist and are not deterministic here'
+ 'cron prompt flows (orchestrator -> use_skill scheduling/cron) are not deterministic here'
);
test.beforeEach(async ({ page }) => {
await resetMock();
@@ -126,31 +126,22 @@ test.describe('Harness - Cron prompt-flow', () => {
await setMockBehavior(
'llmForcedResponses',
JSON.stringify([
- {
- content: '',
- toolCalls: [
- {
- id: 'call_schedule_task_add_1',
- name: 'schedule_task',
- arguments: JSON.stringify({
- prompt: 'Create a daily 9am morning reminder.',
- blocking: true,
- }),
- },
- ],
- },
{
content: '',
toolCalls: [
{
id: 'call_cron_add_1',
- name: 'cron',
+ name: 'use_skill',
arguments: JSON.stringify({
- action: 'add',
- name: 'morning_reminder',
- schedule: { kind: 'cron', expr: '0 9 * * *' },
- prompt: 'morning reminder',
- enabled: true,
+ skill: 'scheduling',
+ tool: 'cron',
+ args: {
+ action: 'add',
+ name: 'morning_reminder',
+ schedule: { kind: 'cron', expr: '0 9 * * *' },
+ prompt: 'morning reminder',
+ enabled: true,
+ },
}),
},
],
@@ -194,29 +185,20 @@ test.describe('Harness - Cron prompt-flow', () => {
await setMockBehavior(
'llmForcedResponses',
JSON.stringify([
- {
- content: '',
- toolCalls: [
- {
- id: 'call_schedule_task_update_1',
- name: 'schedule_task',
- arguments: JSON.stringify({
- prompt: 'Change the morning reminder to 8am.',
- blocking: true,
- }),
- },
- ],
- },
{
content: '',
toolCalls: [
{
id: 'call_cron_update_1',
- name: 'cron',
+ name: 'use_skill',
arguments: JSON.stringify({
- action: 'update',
- job_id: 'morning_reminder_update_test',
- patch: { schedule: { kind: 'cron', expr: '0 8 * * *' } },
+ skill: 'scheduling',
+ tool: 'cron',
+ args: {
+ action: 'update',
+ job_id: 'morning_reminder_update_test',
+ patch: { schedule: { kind: 'cron', expr: '0 8 * * *' } },
+ },
}),
},
],
@@ -236,25 +218,19 @@ test.describe('Harness - Cron prompt-flow', () => {
await setMockBehavior(
'llmForcedResponses',
JSON.stringify([
- {
- content: '',
- toolCalls: [
- {
- id: 'call_schedule_task_remove_1',
- name: 'schedule_task',
- arguments: JSON.stringify({ prompt: 'Delete the morning reminder.', blocking: true }),
- },
- ],
- },
{
content: '',
toolCalls: [
{
id: 'call_cron_remove_1',
- name: 'cron',
+ name: 'use_skill',
arguments: JSON.stringify({
- action: 'remove',
- job_id: 'morning_reminder_delete_test',
+ skill: 'scheduling',
+ tool: 'cron',
+ args: {
+ action: 'remove',
+ job_id: 'morning_reminder_delete_test',
+ },
}),
},
],