Module traits

Module traits 

Source
Expand description

Core trait definitions for cross-crate integration.

Provides trait contracts used by optional companion crates:

  • reasonkit-mem
  • reasonkit-web Core trait definitions for ReasonKit cross-crate integration.

This module defines the interface contracts between:

  • reasonkit-core and reasonkit-mem (memory/storage operations)
  • reasonkit-core and reasonkit-web (web browsing operations)

These traits enable parallel development and loose coupling between crates.

Structs§

CaptureOptions
Options for screenshot capture.
CapturedPage
A captured page (screenshot or PDF).
Chunk
A chunk of a document after splitting.
ClipRect
Rectangle for clipping screenshots.
ContextWindow
A context window assembled from retrieved chunks.
Cookie
A browser cookie.
Document
A document to be stored in memory.
ExtractOptions
Options for content extraction.
ExtractedContent
Extracted content from a page.
HybridConfig
Configuration for hybrid search.
Image
An image from extracted content.
IndexConfig
Configuration for index creation.
IndexStats
Statistics about the memory index.
Link
A hyperlink from extracted content.
MemoryConfig
Configuration for the memory service.
NavigateOptions
Options for navigation.
PageHandle
Handle to a loaded page.
SearchResult
A search result from memory retrieval.
Viewport
Viewport dimensions.

Enums§

CaptureFormat
Format for captured images.
DistanceMetric
Distance metric for vector similarity.
ExtractFormat
Format for extracted content.
MemoryError
Errors that can occur during memory operations.
RetrievalSource
Source of the retrieval result.
WaitUntil
When to consider navigation complete.
WebAdapterError
Errors that can occur during web operations.

Traits§

MemoryService
Core abstraction for memory operations.
WebBrowserAdapter
Core abstraction for web browser operations.

Type Aliases§

MemoryResult
Result type for memory operations.
WebAdapterResult
Result type for web adapter operations.