{{{ original_code }}}\n
- {rule.if.replace(/\${{|}}/g, "")}
+ {rule.globs}
- {error.fatal ? "Fatal Error:" : "Warning:"}{" "} - {error.message} -
+{error.message}
))} diff --git a/gui/src/components/mainInput/Lump/sections/errors/ErrorsSectionTooltip.tsx b/gui/src/components/mainInput/Lump/sections/errors/ErrorsSectionTooltip.tsx new file mode 100644 index 000000000..fd2199ede --- /dev/null +++ b/gui/src/components/mainInput/Lump/sections/errors/ErrorsSectionTooltip.tsx @@ -0,0 +1,14 @@ +import { useAppSelector } from "../../../../../redux/hooks"; + +export const ErrorsSectionTooltip = () => { + const configError = useAppSelector((store) => store.config.configError); + + const numErrors = configError?.length ?? 0; + const plural = numErrors > 1 ? "s" : ""; + + return ( +
+ Duplicate tool name{" "}
+ {props.tool.function.name}{" "}
+
+ detected. Permissions will conflict and usage may be
+ unpredictable
+
+
- Duplicate tool name{" "}
- {props.tool.function.name}{" "}
-
- detected. Permissions will conflict and usage may be
- unpredictable
-
-
{props.tool.function.name}
-
- {param[0]}
+ {`(${param[1].type}):`}
+ {param[1].description}
+ Models Add-On Limit Reached
+ +{`${statusCode ? statusCode + " " : ""}Error`}
+{`Error (status code ${statusCode})`}
{message ? ( -{message}
+
+ {parsedError}
+
{tool.displayTitle ?? tool.function.name} tool
- >
- );
-
- const futureMessage = tool.wouldLikeTo ? (
- Mustache.render(tool.wouldLikeTo, toolCallState.parsedArgs)
- ) : (
- <>
- use the {defaultToolDescription}
- >
- );
-
- let intro = "";
- let message: ReactNode = "";
-
- if (
- toolCallState.status === "done" ||
- (tool.isInstant && toolCallState.status === "calling")
- ) {
- intro = "";
- message = tool.hasAlready ? (
- Mustache.render(tool.hasAlready, toolCallState.parsedArgs)
- ) : (
- <>
- used the {defaultToolDescription}
- >
- );
- } else if (toolCallState.status === "generating") {
- intro = "is generating output to";
- message = futureMessage;
- } else if (toolCallState.status === "generated") {
- intro = "wants to";
- message = futureMessage;
- } else if (toolCallState.status === "calling") {
- intro = "is";
- message = tool.isCurrently ? (
- Mustache.render(tool.isCurrently, toolCallState.parsedArgs)
- ) : (
- <>
- calling the {defaultToolDescription}
- >
- );
- } else if (toolCallState.status === "canceled") {
- intro = "tried to";
- message = futureMessage;
- }
- return (
- {value.toString()}
- {value.toString()}
+ {tool.displayTitle ?? tool.function.name} tool
+ >
+ );
+
+ const futureMessage = tool.wouldLikeTo ? (
+ Mustache.render(tool.wouldLikeTo, toolCallState.parsedArgs)
+ ) : (
+ <>
+ use the {defaultToolDescription}
+ >
+ );
+
+ let intro = "";
+ let message: ReactNode = "";
+
+ if (
+ toolCallState.status === "done" ||
+ (tool.isInstant && toolCallState.status === "calling")
+ ) {
+ intro = "";
+ message = tool.hasAlready ? (
+ Mustache.render(tool.hasAlready, toolCallState.parsedArgs)
+ ) : (
+ <>
+ used the {defaultToolDescription}
+ >
+ );
+ } else if (toolCallState.status === "generating") {
+ intro = "is generating output to";
+ message = futureMessage;
+ } else if (toolCallState.status === "generated") {
+ intro = "wants to";
+ message = futureMessage;
+ } else if (toolCallState.status === "calling") {
+ intro = "is";
+ message = tool.isCurrently ? (
+ Mustache.render(tool.isCurrently, toolCallState.parsedArgs)
+ ) : (
+ <>
+ calling the {defaultToolDescription}
+ >
+ );
+ } else if (
+ toolCallState.status === "canceled" ||
+ toolCallState.status === "errored"
+ ) {
+ intro = "tried to";
+ message = futureMessage;
+ }
+ return (
+