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

Method get_agent

crates/chat-cli/src/cli/chat/cli/knowledge.rs:106–108  ·  view source on GitHub ↗

Get the current agent from the session

(session: &ChatSession)

Source from the content-addressed store, hash-verified

104
105 /// Get the current agent from the session
106 fn get_agent(session: &ChatSession) -> Option<&crate::cli::Agent> {
107 session.conversation.agents.get_active()
108 }
109
110 async fn execute_operation(&self, os: &Os, session: &mut ChatSession) -> OperationResult {
111 match self {

Callers

nothing calls this directly

Calls 1

get_activeMethod · 0.80

Tested by

no test coverage detected