PlanItem#

class scikitplot.agent.PlanItem(id, text, status=PlanStatus.PENDING)[source]#

One item of a plan.

Parameters:
idstr

Stable identity: 1-64 characters of letters, digits, _, ., -, starting with a letter or digit.

textstr

What the item is, non-empty, at most 500 characters.

statusPlanStatus or str, default=”pending”
Parameters:

Examples

>>> PlanItem("search", "find the chunker docs", "in_progress").status.value
'in_progress'
classmethod from_dict(data)[source]#

Rebuild an item written by to_dict.

Parameters:

data (Mapping[str, Any])

Return type:

PlanItem

id: str[source]#
status: PlanStatus = 'pending'[source]#
text: str[source]#
to_dict()[source]#

Return a JSON-compatible mapping.

Return type:

dict[str, Any]