(self, os: &Os, session: &mut ChatSession)
| 78 | pub struct ModelArgs; |
| 79 | impl 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 | |
| 87 | pub async fn select_model(os: &Os, session: &mut ChatSession) -> Result<Option<ChatState>, ChatError> { |
nothing calls this directly
no test coverage detected