Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions crates/goose/src/agents/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ use tokio_util::sync::CancellationToken;
use tracing::{debug, error, info, instrument, warn};

use super::final_output_tool::FinalOutputTool;
use super::model_selector::autopilot::AutoPilot;
use super::platform_tools;
use super::tool_execution::{ToolCallResult, CHAT_MODE_TOOL_SKIPPED_RESPONSE, DECLINED_RESPONSE};
use crate::agents::subagent_task_config::TaskConfig;
Expand Down Expand Up @@ -105,7 +104,6 @@ pub struct Agent {
pub(super) scheduler_service: Mutex<Option<Arc<dyn SchedulerTrait>>>,
pub(super) retry_manager: RetryManager,
pub(super) tool_inspection_manager: ToolInspectionManager,
pub(super) autopilot: Mutex<AutoPilot>,
}

#[derive(Clone, Debug)]
Expand Down Expand Up @@ -180,7 +178,6 @@ impl Agent {
scheduler_service: Mutex::new(None),
retry_manager: RetryManager::new(),
tool_inspection_manager: Self::create_default_tool_inspection_manager(),
autopilot: Mutex::new(AutoPilot::new()),
}
}

Expand Down Expand Up @@ -933,19 +930,6 @@ impl Agent {
break;
}

{
let mut autopilot = self.autopilot.lock().await;
if let Some((new_provider, role, model)) = autopilot.check_for_switch(&conversation, self.provider().await?).await? {
debug!("AutoPilot switching to {} role with model {}", role, model);
self.update_provider(new_provider).await?;

yield AgentEvent::ModelChange {
model: model.clone(),
mode: format!("autopilot:{}", role),
};
}
}

let conversation_with_moim = super::moim::inject_moim(
conversation.clone(),
&self.extension_manager,
Expand Down
1 change: 0 additions & 1 deletion crates/goose/src/agents/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ pub mod extension_manager_extension;
pub mod final_output_tool;
mod large_response_handler;
pub mod mcp_client;
pub mod model_selector;
pub mod moim;
pub mod platform_tools;
pub mod prompt_manager;
Expand Down
28 changes: 0 additions & 28 deletions crates/goose/src/agents/model_selector/README.md

This file was deleted.

Loading