Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class ModelSwarmDispatchRequest(BaseModel):
correlation_id: str
run_id: str
config: ModelSwarmConfig | None = None
# Caller hint for model-tier routing; not consumed by the FSM itself.
model_tier: str | None = None


class ModelSwarmHealthCheckCommand(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ def test_extra_fields_forbidden(self) -> None:
task="t", run_id="r", correlation_id="c", extra_field="x"
) # type: ignore[call-arg]

def test_model_tier_accepted(self) -> None:
req = ModelSwarmDispatchRequest(
task="task", run_id="r1", correlation_id="c1", model_tier="LOCAL_CODER"
)
assert req.model_tier == "LOCAL_CODER"

def test_model_tier_defaults_to_none(self) -> None:
req = ModelSwarmDispatchRequest(task="task", run_id="r1", correlation_id="c1")
assert req.model_tier is None


class TestModelSwarmDispatchResult:
def test_valid_result(self) -> None:
Expand Down
Loading