This is unreleased documentation for Langflow Documentation 1.10.x (Next) version.
For up-to-date documentation, see the latest version (1.9.x).
Version: 1.10.x (Next)
Monitor endpoints
The /monitor endpoints are for internal Langflow functionality, primarily related to running flows in the Playground, storing chat history, and generating flow logs.
This information is primarily for those who are building custom components or contributing to the Langflow codebase in a way that requires calling or understanding these endpoints.
For typical application development with Langflow, there are more appropriate options for monitoring, debugging, and memory management.
For more information, see the following:
Logs: Langflow log storage locations, customization options, and where to view logs in the visual editor
The Vertex build endpoints (/monitor/builds) are exclusively for Playground functionality.
When you run a flow in the Playground, Langflow calls the /build/$FLOW_ID/flow endpoint in chat.py. This call retrieves the flow data, builds a graph, and executes the graph. As each component (or node) is executed, the build_vertex function calls build_and_run, which may call the individual components' def_build method, if it exists. If a component doesn't have a def_build function, the build still returns a component.
The build function allows components to execute logic at runtime. For example, the Recursive Character Text Splitter component is a child of the LCTextSplitterComponent class. When text needs to be processed, the parent class's build method is called, which creates a RecursiveCharacterTextSplitter object and uses it to split the text according to the defined parameters. The split text is then passed on to the next component. This all occurs when the component is built.
1{
2 "vertex_builds": {
3 "ChatInput-NCmix": [
4 {
5 "data": {
6 "results": {
7 "message": {
8 "text_key": "text",
9 "data": {
10 "timestamp": "2024-12-23 19:10:57",
11 "sender": "User",
12 "sender_name": "User",
13 "session_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a",
14 "text": "Hello",
15 "files": [],
16 "error": "False",
17 "edit": "False",
18 "properties": {
19 "text_color": "",
20 "background_color": "",
21 "edited": "False",
22 "source": {
23 "id": "None",
24 "display_name": "None",
25 "source": "None"
26 },
27 "icon": "",
28 "allow_markdown": "False",
29 "positive_feedback": "None",
30 "state": "complete",
31 "targets": []
32 },
33 "category": "message",
34 "content_blocks": [],
35 "id": "c95bed34-f906-4aa6-84e4-68553f6db772",
36 "flow_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a"
37 },
38 "default_value": "",
39 "text": "Hello",
40 "sender": "User",
41 "sender_name": "User",
42 "files": [],
43 "session_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a",
44 "timestamp": "2024-12-23 19:10:57+00:00",
45 "flow_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a",
46 "error": "False",
47 "edit": "False",
48 "properties": {
49 "text_color": "",
50 "background_color": "",
51 "edited": "False",
52 "source": {
53 "id": "None",
54 "display_name": "None",
55 "source": "None"
56 },
57 "icon": "",
58 "allow_markdown": "False",
59 "positive_feedback": "None",
60 "state": "complete",
61 "targets": []
62 },
63 "category": "message",
64 "content_blocks": []
65 }
66 },
67 "outputs": {
68 "message": {
69 "message": {
70 "timestamp": "2024-12-23T19:10:57",
71 "sender": "User",
72 "sender_name": "User",
73 "session_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a",
74 "text": "Hello",
75 "files": [],
76 "error": false,
77 "edit": false,
78 "properties": {
79 "text_color": "",
80 "background_color": "",
81 "edited": false,
82 "source": {
83 "id": null,
84 "display_name": null,
85 "source": null
86 },
87 "icon": "",
88 "allow_markdown": false,
89 "positive_feedback": null,
90 "state": "complete",
91 "targets": []
92 },
93 "category": "message",
94 "content_blocks": [],
95 "id": "c95bed34-f906-4aa6-84e4-68553f6db772",
96 "flow_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a"
97 },
98 "type": "object"
99 }
100 },
101 "logs": { "message": [] },
102 "message": {
103 "message": "Hello",
104 "sender": "User",
105 "sender_name": "User",
106 "files": [],
107 "type": "object"
108 },
109 "artifacts": {
110 "message": "Hello",
111 "sender": "User",
112 "sender_name": "User",
113 "files": [],
114 "type": "object"
115 },
116 "timedelta": 0.015060124918818474,
117 "duration": "15 ms",
118 "used_frozen_result": false
119 },
120 "artifacts": {
121 "message": "Hello",
122 "sender": "User",
123 "sender_name": "User",
124 "files": [],
125 "type": "object"
126 },
127 "params": "- Files: []\n Message: Hello\n Sender: User\n Sender Name: User\n Type: object\n",
128 "valid": true,
129 "build_id": "40aa200e-74db-4651-b698-f80301d2b26b",
130 "id": "ChatInput-NCmix",
131 "timestamp": "2024-12-23T19:10:58.772766Z",
132 "flow_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a"
133 }
134 ],
135 "Prompt-BEn9c": [
136 {
137 "data": {
138 "results": {},
139 "outputs": {
140 "prompt": {
141 "message": "Answer the user as if you were a GenAI expert, enthusiastic about helping them get started building something fresh.",
142 "type": "text"
143 }
144 },
145 "logs": { "prompt": [] },
146 "message": {
147 "prompt": {
148 "repr": "Answer the user as if you were a GenAI expert, enthusiastic about helping them get started building something fresh.",
149 "raw": "Answer the user as if you were a GenAI expert, enthusiastic about helping them get started building something fresh.",
150 "type": "text"
151 }
152 },
153 "artifacts": {
154 "prompt": {
155 "repr": "Answer the user as if you were a GenAI expert, enthusiastic about helping them get started building something fresh.",
156 "raw": "Answer the user as if you were a GenAI expert, enthusiastic about helping them get started building something fresh.",
157 "type": "text"
158 }
159 },
160 "timedelta": 0.0057758750626817346,
161 "duration": "6 ms",
162 "used_frozen_result": false
163 },
164 "artifacts": {
165 "prompt": {
166 "repr": "Answer the user as if you were a GenAI expert, enthusiastic about helping them get started building something fresh.",
167 "raw": "Answer the user as if you were a GenAI expert, enthusiastic about helping them get started building something fresh.",
168 "type": "text"
169 }
170 },
171 "params": "None",
172 "valid": true,
173 "build_id": "39bbbfde-97fd-42a5-a9ed-d42a5c5d532b",
174 "id": "Prompt-BEn9c",
175 "timestamp": "2024-12-23T19:10:58.781019Z",
176 "flow_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a"
177 }
178 ],
179 "OpenAIModel-7AjrN": [
180 {
181 "data": {
182 "results": {},
183 "outputs": {
184 "text_output": {
185 "message": "Hello! 🌟 I'm excited to help you get started on your journey to building something fresh! What do you have in mind? Whether it's a project, an idea, or a concept, let's dive in and make it happen!",
186 "type": "text"
187 },
188 "model_output": { "message": "", "type": "unknown" }
189 },
190 "logs": { "text_output": [] },
191 "message": {
192 "text_output": {
193 "repr": "Hello! 🌟 I'm excited to help you get started on your journey to building something fresh! What do you have in mind? Whether it's a project, an idea, or a concept, let's dive in and make it happen!",
194 "raw": "Hello! 🌟 I'm excited to help you get started on your journey to building something fresh! What do you have in mind? Whether it's a project, an idea, or a concept, let's dive in and make it happen!",
195 "type": "text"
196 }
197 },
198 "artifacts": {
199 "text_output": {
200 "repr": "Hello! 🌟 I'm excited to help you get started on your journey to building something fresh! What do you have in mind? Whether it's a project, an idea, or a concept, let's dive in and make it happen!",
201 "raw": "Hello! 🌟 I'm excited to help you get started on your journey to building something fresh! What do you have in mind? Whether it's a project, an idea, or a concept, let's dive in and make it happen!",
202 "type": "text"
203 }
204 },
205 "timedelta": 1.034765167045407,
206 "duration": "1.03 seconds",
207 "used_frozen_result": false
208 },
209 "artifacts": {
210 "text_output": {
211 "repr": "Hello! 🌟 I'm excited to help you get started on your journey to building something fresh! What do you have in mind? Whether it's a project, an idea, or a concept, let's dive in and make it happen!",
212 "raw": "Hello! 🌟 I'm excited to help you get started on your journey to building something fresh! What do you have in mind? Whether it's a project, an idea, or a concept, let's dive in and make it happen!",
213 "type": "text"
214 }
215 },
216 "params": "None",
217 "valid": true,
218 "build_id": "4f0ae730-a266-4d35-b89f-7b825c620a0f",
219 "id": "OpenAIModel-7AjrN",
220 "timestamp": "2024-12-23T19:10:58.790484Z",
221 "flow_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a"
222 }
223 ],
224 "ChatOutput-sfUhT": [
225 {
226 "data": {
227 "results": {
228 "message": {
229 "text_key": "text",
230 "data": {
231 "timestamp": "2024-12-23 19:10:58",
232 "sender": "Machine",
233 "sender_name": "AI",
234 "session_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a",
235 "text": "Hello! 🌟 I'm excited to help you get started on your journey to building something fresh! What do you have in mind? Whether it's a project, an idea, or a concept, let's dive in and make it happen!",
236 "files": [],
237 "error": "False",
238 "edit": "False",
239 "properties": {
240 "text_color": "",
241 "background_color": "",
242 "edited": "False",
243 "source": {
244 "id": "OpenAIModel-7AjrN",
245 "display_name": "OpenAI",
246 "source": "gpt-4o-mini"
247 },
248 "icon": "OpenAI",
249 "allow_markdown": "False",
250 "positive_feedback": "None",
251 "state": "complete",
252 "targets": []
253 },
254 "category": "message",
255 "content_blocks": [],
256 "id": "5688356d-9f30-40ca-9907-79a7a2fc16fd",
257 "flow_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a"
258 },
259 "default_value": "",
260 "text": "Hello! 🌟 I'm excited to help you get started on your journey to building something fresh! What do you have in mind? Whether it's a project, an idea, or a concept, let's dive in and make it happen!",
261 "sender": "Machine",
262 "sender_name": "AI",
263 "files": [],
264 "session_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a",
265 "timestamp": "2024-12-23 19:10:58+00:00",
266 "flow_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a",
267 "error": "False",
268 "edit": "False",
269 "properties": {
270 "text_color": "",
271 "background_color": "",
272 "edited": "False",
273 "source": {
274 "id": "OpenAIModel-7AjrN",
275 "display_name": "OpenAI",
276 "source": "gpt-4o-mini"
277 },
278 "icon": "OpenAI",
279 "allow_markdown": "False",
280 "positive_feedback": "None",
281 "state": "complete",
282 "targets": []
283 },
284 "category": "message",
285 "content_blocks": []
286 }
287 },
288 "outputs": {
289 "message": {
290 "message": {
291 "timestamp": "2024-12-23T19:10:58",
292 "sender": "Machine",
293 "sender_name": "AI",
294 "session_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a",
295 "text": "Hello! 🌟 I'm excited to help you get started on your journey to building something fresh! What do you have in mind? Whether it's a project, an idea, or a concept, let's dive in and make it happen!",
296 "files": [],
297 "error": false,
298 "edit": false,
299 "properties": {
300 "text_color": "",
301 "background_color": "",
302 "edited": false,
303 "source": {
304 "id": "OpenAIModel-7AjrN",
305 "display_name": "OpenAI",
306 "source": "gpt-4o-mini"
307 },
308 "icon": "OpenAI",
309 "allow_markdown": false,
310 "positive_feedback": null,
311 "state": "complete",
312 "targets": []
313 },
314 "category": "message",
315 "content_blocks": [],
316 "id": "5688356d-9f30-40ca-9907-79a7a2fc16fd",
317 "flow_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a"
318 },
319 "type": "object"
320 }
321 },
322 "logs": { "message": [] },
323 "message": {
324 "message": "Hello! 🌟 I'm excited to help you get started on your journey to building something fresh! What do you have in mind? Whether it's a project, an idea, or a concept, let's dive in and make it happen!",
325 "sender": "Machine",
326 "sender_name": "AI",
327 "files": [],
328 "type": "object"
329 },
330 "artifacts": {
331 "message": "Hello! 🌟 I'm excited to help you get started on your journey to building something fresh! What do you have in mind? Whether it's a project, an idea, or a concept, let's dive in and make it happen!",
332 "sender": "Machine",
333 "sender_name": "AI",
334 "files": [],
335 "type": "object"
336 },
337 "timedelta": 0.017838125000707805,
338 "duration": "18 ms",
339 "used_frozen_result": false
340 },
341 "artifacts": {
342 "message": "Hello! 🌟 I'm excited to help you get started on your journey to building something fresh! What do you have in mind? Whether it's a project, an idea, or a concept, let's dive in and make it happen!",
343 "sender": "Machine",
344 "sender_name": "AI",
345 "files": [],
346 "type": "object"
347 },
348 "params": "- Files: []\n Message: Hello! 🌟 I'm excited to help you get started on your journey to building\n something fresh! What do you have in mind? Whether it's a project, an idea, or\n a concept, let's dive in and make it happen!\n Sender: Machine\n Sender Name: AI\n Type: object\n",
349 "valid": true,
350 "build_id": "1e8b908b-aba7-403b-9e9b-eca92bb78668",
351 "id": "ChatOutput-sfUhT",
352 "timestamp": "2024-12-23T19:10:58.813268Z",
353 "flow_id": "01ce083d-748b-4b8d-97b6-33adbb6a528a"
354 }
355 ]
356 }
357}
358
The /monitor/messages endpoints store, retrieve, edit, and delete records in the message table in langflow.db
Typically, these are called implicitly when running flows that produce message history, or when inspecting and modifying Playground memories.