Skip to main content

module aixplain.modules.model.response


class ModelResponse

ModelResponse class to store the response of the model run.

method __init__

__init__(
status: ResponseStatus,
data: str = '',
details: Optional[Dict, List] = {},
completed: bool = False,
error_message: str = '',
used_credits: float = 0.0,
run_time: float = 0.0,
usage: Optional[Dict] = None,
url: Optional[str] = None,
**kwargs
)

method get

get(key: str, default: Optional[Any] = None) → Any