#[non_exhaustive]pub struct CapabilitiesConfig {
pub web_search: WebSearchCapabilityConfig,
}Expand description
Top-level capability configuration entry point.
Structurally equivalent to SessionCapabilitiesConfig; a separate type on
EffectiveConfig is kept so that future non-session-level capabilities can be
added without touching the agent crate. Currently P1 only has web_search
(hosted-only); local grep/glob tools are not part of the capability layer and
are managed separately by [tools.search].
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.web_search: WebSearchCapabilityConfigImplementations§
Source§impl CapabilitiesConfig
impl CapabilitiesConfig
Sourcepub const fn with_web_search(web_search: WebSearchCapabilityConfig) -> Self
pub const fn with_web_search(web_search: WebSearchCapabilityConfig) -> Self
Construct with a single WebSearchCapabilityConfig. Cross-crate callers need
this entry point because the struct is #[non_exhaustive] and cannot be built
with a struct literal directly.
Sourcepub fn to_session_capabilities(self) -> SessionCapabilitiesConfig
pub fn to_session_capabilities(self) -> SessionCapabilitiesConfig
Converts to the agent-side SessionCapabilitiesConfig, for direct consumption
by
DefaultAgentCoreBuilder::capabilities.
Trait Implementations§
Source§impl Clone for CapabilitiesConfig
impl Clone for CapabilitiesConfig
Source§fn clone(&self) -> CapabilitiesConfig
fn clone(&self) -> CapabilitiesConfig
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 moreimpl Copy for CapabilitiesConfig
Source§impl Debug for CapabilitiesConfig
impl Debug for CapabilitiesConfig
Source§impl Default for CapabilitiesConfig
impl Default for CapabilitiesConfig
Source§fn default() -> CapabilitiesConfig
fn default() -> CapabilitiesConfig
Returns the “default value” for a type. Read more
impl Eq for CapabilitiesConfig
Source§impl PartialEq for CapabilitiesConfig
impl PartialEq for CapabilitiesConfig
Source§fn eq(&self, other: &CapabilitiesConfig) -> bool
fn eq(&self, other: &CapabilitiesConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CapabilitiesConfig
Auto Trait Implementations§
impl Freeze for CapabilitiesConfig
impl RefUnwindSafe for CapabilitiesConfig
impl Send for CapabilitiesConfig
impl Sync for CapabilitiesConfig
impl Unpin for CapabilitiesConfig
impl UnsafeUnpin for CapabilitiesConfig
impl UnwindSafe for CapabilitiesConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.