agentseal

v0.2.1
io.github.JoeyBrar/agentseal Checked 2 days ago Published 7 months ago

Verifiable action logs for AI agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

record_action

Record an agent action to the AgentSeal audit hash trail. Call this after every significant action (sending emails, modifying files, running queries, making API calls) to create a cryptographically sealed record of what happened and why.

ParameterTypeDescription
action_type *stringWhat type of action was taken (e.g. 'email:send', 'file:write', 'api:call', 'db:query')
agent_id *stringIdentifier for this agent (e.g. 'research-bot', 'finance-agent')
action_paramsobjectParameters of the action (e.g. {to: 'user@example.com', subject: '...'})
authorized_bystringWho or what authorized this action (e.g. 'user:alice', 'policy:auto-approve')
reasoningstringWhy you decided to take this action — your chain of thought

query_actions

Look up previously recorded actions from the audit trail. Use this to check what actions have been taken, verify history, or recall past decisions.

ParameterTypeDescription
action_typestringFilter by action type
agent_idstringFilter by agent ID
limitnumberMax entries to return (default 20)

verify_chain

Verify the integrity of the audit trail hash chain. Each entry's SHA-256 hash includes the previous entry's hash — if any record was modified, the chain breaks and this will report where.

ParameterTypeDescription
agent_idstringVerify chain for a specific agent only. If omitted, verifies all entries.