Module types

Module types 

Source
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§

AgentEvent
Agent event Maps 1:1 to database table row
AgentSession
Complete agent conversation session assembled from normalized events.
AgentStep
Single LLM inference cycle with optional tool executions.
AgentTurn
Single user-initiated interaction cycle within a session.
CheckResult
Config
ContextLimit
Context window limit (maximum tokens allowed)
ContextWindowUsage
Complete snapshot of token usage for a single turn.
CorpusStats
DiagnoseResult
Result of diagnosing log file parsing health for a provider.
EventFilters
Filters for including/excluding event types.
ExecuteArgs
FailureExample
Example of a specific file parsing failure.
FileEditArgs
FileReadArgs
InitConfig
InitResult
InspectLine
InspectResult
MessagePayload
PackResult
ProjectHash
Project identifier computed from canonical project root path via SHA256
ProjectInfo
ProviderConfig
ReasoningPayload
SessionDigest
SessionFilter
SessionMetadata
Session metadata (DB-derived, not available from events alone).
SessionState
Real-time session state for live monitoring and watch operations.
SessionStats
Aggregated statistics for an entire session.
SessionSummary
Lightweight session summary for list operations.
StatsResult
StreamHandle
TokenCount
Total token count (always non-negative)
TokenInput
Input token breakdown (cached vs uncached)
TokenLimit
Context window limit configuration for a model.
TokenLimits
Token limit lookup service for model specifications.
TokenOutput
Output token breakdown (generated vs reasoning vs tool)
TokenUsagePayload
Normalized token usage across all providers
ToolExecution
Paired tool call and result with execution metrics.
ToolResultPayload
TurnMetrics
Computed context window metrics for turn visualization.
TurnStats
Aggregated statistics for a single turn.
UserMessage
User input message that initiates a turn.
UserPayload
WatchService

Enums§

CheckStatus
ConfigStatus
DiscoveryEvent
NOTE: DiscoveryEvent design for real-time session tracking
EventPayload
Event payload variants
ExportStrategy
FailureType
Category of log file parsing failure.
IndexProgress
InitProgress
InspectContentType
ProjectScope
Project scope for indexing and filtering sessions
ScanOutcome
StepStatus
Step completion status
StreamEvent
StreamId
Stream identifier for multi-stream sessions Enables parallel conversation streams within same session (e.g., background reasoning, subagents)
ToolCallPayload
Normalized tool call with structured arguments
ToolKind
Tool classification by semantic purpose
WorkspaceEvent

Traits§

SessionAnalysisExt
Extension trait for AgentSession providing analysis and metrics computation.