Feat/samples (#229)

* add sample_material

* adapt to new samples sys
This commit is contained in:
Xuwznln
2026-02-05 00:42:12 +08:00
committed by GitHub
parent 26271bcab8
commit 957fb41a6f
5 changed files with 54 additions and 49 deletions

View File

@@ -54,6 +54,7 @@ class JobAddReq(BaseModel):
action_type: str = Field(
examples=["unilabos_msgs.action._str_single_input.StrSingleInput"], description="action type", default=""
)
sample_material: dict = Field(examples=[{"string": "string"}], description="sample uuid to material uuid", default_factory=dict)
action_args: dict = Field(examples=[{"string": "string"}], description="action arguments", default_factory=dict)
task_id: str = Field(examples=["task_id"], description="task uuid (auto-generated if empty)", default="")
job_id: str = Field(examples=["job_id"], description="goal uuid (auto-generated if empty)", default="")