Basic usage
search_web(...) will:
- Measure duration
- Record inputs/outputs
- Append a ledger entry
Async functions
Exceptions
Agent Sentinel does not swallow your exceptions. If your function raises, the exception propagates normally — the SDK records the action asoutcome="error" and logs the error string.
Fail-open vs fail-closed
- Fail-open: ledger writes and remote sync should never crash your agent.
- Fail-closed: policy violations intentionally raise before execution (see Policies).
Replay mode integration
If replay mode is active, decorated actions return recorded outputs instead of executing (and are logged withoutcome="replayed").
See Replay.