WIP
This commit is contained in:
parent
fd8ea2acfc
commit
251baacdab
12 changed files with 75 additions and 33 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue