pub struct CodeGraphContextRequest {
pub repository: CodeRepositorySelector,
pub query: String,
pub limit: usize,
pub freshness_policy: FreshnessPolicy,
pub max_context_bytes: usize,
pub include_code: bool,
pub exclude_generated: bool,
}Expand description
Agent-facing one-call code graph context request.
Fields§
§repository: CodeRepositorySelector§query: String§limit: usize§freshness_policy: FreshnessPolicy§max_context_bytes: usize§include_code: bool§exclude_generated: boolImplementations§
Source§impl CodeGraphContextRequest
impl CodeGraphContextRequest
Sourcepub fn new(
repository: CodeRepositorySelector,
query: impl Into<String>,
limit: usize,
freshness_policy: FreshnessPolicy,
max_context_bytes: usize,
include_code: bool,
exclude_generated: bool,
) -> Result<Self, DomainError>
pub fn new( repository: CodeRepositorySelector, query: impl Into<String>, limit: usize, freshness_policy: FreshnessPolicy, max_context_bytes: usize, include_code: bool, exclude_generated: bool, ) -> Result<Self, DomainError>
Validates text and hard bounds before context orchestration starts.
Trait Implementations§
Source§impl Clone for CodeGraphContextRequest
impl Clone for CodeGraphContextRequest
Source§fn clone(&self) -> CodeGraphContextRequest
fn clone(&self) -> CodeGraphContextRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodeGraphContextRequest
impl Debug for CodeGraphContextRequest
Source§impl<'de> Deserialize<'de> for CodeGraphContextRequest
impl<'de> Deserialize<'de> for CodeGraphContextRequest
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
impl Eq for CodeGraphContextRequest
Source§impl PartialEq for CodeGraphContextRequest
impl PartialEq for CodeGraphContextRequest
Source§impl Serialize for CodeGraphContextRequest
impl Serialize for CodeGraphContextRequest
impl StructuralPartialEq for CodeGraphContextRequest
Auto Trait Implementations§
impl Freeze for CodeGraphContextRequest
impl RefUnwindSafe for CodeGraphContextRequest
impl Send for CodeGraphContextRequest
impl Sync for CodeGraphContextRequest
impl Unpin for CodeGraphContextRequest
impl UnsafeUnpin for CodeGraphContextRequest
impl UnwindSafe for CodeGraphContextRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.