pub struct Resource {
pub abs_path: PathBuf,
pub name: String,
pub description: Option<String>,
pub origin: ResourceOrigin,
}Expand description
A single resolved resource entry — the form that gets rendered into the system prompt.
Fields§
§abs_path: PathBufCanonicalized absolute path on disk. This is the string the agent will use when calling its file-read tool.
name: StringDisplay name — the explicit name from a detailed spec, or the file’s
basename when discovered from a directory or a bare path.
description: Option<String>Optional description, shown in the rendered block after the path.
origin: ResourceOriginWhich tier this resource came from.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resource
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