Exports
CAPTURE_SCHEMA_VERSION
Example
Example
CaptureEvent
Facts about one finished invocation, offered to the capture rule. The event exists only in memory.user_id, session_id and metadata
let a rule target specific traffic, but none is copied into the stored record.
— means no declared default):
Parameters and example
Parameters and example
CaptureEvent.failed
Return whether the invocation raised instead of completing.Example
Example
CaptureEvent.tool_error
Return whether any tool result looked like an error. This is a heuristic over framework-neutral events (anerror field or
an error status); write an explicit check in the rule when it matters.
Example
Example
CaptureRecord
One invocation with structure-only or team-redacted content.content="omitted" serializes empty input/output text and null tool
arguments/results. content="redacted" records that the team’s redactor
ran, not a guarantee that all personal data was removed.
— means no declared default):
Parameters and example
Parameters and example
CaptureRecord.to_json
Example
Example
CaptureRecord.from_json
Parameters and example
Parameters and example
CaptureStore
Storage for capture records, registered with@lifecycle.storage.custom.
Example
Example
CaptureStore.start
Example
Example
CaptureStore.close
Example
Example
CaptureStore.append
Parameters and example
Parameters and example
CaptureStore.list
since, newest first.
Parameters and example
Parameters and example
LocalCaptureStore
Reference store writing one JSON Lines file per UTC day. Suitable for local development and single-instance deployments with a persistent volume. Files older thanretention_days are deleted on start
and whenever a new day’s file is opened.
Parameters and example
Parameters and example
LocalCaptureStore.start
Example
Example
LocalCaptureStore.close
Example
Example
LocalCaptureStore.append
Parameters and example
Parameters and example
LocalCaptureStore.list
limit.
Parameters and example
Parameters and example
ToolActivity
One tool call in a captured invocation, with its result when one arrived.— means no declared default):
Parameters and example
Parameters and example
ToolActivity.to_json
Example
Example
ToolActivity.from_json
to_json.
Parameters and example
Parameters and example
default_redactor
Omit all input, output and tool payloads, preserving only structure. This existing helper name remains importable, but no longer guesses which substrings contain personal data. Register@lifecycle.evals.redact to
retain content under a team-owned policy instead.
Parameters and example
Parameters and example
redact_text
Omit an entire string; retained for import compatibility, not PII detection.Parameters and example
Parameters and example