Fix primitive types in tool response not being displayed
This commit is contained in:
@@ -74,7 +74,7 @@ export function ToolResult({ message }: { message: ToolMessage }) {
|
||||
try {
|
||||
if (typeof message.content === "string") {
|
||||
parsedContent = JSON.parse(message.content);
|
||||
isJsonContent = true;
|
||||
isJsonContent = isComplexValue(parsedContent);
|
||||
}
|
||||
} catch {
|
||||
// Content is not JSON, use as is
|
||||
|
||||
Reference in New Issue
Block a user