MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / addSubtaskFixtures

Function addSubtaskFixtures

apps/vscode-e2e/src/fixtures/subtasks.ts:56–255  ·  view source on GitHub ↗
(mock: InstanceType<typeof LLMock>)

Source from the content-addressed store, hash-verified

54})
55
56export function addSubtaskFixtures(mock: InstanceType<typeof LLMock>) {
57 mock.addFixture({
58 match: {
59 userMessage: new RegExp(SUBTASK_FAST_PARENT_MARKER),
60 sequenceIndex: 0,
61 },
62 response: {
63 toolCalls: [
64 {
65 name: "new_task",
66 arguments: JSON.stringify({
67 mode: "ask",
68 message: SUBTASK_FAST_CHILD_PROMPT,
69 }),
70 id: "call_subtasks_fast_parent_new_task_001",
71 },
72 ],
73 },
74 })
75
76 mock.addFixture({
77 match: {
78 userMessage: new RegExp(SUBTASK_FAST_CHILD_MARKER),
79 },
80 response: {
81 toolCalls: [
82 {
83 name: "attempt_completion",
84 arguments: JSON.stringify({ result: "Fast child completed" }),
85 id: "call_subtasks_fast_child_completion_002",
86 },
87 ],
88 },
89 })
90
91 mock.addFixture({
92 match: {
93 toolCallId: "call_subtasks_fast_parent_new_task_001",
94 },
95 response: {
96 toolCalls: [
97 {
98 name: "attempt_completion",
99 arguments: JSON.stringify({ result: "Fast parent resumed" }),
100 id: "call_subtasks_fast_parent_completion_003",
101 },
102 ],
103 },
104 })
105
106 mock.addFixture({
107 match: {
108 userMessage: new RegExp(SUBTASK_PARENT_MARKER),
109 },
110 response: {
111 toolCalls: [
112 {
113 name: "new_task",

Callers 1

mainFunction · 0.90

Calls 2

completionAfterAnswerFunction · 0.85
requestContainsFunction · 0.85

Tested by

no test coverage detected