fix: make cleanlab evaluator outputs not be grouped (#9149)

* Added color to number

* Group cleanlab outputs

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Lucas Oliveira 2025-07-23 15:48:32 -03:00 committed by GitHub
commit e58879f10b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 3 deletions

View file

@ -113,9 +113,21 @@ class CleanlabEvaluator(Component):
]
outputs = [
Output(display_name="Response", name="response_passthrough", method="pass_response", types=["Message"]),
Output(display_name="Trust Score", name="score", method="get_score", types=["number"]),
Output(display_name="Explanation", name="explanation", method="get_explanation", types=["Message"]),
Output(
display_name="Response",
name="response_passthrough",
method="pass_response",
types=["Message"],
group_outputs=True,
),
Output(display_name="Trust Score", name="score", method="get_score", types=["number"], group_outputs=True),
Output(
display_name="Explanation",
name="explanation",
method="get_explanation",
types=["Message"],
group_outputs=True,
),
]
def _evaluate_once(self):

View file

@ -122,6 +122,7 @@ export const nodeColors: { [char: string]: string } = {
Document: "#65a30d",
Data: "#dc2626",
Message: "#4f46e5",
number: "#7E22CF",
Prompt: "#7c3aed",
Embeddings: "#10b981",
BaseLanguageModel: "#c026d3",
@ -166,6 +167,7 @@ export const nodeColorsName: { [char: string]: string } = {
output_parsers: "yellow",
retrievers: "yellow",
str: "indigo",
number: "purple",
Text: "indigo",
unknown: "gray",
Document: "lime",