Expand description
Type re-exports for the SDK.
This module re-exports all types that SDK consumers (like the CLI) need to work with. By centralizing these re-exports, we maintain a stable API boundary while allowing internal crate refactoring without breaking SDK clients.
Structs§
- Agent
Event - Agent event Maps 1:1 to database table row
- Agent
Session - Complete agent conversation session assembled from normalized events.
- Agent
Step - Single LLM inference cycle with optional tool executions.
- Agent
Turn - Single user-initiated interaction cycle within a session.
- Check
Result - Config
- Context
Limit - Context window limit (maximum tokens allowed)
- Context
Window Usage - Complete snapshot of token usage for a single turn.
- Corpus
Stats - Diagnose
Result - Result of diagnosing log file parsing health for a provider.
- Event
Filters - Filters for including/excluding event types.
- Execute
Args - Failure
Example - Example of a specific file parsing failure.
- File
Edit Args - File
Read Args - Init
Config - Init
Result - Inspect
Line - Inspect
Result - Message
Payload - Pack
Result - Project
Hash - Project identifier computed from canonical project root path via SHA256
- Project
Info - Provider
Config - Reasoning
Payload - Session
Digest - Session
Filter - Session
Metadata - Session metadata (DB-derived, not available from events alone).
- Session
State - Real-time session state for live monitoring and watch operations.
- Session
Stats - Aggregated statistics for an entire session.
- Session
Summary - Lightweight session summary for list operations.
- Stats
Result - Stream
Handle - Token
Count - Total token count (always non-negative)
- Token
Input - Input token breakdown (cached vs uncached)
- Token
Limit - Context window limit configuration for a model.
- Token
Limits - Token limit lookup service for model specifications.
- Token
Output - Output token breakdown (generated vs reasoning vs tool)
- Token
Usage Payload - Normalized token usage across all providers
- Tool
Execution - Paired tool call and result with execution metrics.
- Tool
Result Payload - Turn
Metrics - Computed context window metrics for turn visualization.
- Turn
Stats - Aggregated statistics for a single turn.
- User
Message - User input message that initiates a turn.
- User
Payload - Watch
Service
Enums§
- Check
Status - Config
Status - Discovery
Event - NOTE: DiscoveryEvent design for real-time session tracking
- Event
Payload - Event payload variants
- Export
Strategy - Failure
Type - Category of log file parsing failure.
- Index
Progress - Init
Progress - Inspect
Content Type - Project
Scope - Project scope for indexing and filtering sessions
- Scan
Outcome - Step
Status - Step completion status
- Stream
Event - Stream
Id - Stream identifier for multi-stream sessions Enables parallel conversation streams within same session (e.g., background reasoning, subagents)
- Tool
Call Payload - Normalized tool call with structured arguments
- Tool
Kind - Tool classification by semantic purpose
- Workspace
Event
Traits§
- Session
Analysis Ext - Extension trait for
AgentSessionproviding analysis and metrics computation.