Skip to content

Commit 432a054

Browse files
committed
feat: add entrySchema to tools.ts across multiple exercises
1 parent 8d1dc72 commit 432a054

File tree

20 files changed

+37
-17
lines changed

20 files changed

+37
-17
lines changed

exercises/01.advanced-tools/01.problem.annotations/src/tools.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
createEntryInputSchema,
66
createTagInputSchema,
77
entryIdSchema,
8+
entrySchema,
89
entryTagIdSchema,
910
tagIdSchema,
1011
updateEntryInputSchema,

exercises/01.advanced-tools/01.solution.annotations/src/tools.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
createEntryInputSchema,
66
createTagInputSchema,
77
entryIdSchema,
8+
entrySchema,
89
entryTagIdSchema,
910
tagIdSchema,
1011
updateEntryInputSchema,

exercises/01.advanced-tools/02.problem.structured/src/tools.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
createEntryInputSchema,
66
createTagInputSchema,
77
entryIdSchema,
8+
entrySchema,
89
entryTagIdSchema,
910
tagIdSchema,
1011
updateEntryInputSchema,

exercises/01.advanced-tools/02.solution.structured/src/tools.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
createEntryInputSchema,
66
createTagInputSchema,
77
entryIdSchema,
8+
entrySchema,
89
entryTagIdSchema,
910
entryTagSchema,
1011
entryWithTagsSchema,
@@ -89,7 +90,7 @@ export async function initializeTools(agent: EpicMeMCP) {
8990
readOnlyHint: true,
9091
openWorldHint: false,
9192
},
92-
outputSchema: { entries: z.array(entryWithTagsSchema) },
93+
outputSchema: { entries: z.array(entrySchema) },
9394
},
9495
async () => {
9596
const entries = await agent.db.getEntries()

exercises/02.elicitation/01.problem/src/tools.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
createEntryInputSchema,
66
createTagInputSchema,
77
entryIdSchema,
8+
entrySchema,
89
entryTagIdSchema,
910
entryTagSchema,
1011
entryWithTagsSchema,
@@ -89,7 +90,7 @@ export async function initializeTools(agent: EpicMeMCP) {
8990
readOnlyHint: true,
9091
openWorldHint: false,
9192
},
92-
outputSchema: { entries: z.array(entryWithTagsSchema) },
93+
outputSchema: { entries: z.array(entrySchema) },
9394
},
9495
async () => {
9596
const entries = await agent.db.getEntries()

exercises/02.elicitation/01.solution/src/tools.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
createEntryInputSchema,
66
createTagInputSchema,
77
entryIdSchema,
8+
entrySchema,
89
entryTagIdSchema,
910
entryTagSchema,
1011
entryWithTagsSchema,
@@ -89,7 +90,7 @@ export async function initializeTools(agent: EpicMeMCP) {
8990
readOnlyHint: true,
9091
openWorldHint: false,
9192
},
92-
outputSchema: { entries: z.array(entryWithTagsSchema) },
93+
outputSchema: { entries: z.array(entrySchema) },
9394
},
9495
async () => {
9596
const entries = await agent.db.getEntries()

exercises/03.sampling/01.problem.simple/src/tools.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
createEntryInputSchema,
66
createTagInputSchema,
77
entryIdSchema,
8+
entrySchema,
89
entryTagIdSchema,
910
entryTagSchema,
1011
entryWithTagsSchema,
@@ -94,7 +95,7 @@ export async function initializeTools(agent: EpicMeMCP) {
9495
readOnlyHint: true,
9596
openWorldHint: false,
9697
},
97-
outputSchema: { entries: z.array(entryWithTagsSchema) },
98+
outputSchema: { entries: z.array(entrySchema) },
9899
},
99100
async () => {
100101
const entries = await agent.db.getEntries()

exercises/03.sampling/01.solution.simple/src/tools.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
createEntryInputSchema,
66
createTagInputSchema,
77
entryIdSchema,
8+
entrySchema,
89
entryTagIdSchema,
910
entryTagSchema,
1011
entryWithTagsSchema,
@@ -92,7 +93,7 @@ export async function initializeTools(agent: EpicMeMCP) {
9293
readOnlyHint: true,
9394
openWorldHint: false,
9495
},
95-
outputSchema: { entries: z.array(entryWithTagsSchema) },
96+
outputSchema: { entries: z.array(entrySchema) },
9697
},
9798
async () => {
9899
const entries = await agent.db.getEntries()

exercises/03.sampling/02.problem.advanced/src/tools.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
createEntryInputSchema,
66
createTagInputSchema,
77
entryIdSchema,
8+
entrySchema,
89
entryTagIdSchema,
910
entryTagSchema,
1011
entryWithTagsSchema,
@@ -92,7 +93,7 @@ export async function initializeTools(agent: EpicMeMCP) {
9293
readOnlyHint: true,
9394
openWorldHint: false,
9495
},
95-
outputSchema: { entries: z.array(entryWithTagsSchema) },
96+
outputSchema: { entries: z.array(entrySchema) },
9697
},
9798
async () => {
9899
const entries = await agent.db.getEntries()

exercises/03.sampling/02.solution.advanced/src/tools.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
createEntryInputSchema,
66
createTagInputSchema,
77
entryIdSchema,
8+
entrySchema,
89
entryTagIdSchema,
910
entryTagSchema,
1011
entryWithTagsSchema,
@@ -92,7 +93,7 @@ export async function initializeTools(agent: EpicMeMCP) {
9293
readOnlyHint: true,
9394
openWorldHint: false,
9495
},
95-
outputSchema: { entries: z.array(entryWithTagsSchema) },
96+
outputSchema: { entries: z.array(entrySchema) },
9697
},
9798
async () => {
9899
const entries = await agent.db.getEntries()

0 commit comments

Comments
 (0)