# TDM - DaOS Settlement Skill

The TDM Skill empowers AI agents with autonomous payment capabilities and real-time execution-state awareness within the Decentralized Agent Operating System (DaOS). It bridges the gap between agent intent and decentralized settlement.

## Tooling & Capabilities

### 1. daos_get_session_state
The primary diagnostic tool for any agent. It returns the current funding state of the DaOS execution contour:
- `UNINITIALIZED`: No funding lane found.
- `DEPLETED`: Funds are exhausted.
- `FUELED`: Ready for DaOS-native execution.

### 2. makePayable(...)
The entry point for turning a standard API or tool into a DaOS-authorized resource.

### 3. AgentPay (x402) Handling
The skill provides the logic to parse 402 responses and extract settlement options from the DaOS Registry.

## Implementation Pattern
Agents should follow the **Lock-PreCheck-Execute** pattern to ensure reliable execution.
1. **Lock**: Identify target resource in the Hub.
2. **Pre-Check**: Call `daos_get_session_state`.
3. **Execute**: Proceed only if `FUELED`.

---
*For more details, see the official TDM Docs.*
