File size: 418 Bytes
9472159
9b3602c
 
 
 
 
 
9472159
9b3602c
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { type Edge, type Node } from "@xyflow/svelte";
import { PersistedState } from "runed";

export const nodes = new PersistedState<Node[]>("inf-pg-nodes", [
	{
		id: "1",
		position: { x: 100, y: 100 },
		data: { query: "", response: "", modelId: undefined, provider: "auto" },
		type: "chat",
		width: undefined,
		height: undefined,
	},
]);

export const edges = new PersistedState<Edge[]>("inf-pg-edges", []);