household_biz.should_end_day_business
Overview
- Checks whether a household business should end its daily operation now, with reasons.
Metadata
| Field | Value |
|---|---|
| Display | Should End Day Business |
| Category | household_biz |
| Access | Public |
| Scope | B2Authority |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| household_biz_id | entityId | no | — | Target HouseholdBiz entity id (default: possessed) |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
should_end | bool | yes | Whether the business should end now |
end_reasons | array<string> | yes | Reasons for ending (empty if should_end is false) |
Usage
await inzoi.cli.execute('household_biz.should_end_day_business', {
household_biz_id: 0, // optional
});