Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
FileMatch
Defined in the context module.
Rust AI Agent SDK
A file match from a search.
Fields
| Name | Type | Description |
|---|
path | String | File path (relative to workspace) |
relevance_score | f32 | Relevance score (0.0 to 1.0) |
line_ranges | Vec<LineRange> | Matching line ranges |
Methods
new
fn new(path: impl Into<String>) -> Self
Create a new file match.
Parameters:
| Name | Type |
|---|
path | impl Into<String> |
relevance_score
fn relevance_score(mut self, score: f32) -> Self
Set relevance score.
Parameters:
line_range
fn line_range(mut self, range: LineRange) -> Self
Add a line range.
Parameters:
Source
View on GitHub
praisonai/src/context/mod.rs at line 597