Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/tools / audit / createRegisteredEvent
Function: createRegisteredEvent()
ts
function createRegisteredEvent(opts): ToolAuditEvent;Defined in: packages/tools/src/audit/index.ts:175
Convenience factory for the tool:registered audit row. Carries the resolved trust class + side-effect class + per-tool fields the downstream cassette / replay layers care about.
Parameters
| Parameter | Type |
|---|---|
opts | { deferLoading: boolean; examplesCount: number; hasIdempotencyKey: boolean; inboundSanitization: InboundSanitizationPolicy; maxResultTokens: number; sideEffectClass: SideEffectClass; streamingHint: boolean; toolName: string; truncationStrategy: TruncationStrategy; trustClass: ToolTrustClass; ts?: number; } |
opts.deferLoading | boolean |
opts.examplesCount | number |
opts.hasIdempotencyKey | boolean |
opts.inboundSanitization | InboundSanitizationPolicy |
opts.maxResultTokens | number |
opts.sideEffectClass | SideEffectClass |
opts.streamingHint | boolean |
opts.toolName | string |
opts.truncationStrategy | TruncationStrategy |
opts.trustClass | ToolTrustClass |
opts.ts? | number |