Fix: Changed structuredContent output to match outputSchema (#3099)
This commit is contained in:
parent
44afe4c5d5
commit
e6933ca98b
1 changed files with 3 additions and 3 deletions
|
|
@ -500,7 +500,7 @@ server.registerTool(
|
||||||
const contentBlock = { type: "text" as const, text };
|
const contentBlock = { type: "text" as const, text };
|
||||||
return {
|
return {
|
||||||
content: [contentBlock],
|
content: [contentBlock],
|
||||||
structuredContent: { content: [contentBlock] }
|
structuredContent: { content: text }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
@ -570,7 +570,7 @@ server.registerTool(
|
||||||
const contentBlock = { type: "text" as const, text };
|
const contentBlock = { type: "text" as const, text };
|
||||||
return {
|
return {
|
||||||
content: [contentBlock],
|
content: [contentBlock],
|
||||||
structuredContent: { content: [contentBlock] }
|
structuredContent: { content: text }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
@ -599,7 +599,7 @@ server.registerTool(
|
||||||
const contentBlock = { type: "text" as const, text };
|
const contentBlock = { type: "text" as const, text };
|
||||||
return {
|
return {
|
||||||
content: [contentBlock],
|
content: [contentBlock],
|
||||||
structuredContent: { content: [contentBlock] }
|
structuredContent: { content: text }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue