pub enum NativePurpose {
Analysis,
Setup,
ContextEnrichment,
}Expand description
The only product purposes that may opt into the native Sessions launch contract.
This enum is intentionally closed: a caller cannot use the launch artifact to select an arbitrary profile, agent, cwd, or command. The GenBI runtime chooses a purpose and vendor, then materializes the corresponding Warble profile in a server-owned scope.
Variants§
Implementations§
Source§impl NativePurpose
impl NativePurpose
pub fn parse(value: &str) -> Option<Self>
pub fn as_str(self) -> &'static str
pub fn claude_agent(self) -> &'static str
pub fn codex_skill(self) -> &'static str
pub fn codex_description(self) -> &'static str
Sourcepub fn welcome_prompt(self) -> &'static str
pub fn welcome_prompt(self) -> &'static str
The one initial interactive prompt for this closed native purpose.
This is deliberately data owned by the producer’s purpose enum, rather than a browser value or terminal write. Both vendor CLIs accept one positional prompt while staying interactive, so it is passed as a single argv element without invoking a shell.
pub fn validate_profile(self, ir: &WarbleIr) -> Result<(), DispatchError>
Trait Implementations§
Source§impl Clone for NativePurpose
impl Clone for NativePurpose
Source§fn clone(&self) -> NativePurpose
fn clone(&self) -> NativePurpose
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 NativePurpose
Source§impl Debug for NativePurpose
impl Debug for NativePurpose
impl Eq for NativePurpose
Source§impl PartialEq for NativePurpose
impl PartialEq for NativePurpose
impl StructuralPartialEq for NativePurpose
Auto Trait Implementations§
impl Freeze for NativePurpose
impl RefUnwindSafe for NativePurpose
impl Send for NativePurpose
impl Sync for NativePurpose
impl Unpin for NativePurpose
impl UnsafeUnpin for NativePurpose
impl UnwindSafe for NativePurpose
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.