pub enum KbCommands {
Show 15 variants
Init {
agent_id: String,
name: String,
},
Note {
agent_id: String,
title: String,
content: String,
},
NoteWithId {
agent_id: String,
luhmann_id: String,
title: String,
content: String,
},
Branch {
agent_id: String,
parent_note_id: Uuid,
title: String,
content: String,
},
List {
agent_id: String,
},
Get {
note_id: Uuid,
},
GetByLuhmann {
agent_id: String,
luhmann_id: String,
},
Link {
from: Uuid,
to: Uuid,
context: Option<String>,
},
Backlinks {
note_id: Uuid,
},
Related {
note_id: Uuid,
depth: usize,
},
Tree {
agent_id: String,
prefix: String,
},
Search {
agent_id: String,
query: String,
},
Tag {
note_id: Uuid,
tag: String,
},
Tags {
agent_id: String,
},
Graph {
note_id: Uuid,
depth: usize,
},
}Variants§
Init
Initialize a knowledge base for an agent
Note
Create a new note with auto-generated Luhmann ID
NoteWithId
Create a note with specific Luhmann ID (e.g., 1a2b)
Branch
Branch from an existing note (create child)
List
List all notes in an agent’s knowledge base
Get
Get a specific note by ID
GetByLuhmann
Get a note by its Luhmann address
Link
Link two notes together
Backlinks
Show backlinks (notes that link to this note)
Related
Show related notes within N hops
Tree
Show notes by Luhmann ID prefix
Search
Search notes
Tag
Add a tag to a note
Tags
List all tags for an agent
Graph
Show the graph around a note
Trait Implementations§
Source§impl FromArgMatches for KbCommands
impl FromArgMatches for KbCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for KbCommands
impl Subcommand for KbCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for KbCommands
impl RefUnwindSafe for KbCommands
impl Send for KbCommands
impl Sync for KbCommands
impl Unpin for KbCommands
impl UnsafeUnpin for KbCommands
impl UnwindSafe for KbCommands
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more