fix: align assistant ui presentation chat

This commit is contained in:
lda
2026-07-10 08:11:28 +07:00 Verified
parent df026b553a
commit abea869481
10 changed files with 331 additions and 236 deletions
+19 -1
View File
@@ -7,7 +7,10 @@ export type WorkflowToolName =
export type PresentationToolName =
| "selectWorkflowNode"
| "focusOperation"
| "showTraceFrame";
| "showTraceFrame"
| "fetchData"
| "transformPayload"
| "writeOutput";
export type AgentToolName = WorkflowToolName | PresentationToolName;
@@ -53,6 +56,21 @@ export const AGENT_TOOLS = {
kind: "presentation",
description: "Focus a trace frame in the presentation.",
},
fetchData: {
name: "fetchData",
kind: "presentation",
description: "Presentation-only placeholder for fetching data in a one-off tool loop.",
},
transformPayload: {
name: "transformPayload",
kind: "presentation",
description: "Presentation-only placeholder for transforming data in a one-off tool loop.",
},
writeOutput: {
name: "writeOutput",
kind: "presentation",
description: "Presentation-only placeholder for writing output in a one-off tool loop.",
},
} satisfies Record<AgentToolName, AgentToolDescriptor>;
export const isAllowedAgentToolName = (name: string): name is AgentToolName =>