pub struct FileSignalProvider { /* private fields */ }Expand description
Built-in file-based intelligence provider.
Reads quality signals from a JSON file at a specified path.
This is the default provider for systems that write a signal file
to .claude/intelligence/data/. Non-Rust integrations (TypeScript,
Python, etc.) typically use this path.
§File Format
The JSON file should contain an array of QualitySignal objects:
[
{
"id": "task-001",
"task_description": "Implement login endpoint",
"outcome": "success",
"quality_score": 0.92,
"human_verdict": "approved",
"completed_at": "2025-02-21T12:00:00Z"
}
]Implementations§
Trait Implementations§
Source§impl IntelligenceProvider for FileSignalProvider
impl IntelligenceProvider for FileSignalProvider
Source§fn load_signals(&self) -> Result<Vec<QualitySignal>>
fn load_signals(&self) -> Result<Vec<QualitySignal>>
Load quality signals from this provider’s data source. Read more
Source§fn quality_weights(&self) -> Option<ProviderQualityWeights>
fn quality_weights(&self) -> Option<ProviderQualityWeights>
Optional quality weight overrides for this provider’s signals. Read more
Auto Trait Implementations§
impl Freeze for FileSignalProvider
impl RefUnwindSafe for FileSignalProvider
impl Send for FileSignalProvider
impl Sync for FileSignalProvider
impl Unpin for FileSignalProvider
impl UnsafeUnpin for FileSignalProvider
impl UnwindSafe for FileSignalProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more