MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / get_all

Method get_all

crates/chat-cli/src/util/knowledge_store.rs:370–372  ·  view source on GitHub ↗

Get all contexts from agent client

(&self)

Source from the content-addressed store, hash-verified

368
369 /// Get all contexts from agent client
370 pub async fn get_all(&self) -> Result<Vec<KnowledgeContext>, String> {
371 Ok(self.agent_client.get_contexts().await)
372 }
373
374 /// Search - delegates to async client
375 pub async fn search(&self, query: &str, context_id: Option<&str>) -> Result<Vec<SearchResult>, KnowledgeError> {

Callers 3

invokeMethod · 0.80
handle_showMethod · 0.80
update_context_by_idMethod · 0.80

Calls 1

get_contextsMethod · 0.45

Tested by

no test coverage detected