Installation
Vaultak Class
The main class for governing agent behavior.AgentConfig Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
agent_id | str | required | Unique identifier for your agent |
kill_switch_mode | KillSwitchMode | ALERT | Response mode when risk threshold is exceeded |
risk_threshold | float | 0.7 | Score from 0-1 that triggers the response |
baseline_window | int | 50 | Number of actions used to learn normal behavior |
rollback_limit | int | 5 | Max number of actions to reverse in ROLLBACK mode |
breaker.watch()
Context manager that monitors a single agent action.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
action_type | str | Yes | Type of action (file_write, api_call, etc.) |
resource | str | Yes | Resource being acted upon |
payload | dict | No | Action data for risk scoring |
rollback_fn | callable | No | Function to call if ROLLBACK is triggered |
Action Types
| Action | Description |
|---|---|
file_read | Reading a file |
file_write | Writing to a file |
file_delete | Deleting a file |
api_call | External API request |
database_query | Reading from database |
database_write | Writing to database |
code_execution | Executing code |
network_request | Network communication |