Idle Days • AI Agent SDK

idle_days: Days since the skill was last used (or created if never used).

idle_days

Method

</div>

This is a method of the SkillProperties class in the models module.

Days since the skill was last used (or created if never used).

Returns None when no timestamp is available. Used by lifecycle curator plugins to decide active -&gt; stale -&gt; archived transitions.

Signature

python
def idle_days() -> Optional[float]

Returns

ResponseField Optional[float]

The result of the operation.

Uses

  • datetime.fromisoformat
  • datetime.now
  • delta.total_seconds

Source

View on GitHub

praisonaiagents/skills/models.py at line 308