use crate::{AgentDefinition, AgentKind, AgentModel, AgentSelection, PlanThenImplementAgents};
#[must_use]
pub fn agent_definition(id: &str) -> AgentDefinition {
AgentDefinition {
description: "Test agent".to_string(),
id: id.to_string(),
name: id.to_string(),
prompt: "Follow the supplied task input within session permissions.".to_string(),
read_only: false,
}
}
#[must_use]
pub fn workflow_agents() -> Box<PlanThenImplementAgents> {
Box::new(PlanThenImplementAgents {
implementer: agent_definition("implementer"),
planner: agent_definition("planner"),
})
}
pub const CODEX_MODEL: AgentModel = AgentModel::Gpt61Sol;
pub const CODEX_MODEL_ID: &str = CODEX_MODEL.as_str();
#[must_use]
pub fn codex_selection() -> AgentSelection {
AgentSelection::new(AgentKind::Codex, CODEX_MODEL)
}
#[test]
fn codex_fixture_uses_an_explicit_supported_selection() {
let expected_id = "gpt-6.1-sol";
let selection = codex_selection();
assert_eq!(selection.kind(), AgentKind::Codex);
assert_eq!(selection.model(), CODEX_MODEL);
assert_eq!(CODEX_MODEL_ID, expected_id);
assert_eq!(selection.model().as_str(), expected_id);
assert!(selection.supports_fast_mode());
}