@glideco/agent-events
v0.1.0
Published
Event taxonomy for Glide agent banking activity logs. Closed-vocab Zod schemas for ToolCallEvent, ReasoningStepEvent, RiskVerdictEvent, AnomalyDetectedEvent, DSARContextEvent, and friends.
Maintainers
Readme
@glideco/agent-events
Closed-vocab Zod schemas for every event type appended to the Glide
agent activity log. The taxonomy that powers
glide.co/schemas/agent-banking/draft/agent-activity-event.json.
Install
npm install @glideco/agent-eventsUsage
import {
AgentEventSchema,
isAgentEventOfType,
type AgentEvent,
} from '@glideco/agent-events';
// Validate an inbound event:
const event = AgentEventSchema.parse(rawJson);
// Narrow to a specific shape:
if (isAgentEventOfType(event, 'tool_call')) {
console.log(event.data.toolName); // typed as ToolCallEvent
}Event types (v1)
| Event type | Payload |
| ------------------------ | ------------------------------ |
| tool_call | ToolCallEvent |
| tool_call_blocked | ToolCallEvent |
| tool_call_failed | ToolCallEvent |
| reasoning_step | ReasoningStepEvent |
| risk_verdict | RiskVerdictEvent |
| anomaly_detected | AnomalyDetectedEvent |
| step_up_requested | StepUpRequestedEvent |
| step_up_completed | StepUpCompletedEvent |
| step_up_declined | StepUpRequestedEvent |
| policy_change | PolicyChangeEvent |
| policy_stale | PolicyChangeEvent |
| agent_install | { skillSlug, installedBy } |
| agent_uninstall | { skillSlug, uninstalledBy } |
| kill_switch | KillSwitchEvent |
| dsar_redaction_applied | DsarRedactionEvent |
| dsar_tombstone_applied | DsarRedactionEvent |
License
MIT.
