ContextSegment
Defined in the context module.Rust AI Agent SDK A segment of context with token count.
Fields
| Name | Type | Description |
|---|---|---|
name | String | Segment name/type |
tokens | usize | Token count for this segment |
priority | i32 | Priority (higher = more important) |
content | Option<String> | Content of the segment |
Methods
new
| Name | Type |
|---|---|
name | impl Into<String> |
tokens | usize |
priority
| Name | Type |
|---|---|
priority | i32 |
content
| Name | Type |
|---|---|
content | impl Into<String> |
Source
View on GitHub
praisonai/src/context/mod.rs at line 54
