Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
{
"type": "excalidraw",
"version": 2,
"elements": [
{
"type": "text",
"id": "tt",
"x": 280,
"y": 50,
"width": 350,
"height": 35,
"text": "Agent State Machine",
"fontSize": 28,
"fontFamily": 1,
"textAlign": "left",
"verticalAlign": "top",
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"roughness": 0,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1001
},
{
"type": "rectangle",
"id": "s1",
"x": 50,
"y": 150,
"width": 150,
"height": 55,
"strokeColor": "#1e1e1e",
"backgroundColor": "#a5d8ff",
"fillStyle": "solid",
"strokeWidth": 2,
"roughness": 1,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1002,
"roundness": { "type": 3 },
"boundElements": [
{ "id": "s1t", "type": "text" },
{ "id": "a1", "type": "arrow" },
{ "id": "a7", "type": "arrow" }
]
},
{
"type": "text",
"id": "s1t",
"x": 50,
"y": 150,
"width": 150,
"height": 25,
"text": "idle",
"fontSize": 20,
"fontFamily": 1,
"textAlign": "center",
"verticalAlign": "middle",
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"roughness": 0,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1003,
"containerId": "s1"
},
{
"type": "rectangle",
"id": "s2",
"x": 320,
"y": 150,
"width": 170,
"height": 55,
"strokeColor": "#1e1e1e",
"backgroundColor": "#b2f2bb",
"fillStyle": "solid",
"strokeWidth": 2,
"roughness": 1,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1004,
"roundness": { "type": 3 },
"boundElements": [
{ "id": "s2t", "type": "text" },
{ "id": "a1", "type": "arrow" },
{ "id": "a2", "type": "arrow" },
{ "id": "a3", "type": "arrow" },
{ "id": "a8", "type": "arrow" }
]
},
{
"type": "text",
"id": "s2t",
"x": 320,
"y": 150,
"width": 170,
"height": 25,
"text": "processing",
"fontSize": 20,
"fontFamily": 1,
"textAlign": "center",
"verticalAlign": "middle",
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"roughness": 0,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1005,
"containerId": "s2"
},
{
"type": "rectangle",
"id": "s3",
"x": 610,
"y": 150,
"width": 180,
"height": 55,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffd8a8",
"fillStyle": "solid",
"strokeWidth": 2,
"roughness": 1,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1006,
"roundness": { "type": 3 },
"boundElements": [
{ "id": "s3t", "type": "text" },
{ "id": "a2", "type": "arrow" },
{ "id": "a4", "type": "arrow" },
{ "id": "a6", "type": "arrow" }
]
},
{
"type": "text",
"id": "s3t",
"x": 610,
"y": 150,
"width": 180,
"height": 25,
"text": "calling_tools",
"fontSize": 20,
"fontFamily": 1,
"textAlign": "center",
"verticalAlign": "middle",
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"roughness": 0,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1007,
"containerId": "s3"
},
{
"type": "rectangle",
"id": "s4",
"x": 600,
"y": 360,
"width": 200,
"height": 55,
"strokeColor": "#1e1e1e",
"backgroundColor": "#e8deee",
"fillStyle": "solid",
"strokeWidth": 2,
"roughness": 1,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1008,
"roundness": { "type": 3 },
"boundElements": [
{ "id": "s4t", "type": "text" },
{ "id": "a4", "type": "arrow" },
{ "id": "a5", "type": "arrow" },
{ "id": "a6", "type": "arrow" }
]
},
{
"type": "text",
"id": "s4t",
"x": 600,
"y": 360,
"width": 200,
"height": 25,
"text": "waiting_for_tool",
"fontSize": 20,
"fontFamily": 1,
"textAlign": "center",
"verticalAlign": "middle",
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"roughness": 0,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1009,
"containerId": "s4"
},
{
"type": "rectangle",
"id": "s5",
"x": 320,
"y": 360,
"width": 170,
"height": 55,
"strokeColor": "#1e1e1e",
"backgroundColor": "#b2f2bb",
"fillStyle": "solid",
"strokeWidth": 2,
"roughness": 1,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1010,
"roundness": { "type": 3 },
"boundElements": [
{ "id": "s5t", "type": "text" },
{ "id": "a3", "type": "arrow" },
{ "id": "a5", "type": "arrow" },
{ "id": "a7", "type": "arrow" }
]
},
{
"type": "text",
"id": "s5t",
"x": 320,
"y": 360,
"width": 170,
"height": 25,
"text": "responding",
"fontSize": 20,
"fontFamily": 1,
"textAlign": "center",
"verticalAlign": "middle",
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"roughness": 0,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1011,
"containerId": "s5"
},
{
"type": "rectangle",
"id": "s6",
"x": 50,
"y": 360,
"width": 150,
"height": 55,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffc9c9",
"fillStyle": "solid",
"strokeWidth": 2,
"roughness": 1,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1012,
"roundness": { "type": 3 },
"boundElements": [
{ "id": "s6t", "type": "text" },
{ "id": "a8", "type": "arrow" }
]
},
{
"type": "text",
"id": "s6t",
"x": 50,
"y": 360,
"width": 150,
"height": 25,
"text": "error",
"fontSize": 20,
"fontFamily": 1,
"textAlign": "center",
"verticalAlign": "middle",
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"roughness": 0,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1013,
"containerId": "s6"
},
{
"type": "arrow",
"id": "a1",
"x": 200,
"y": 177,
"width": 120,
"height": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"roughness": 1,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1014,
"points": [[0, 0], [120, 0]],
"startBinding": { "elementId": "s1", "focus": 0, "gap": 1 },
"endBinding": { "elementId": "s2", "focus": 0, "gap": 1 },
"boundElements": [{ "id": "a1t", "type": "text" }]
},
{
"type": "text",
"id": "a1t",
"x": 220,
"y": 155,
"width": 80,
"height": 20,
"text": "new message",
"fontSize": 14,
"fontFamily": 1,
"textAlign": "center",
"verticalAlign": "middle",
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"roughness": 0,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1015,
"containerId": "a1"
},
{
"type": "arrow",
"id": "a2",
"x": 490,
"y": 177,
"width": 120,
"height": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"roughness": 1,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1016,
"points": [[0, 0], [120, 0]],
"startBinding": { "elementId": "s2", "focus": 0, "gap": 1 },
"endBinding": { "elementId": "s3", "focus": 0, "gap": 1 },
"boundElements": [{ "id": "a2t", "type": "text" }]
},
{
"type": "text",
"id": "a2t",
"x": 510,
"y": 155,
"width": 80,
"height": 20,
"text": "tool call",
"fontSize": 14,
"fontFamily": 1,
"textAlign": "center",
"verticalAlign": "middle",
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"roughness": 0,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1017,
"containerId": "a2"
},
{
"type": "arrow",
"id": "a3",
"x": 405,
"y": 205,
"width": 0,
"height": 155,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"roughness": 1,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1018,
"points": [[0, 0], [0, 155]],
"startBinding": { "elementId": "s2", "focus": 0, "gap": 1 },
"endBinding": { "elementId": "s5", "focus": 0, "gap": 1 },
"boundElements": [{ "id": "a3t", "type": "text" }]
},
{
"type": "text",
"id": "a3t",
"x": 415,
"y": 270,
"width": 70,
"height": 20,
"text": "no tools",
"fontSize": 14,
"fontFamily": 1,
"textAlign": "center",
"verticalAlign": "middle",
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"roughness": 0,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1019,
"containerId": "a3"
},
{
"type": "arrow",
"id": "a4",
"x": 700,
"y": 205,
"width": 0,
"height": 155,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"roughness": 1,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1020,
"points": [[0, 0], [0, 155]],
"startBinding": { "elementId": "s3", "focus": 0, "gap": 1 },
"endBinding": { "elementId": "s4", "focus": 0, "gap": 1 },
"boundElements": [{ "id": "a4t", "type": "text" }]
},
{
"type": "text",
"id": "a4t",
"x": 710,
"y": 270,
"width": 70,
"height": 20,
"text": "invoked",
"fontSize": 14,
"fontFamily": 1,
"textAlign": "center",
"verticalAlign": "middle",
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"roughness": 0,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1021,
"containerId": "a4"
},
{
"type": "arrow",
"id": "a5",
"x": 600,
"y": 387,
"width": 110,
"height": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"roughness": 1,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1022,
"points": [[0, 0], [-110, 0]],
"startBinding": { "elementId": "s4", "focus": 0, "gap": 1 },
"endBinding": { "elementId": "s5", "focus": 0, "gap": 1 },
"boundElements": [{ "id": "a5t", "type": "text" }]
},
{
"type": "text",
"id": "a5t",
"x": 520,
"y": 365,
"width": 70,
"height": 20,
"text": "done",
"fontSize": 14,
"fontFamily": 1,
"textAlign": "center",
"verticalAlign": "middle",
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"roughness": 0,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1023,
"containerId": "a5"
},
{
"type": "arrow",
"id": "a6",
"x": 800,
"y": 375,
"width": 50,
"height": 165,
"strokeColor": "#868e96",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"roughness": 1,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1024,
"points": [[0, 0], [50, 0], [50, -165], [0, -165]],
"startBinding": { "elementId": "s4", "focus": 0.8, "gap": 1 },
"endBinding": { "elementId": "s3", "focus": 0.8, "gap": 1 },
"boundElements": [{ "id": "a6t", "type": "text" }]
},
{
"type": "text",
"id": "a6t",
"x": 835,
"y": 280,
"width": 70,
"height": 20,
"text": "more tools",
"fontSize": 12,
"fontFamily": 1,
"textAlign": "center",
"verticalAlign": "middle",
"strokeColor": "#868e96",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"roughness": 0,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1025,
"containerId": "a6"
},
{
"type": "arrow",
"id": "a7",
"x": 320,
"y": 387,
"width": 120,
"height": 210,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"roughness": 1,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1026,
"points": [[0, 0], [-120, -210]],
"startBinding": { "elementId": "s5", "focus": 0, "gap": 1 },
"endBinding": { "elementId": "s1", "focus": 0, "gap": 1 },
"boundElements": [{ "id": "a7t", "type": "text" }]
},
{
"type": "text",
"id": "a7t",
"x": 195,
"y": 305,
"width": 90,
"height": 20,
"text": "response sent",
"fontSize": 14,
"fontFamily": 1,
"textAlign": "center",
"verticalAlign": "middle",
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"roughness": 0,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1027,
"containerId": "a7"
},
{
"type": "arrow",
"id": "a8",
"x": 320,
"y": 195,
"width": 120,
"height": 175,
"strokeColor": "#e03131",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"roughness": 1,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1028,
"points": [[0, 0], [-120, 175]],
"startBinding": { "elementId": "s2", "focus": 0, "gap": 1 },
"endBinding": { "elementId": "s6", "focus": 0, "gap": 1 },
"boundElements": [{ "id": "a8t", "type": "text" }]
},
{
"type": "text",
"id": "a8t",
"x": 235,
"y": 255,
"width": 50,
"height": 20,
"text": "error",
"fontSize": 14,
"fontFamily": 1,
"textAlign": "center",
"verticalAlign": "middle",
"strokeColor": "#e03131",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"roughness": 0,
"opacity": 100,
"angle": 0,
"groupIds": [],
"seed": 1029,
"containerId": "a8"
}
]
}