aixplain.v2.actions
Unified Actions / Inputs hierarchy for models and tools.
Object Hierarchy:
Actions — collection of Action objects
Action — metadata + owns its inputs
Inputs — collection of Input objects
Input — individual input with schema + current value
Models have a single implicit "run" action. The model.inputs shorthand
skips the actions layer since there is nothing to disambiguate.
Tools have multiple actions, so the full path is always used.
Input Objects
class Input()
Individual input with schema and current value.
Attributes:
name- The input parameter name.required- Whether this input is required.type- The data type (e.g."text","number","string").value- The current value (mutable).description- Human-readable description.
__init__
def __init__(name: str,
required: bool = False,
type: Optional[str] = None,
value: Any = None,
description: str = "",
*,
_validator: Optional[Callable[[Any], bool]] = None,
_metadata: Optional[Any] = None) -> None
Initialize an Input with schema metadata and an optional validator.
name
@property
def name() -> str
The input parameter name.
required
@property
def required() -> bool
Whether this input is required.
type
@property
def type() -> Optional[str]
The data type string (e.g. "text", "number").
value
@property
def value() -> Any
The current value.