Upgrade to SDK 0.5.0
This commit is contained in:
parent
2bf84a3ef3
commit
6c27f5a263
1 changed files with 24 additions and 12 deletions
|
|
@ -41,11 +41,12 @@ const ToolsTab = ({
|
|||
|
||||
if ("content" in toolResult) {
|
||||
const structuredResult = toolResult as CallToolResult;
|
||||
const isError = structuredResult.isError ?? false;
|
||||
|
||||
return (
|
||||
<>
|
||||
<h4 className="font-semibold mb-2">
|
||||
Tool Result: {structuredResult.isError ? "Error" : "Success"}
|
||||
Tool Result: {isError ? "Error" : "Success"}
|
||||
</h4>
|
||||
{structuredResult.content.map((item, index) => (
|
||||
<div key={index} className="mb-2">
|
||||
|
|
|
|||
Loading…
Reference in a new issue