🔧 chore(utils.ts): add support for output_parsers node color and icon
🚀 feat(utils.ts): add support for output_parsers node name and icon
The `nodeColors` object now includes a color for the `output_parsers` node type, allowing it to be visually distinguished. Similarly, the `nodeNames` object now includes a name for the `output_parsers` node type. Additionally, the `nodeIconsLucide` object now includes an icon for the `output_parsers` node type. These changes improve the consistency and completeness of the node types in the application.
This commit is contained in:
parent
2876afa79a
commit
e9a907babe
1 changed files with 6 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ import { twMerge } from "tailwind-merge";
|
||||||
import { ADJECTIVES, DESCRIPTIONS, NOUNS } from "./constants";
|
import { ADJECTIVES, DESCRIPTIONS, NOUNS } from "./constants";
|
||||||
import { ComponentType, SVGProps } from "react";
|
import { ComponentType, SVGProps } from "react";
|
||||||
import {
|
import {
|
||||||
|
Compass,
|
||||||
Cpu,
|
Cpu,
|
||||||
Fingerprint,
|
Fingerprint,
|
||||||
Gift,
|
Gift,
|
||||||
|
|
@ -139,6 +140,7 @@ export const nodeColors: { [char: string]: string } = {
|
||||||
toolkits: "#DB2C2C",
|
toolkits: "#DB2C2C",
|
||||||
wrappers: "#E6277A",
|
wrappers: "#E6277A",
|
||||||
utilities: "#31A3CC",
|
utilities: "#31A3CC",
|
||||||
|
output_parsers: "#E6A627",
|
||||||
unknown: "#9CA3AF",
|
unknown: "#9CA3AF",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -158,6 +160,7 @@ export const nodeNames: { [char: string]: string } = {
|
||||||
wrappers: "Wrappers",
|
wrappers: "Wrappers",
|
||||||
textsplitters: "Text Splitters",
|
textsplitters: "Text Splitters",
|
||||||
utilities: "Utilities",
|
utilities: "Utilities",
|
||||||
|
output_parsers: "Output Parsers",
|
||||||
unknown: "Unknown",
|
unknown: "Unknown",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -363,6 +366,9 @@ export const nodeIconsLucide: {
|
||||||
utilities: Wand2 as React.ForwardRefExoticComponent<
|
utilities: Wand2 as React.ForwardRefExoticComponent<
|
||||||
ComponentType<SVGProps<SVGSVGElement>>
|
ComponentType<SVGProps<SVGSVGElement>>
|
||||||
>,
|
>,
|
||||||
|
output_parsers: Compass as React.ForwardRefExoticComponent<
|
||||||
|
ComponentType<SVGProps<SVGSVGElement>>
|
||||||
|
>,
|
||||||
unknown: HelpCircle as React.ForwardRefExoticComponent<
|
unknown: HelpCircle as React.ForwardRefExoticComponent<
|
||||||
ComponentType<SVGProps<SVGSVGElement>>
|
ComponentType<SVGProps<SVGSVGElement>>
|
||||||
>,
|
>,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue