This commit is contained in:
Conrad Irwin 2025-08-15 14:46:52 -06:00
parent fd8ea2acfc
commit 251baacdab
12 changed files with 75 additions and 33 deletions

View file

@ -1,4 +1,4 @@
use crate::AcpThread;
use crate::{AcpThread, AcpThreadMetadata};
use agent_client_protocol::{self as acp};
use anyhow::Result;
use collections::IndexMap;
@ -26,6 +26,8 @@ pub trait AgentConnection {
cx: &mut App,
) -> Task<Result<Entity<AcpThread>>>;
fn list_threads(&self, _cx: &mut App) -> Task<Result<Vec<AcpThreadMetadata>>>;
fn auth_methods(&self) -> &[acp::AuthMethod];
fn authenticate(&self, method: acp::AuthMethodId, cx: &mut App) -> Task<Result<()>>;
@ -264,6 +266,10 @@ mod test_support {
unimplemented!()
}
fn list_threads(&self, _: &mut App) -> Task<Result<Vec<AcpThreadMetadata>>> {
unimplemented!()
}
fn prompt(
&self,
_id: Option<UserMessageId>,