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

Method execute

crates/chat-cli/src/cli/chat/cli/model.rs:80–84  ·  view source on GitHub ↗
(self, os: &Os, session: &mut ChatSession)

Source from the content-addressed store, hash-verified

78pub struct ModelArgs;
79impl ModelArgs {
80 pub async fn execute(self, os: &Os, session: &mut ChatSession) -> Result<ChatState, ChatError> {
81 Ok(select_model(os, session).await?.unwrap_or(ChatState::PromptUser {
82 skip_printing_tools: false,
83 }))
84 }
85}
86
87pub async fn select_model(os: &Os, session: &mut ChatSession) -> Result<Option<ChatState>, ChatError> {

Callers

nothing calls this directly

Calls 1

select_modelFunction · 0.85

Tested by

no test coverage detected