Function and argument models¶
Function definitions and dataframe contracts for spec documents.
Argument
¶
FunctionTemplate
¶
Bases: StrictModel
One logical function definition in the spec catalog.
validate_signature
class-attribute
instance-attribute
¶
validate_signature: bool = pydantic.Field(default=True, description='Whether to inspect the Python signature and check implementation contracts.')
args
class-attribute
instance-attribute
¶
frame_signature
property
¶
Return dataframe input and output counts, or unknown for a workflow.
dataframe_argument_count
property
¶
Return the number of declared dataframe argument slots.
arguments_by_type
cached
property
¶
Return argument declarations grouped by type in declaration order.
check_return_contract
¶
Require a supported independent return contract.
generate_name
¶
Generate a display name from the function ID when one is not supplied.