Skip to content

Commit 0d7c508

Browse files
authored
replace max_loops_allowed with max_runs_per_component (#354)
1 parent 05187cf commit 0d7c508

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tutorials/28_Structured_Output_With_Loop.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
"source": [
323323
"## Building the Pipeline\n",
324324
"\n",
325-
"Add all components to your pipeline and connect them. Add connections from `output_validator` back to the `prompt_builder` for cases where the produced JSON doesn't comply with the JSON schema. Set `max_loops_allowed` to avoid infinite looping."
325+
"Add all components to your pipeline and connect them. Add connections from `output_validator` back to the `prompt_builder` for cases where the produced JSON doesn't comply with the JSON schema. Set `max_runs_per_component` to avoid infinite looping."
326326
]
327327
},
328328
{
@@ -335,7 +335,7 @@
335335
"source": [
336336
"from haystack import Pipeline\n",
337337
"\n",
338-
"pipeline = Pipeline(max_loops_allowed=5)\n",
338+
"pipeline = Pipeline(max_runs_per_component=5)\n",
339339
"\n",
340340
"# Add components to your pipeline\n",
341341
"pipeline.add_component(instance=prompt_builder, name=\"prompt_builder\")\n",

tutorials/29_Serializing_Pipelines.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
"connections:\n",
247247
"- receiver: llm.prompt\n",
248248
" sender: builder.prompt\n",
249-
"max_loops_allowed: 100\n",
249+
"max_runs_per_component: 100\n",
250250
"metadata: {}\n",
251251
"\n"
252252
]
@@ -286,7 +286,7 @@
286286
"connections:\n",
287287
"- receiver: llm.prompt\n",
288288
" sender: builder.prompt\n",
289-
"max_loops_allowed: 100\n",
289+
"max_runs_per_component: 100\n",
290290
"metadata: {}\n",
291291
"\n",
292292
"```"
@@ -331,7 +331,7 @@
331331
"connections:\n",
332332
"- receiver: llm.prompt\n",
333333
" sender: builder.prompt\n",
334-
"max_loops_allowed: 100\n",
334+
"max_runs_per_component: 100\n",
335335
"metadata: {}\n",
336336
"\"\"\""
337337
]

0 commit comments

Comments
 (0)