LineRange
Defined in the context module.Rust AI Agent SDK A line range within a file.
Fields
| Name | Type | Description |
|---|---|---|
start | usize | Start line (1-indexed) |
end | usize | End line (1-indexed) |
content | Option<String> | Content of the lines (optional) |
relevance_score | f32 | Relevance score (0.0 to 1.0) |
Methods
new
| Name | Type |
|---|---|
start | usize |
end | usize |
content
| Name | Type |
|---|---|
content | impl Into<String> |
relevance_score
| Name | Type |
|---|---|
score | f32 |
line_count
Source
View on GitHub
praisonai/src/context/mod.rs at line 555
