// Sample data for the Agent workflow example. Shared by react.tsx, vue.vue and svelte.svelte: the same
// nodes and edges feed React Flow, Vue Flow and Svelte Flow.
/** Monospace line in the node body. */
/** `body` rendered as a secondary badge (the trigger schedule). */
/** Decision answers: first = success badge, second = outline badge. */
/** Buttons in the body (`Approve`, `Reject`). */
/** Show the node toolbar while the node is selected. */
handles : { target : boolean ; source : boolean };
position : { x : number ; y : number };
type ?: " animated " | " temporary " ;
export const nodes : FlowNode [] = [
position: { x: 0 , y: 110 },
description: " Trigger · every hour " ,
handles: { target: false , source: true },
position: { x: 330 , y: 0 },
description: " Tool · get_prices " ,
body: " MAG4 drift: 2.4% " ,
handles: { target: true , source: true },
position: { x: 330 , y: 200 },
title: " Draft feed post " ,
description: " Agent · writer " ,
handles: { target: true , source: true },
position: { x: 680 , y: 0 },
description: " drift > 2%? " ,
handles: { target: true , source: true },
position: { x: 680 , y: 200 },
description: " Human in the loop " ,
actions: [ " Approve " , " Reject " ],
handles: { target: true , source: false },
export const edges : FlowEdge [] = [
{ id: " e1 " , source: " start " , target: " drift " , type: " animated " },
{ id: " e2 " , source: " start " , target: " post " },
{ id: " e3 " , source: " drift " , target: " decision " , type: " animated " },
{ id: " e4 " , source: " drift " , target: " approval " , type: " temporary " },
{ label: " active flow " , color: " var(--brand) " , dash: " 6 5 " },
{ label: " conditional " , color: " var(--muted-foreground-2) " , dash: " 2 5 " },