from pydantic import BaseModel, Field, JsonValue HUMAN_INPUT_FORM_INPUT_EXAMPLE = { "decision": "approve", "attachment": { "transfer_method": "local_file", "upload_file_id": "4e0d1b87-52f2-49f6-b8c6-95cd9c954b3e", "type": "document", }, "attachments": [ { "transfer_method": "local_file", "upload_file_id": "1a77f0df-c0e6-461c-987c-e72526f341ee", "type": "document", }, { "transfer_method": "remote_url", "url": "https://example.com/report.pdf", "type": "document", }, ], } class HumanInputFormSubmitPayload(BaseModel): inputs: dict[str, JsonValue] = Field( description=( "Submitted human input values keyed by output variable name. " "Use a string for paragraph or select input values, a file mapping for file inputs, " "and a list of file mappings for file-list inputs. Local file mappings use " "`transfer_method=local_file` with `upload_file_id`; remote file mappings use " "`transfer_method=remote_url` with `url` or `remote_url`." ), examples=[HUMAN_INPUT_FORM_INPUT_EXAMPLE], ) action: str