add more cli features and styling
refactoring
This commit is contained in:
@@ -12,11 +12,11 @@ pub enum HumanInterfaceError {
|
||||
}
|
||||
|
||||
pub trait HumanInterface {
|
||||
fn agent_message(&self, message: String);
|
||||
fn agent_message(&mut self, message: String);
|
||||
|
||||
fn expect_user_message(&self) -> impl Future<Output = Result<String, HumanInterfaceError>>;
|
||||
fn expect_user_message(&mut self) -> impl Future<Output = Result<String, HumanInterfaceError>>;
|
||||
|
||||
fn ask_for_permission(&self, mcp_server_name: String, tool_name:String) -> impl Future<Output = Result<PermissionAnswer, HumanInterfaceError>>;
|
||||
|
||||
fn run(&self) -> impl Future<Output = Result<(), HumanInterfaceError>>;
|
||||
fn run(&mut self) -> impl Future<Output = Result<(), HumanInterfaceError>>;
|
||||
}
|
||||
Reference in New Issue
Block a user