Merge pull request #98 from langchain-ai/brace/render-numbers

fix: Bug where rendering a number as the arg value errors
This commit is contained in:
Brace Sproul
2025-04-08 13:15:40 -07:00
committed by GitHub

View File

@@ -28,7 +28,7 @@ function ArgsRenderer({ args }: { args: Record<string, any> }) {
{Object.entries(args).map(([k, v]) => {
let value = "";
if (["string", "number"].includes(typeof v)) {
value = v as string;
value = v.toString();
} else {
value = JSON.stringify(v, null);
}