pub struct CodeToolConfig {
pub name: String,
pub source: Source,
pub glob: Vec<String>,
pub include_non_utf8: bool,
pub summary_file: Option<String>,
}Expand description
Configuration for a repository’s source code access.
Fields§
§name: StringName of the repository (used to identify it in tool calls).
source: SourceSource of the repository code.
glob: Vec<String>Glob patterns to filter which files are included from the tarball. If non-empty, only files matching at least one pattern are kept. Uses gitignore-style glob syntax (e.g., “.rs”, “src/**/.rs”).
include_non_utf8: boolInclude files that aren’t valid UTF-8 (using lossy conversion). By default (false), non-UTF-8 files are skipped entirely.
summary_file: Option<String>Path to a file containing a summary/description of the codebase. If present, the agent can request a summary of the repository.
Trait Implementations§
Source§impl Clone for CodeToolConfig
impl Clone for CodeToolConfig
Source§fn clone(&self) -> CodeToolConfig
fn clone(&self) -> CodeToolConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodeToolConfig
impl Debug for CodeToolConfig
Source§impl<'de> Deserialize<'de> for CodeToolConfig
impl<'de> Deserialize<'de> for CodeToolConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CodeToolConfig
impl PartialEq for CodeToolConfig
impl Eq for CodeToolConfig
impl StructuralPartialEq for CodeToolConfig
Auto Trait Implementations§
impl Freeze for CodeToolConfig
impl RefUnwindSafe for CodeToolConfig
impl Send for CodeToolConfig
impl Sync for CodeToolConfig
impl Unpin for CodeToolConfig
impl UnwindSafe for CodeToolConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)