AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(frontend/library): Improve agent I/O rendering (#9656)
Reinier van der Leerca5fb1618e62
diff --git a/autogpt_platform/backend/backend/data/graph.py b/autogpt_platform/backend/backend/data/graph.pyindex ac797ad124..e44f331a5d 100644--- a/autogpt_platform/backend/backend/data/graph.py+++ b/autogpt_platform/backend/backend/data/graph.py@@ -223,7 +223,7 @@ class GraphExecution(GraphExecutionMeta):inputs = {**{# inputs from Agent Input Blocks- exec.input_data["name"]: exec.input_data["value"]+ exec.input_data["name"]: exec.input_data.get("value")for exec in node_executionsif exec.block_id == _INPUT_BLOCK_ID},@@ -364,7 +364,6 @@ class GraphModel(Graph):user_id: str,graph_id_map: dict[str, str],):-# Reassign Graph IDif graph.id in graph_id_map:graph.id = graph_id_map[graph.id]diff --git a/autogpt_platform/frontend/src/components/agents/agent-run-details-view.tsx b/autogpt_platform/frontend/src/components/agents/agent-run-details-view.tsxindex 5153ec3e93..fb324d27f7 100644--- a/autogpt_platform/frontend/src/components/agents/agent-run-details-view.tsx+++ b/autogpt_platform/frontend/src/components/agents/agent-run-details-view.tsx@@ -185,7 +185,9 @@ export default function AgentRunDetailsView({{title || key}</label>{values.map((value, i) => (- <pre key={i}>{value}</pre>+ <p className="text-sm text-neutral-700" key={i}>+ {value}+ </p>))}{/* TODO: pretty type-dependent rendering */}</div>diff --git a/autogpt_platform/frontend/src/components/agents/agent-run-draft-view.tsx b/autogpt_platform/frontend/src/components/agents/agent-run-draft-view.tsxindex b3bf55fd74..ac77bbf42a 100644--- a/autogpt_platform/frontend/src/components/agents/agent-run-draft-view.tsx+++ b/autogpt_platform/frontend/src/components/agents/agent-run-draft-view.tsx@@ -98,7 +98,7 @@ export default function AgentRunDraftView({"default" in inputSubSchema ? inputSubSchema.default : ""}value={inputValues[key] ?? undefined}- className="rounded-full"+ className="rounded-full pr-8"onChange={(e) =>setInputValues((obj) => ({...obj,