Resolve producer modes turn allowances cache controls and shared workers
This commit is contained in:
@@ -86,7 +86,7 @@ pipelines:
|
||||
" spells ":
|
||||
extract:
|
||||
module: " dnd/spells "
|
||||
structured_output_repair_attempts: 0
|
||||
max_additional_turns: 0
|
||||
validators: []
|
||||
merge:
|
||||
module: dnd/merge
|
||||
@@ -108,7 +108,7 @@ pipelines:
|
||||
t.Fatalf("normalized pipeline = %#v", loaded.Config.Pipelines)
|
||||
}
|
||||
lane, ok := profile.Artifacts["spells"]
|
||||
if !ok || lane.Extract.StructuredOutputRepairAttempts == nil || *lane.Extract.StructuredOutputRepairAttempts != 0 || lane.Extract.Validators == nil || len(lane.Extract.Validators) != 0 {
|
||||
if !ok || lane.Extract.MaxAdditionalTurns == nil || *lane.Extract.MaxAdditionalTurns != 0 || lane.Extract.Validators == nil || len(lane.Extract.Validators) != 0 {
|
||||
t.Fatalf("normalized lane = %#v", profile.Artifacts)
|
||||
}
|
||||
selector := lane.Merge.References["previous"].Artifact
|
||||
@@ -231,13 +231,13 @@ pipelines:
|
||||
path: "/pipelines/session/chunk/validators",
|
||||
},
|
||||
{
|
||||
name: "negative retry budget",
|
||||
name: "negative turn allowance",
|
||||
source: `version: 6
|
||||
pipelines:
|
||||
session:
|
||||
input: {module: seriatim, retries: -1}
|
||||
input: {module: seriatim, max_additional_turns: -1}
|
||||
`,
|
||||
path: "/pipelines/session/input/retries",
|
||||
path: "/pipelines/session/input/max_additional_turns",
|
||||
},
|
||||
}
|
||||
for _, test := range tests {
|
||||
|
||||
Reference in New Issue
Block a user