ZIm/crates/acp_thread
Nathan Sobo a4fe8c6972 Add ModelSelector capability to AgentConnection
- Add ModelSelector trait to acp_thread crate with list_models, select_model, and selected_model methods
- Extend AgentConnection trait with optional model_selector() method returning Option<Rc<dyn ModelSelector>>
- Implement ModelSelector for agent2's AgentConnection using LanguageModelRegistry
- Make selected_model field mandatory on Thread struct
- Update Thread::new to require a default_model parameter
- Update agent2 to fetch default model from registry when creating threads
- Fix prompt method to use the thread's selected model directly
- All methods use &mut AsyncApp for async-friendly operations
2025-08-02 08:28:37 -06:00
..
src Add ModelSelector capability to AgentConnection 2025-08-02 08:28:37 -06:00
Cargo.toml Add ModelSelector capability to AgentConnection 2025-08-02 08:28:37 -06:00
LICENSE-GPL Claude experiment (#34577) 2025-07-17 14:25:55 +00:00