Add row assembly request object

This commit is contained in:
2026-06-27 10:09:20 +02:00
parent ddf72a87dd
commit 58abbaa347
5 changed files with 159 additions and 151 deletions
+4 -3
View File
@@ -2086,8 +2086,8 @@ def _prompt_axes_route(
)
def _assemble_custom_row(**kwargs: Any) -> dict[str, Any]:
return row_assembly_policy.assemble_custom_row(**kwargs)
def _assemble_custom_row(request: row_assembly_policy.CustomRowAssemblyRequest) -> dict[str, Any]:
return row_assembly_policy.assemble_custom_row(request)
def _build_custom_row(
@@ -2264,7 +2264,7 @@ def _build_custom_row(
)
item_label = str(_merged_field(category, subcategory, item, "item_label", category["name"]))
return _assemble_custom_row(
assembly_request = row_assembly_policy.CustomRowAssemblyRequest(
row_number=row_number,
start_index=start_index,
category=category,
@@ -2318,6 +2318,7 @@ def _build_custom_row(
slot_status=slot_status,
character_slots=character_slots,
)
return _assemble_custom_row(assembly_request)
def build_prompt(