use ironflow_store::models::StepKind;
use crate::config::{AgentStepConfig, StepConfig};
use crate::context::WorkflowContext;
use crate::error::EngineError;
use crate::executor::StepOutput;
impl WorkflowContext {
pub async fn agent(
&mut self,
name: &str,
config: impl Into<AgentStepConfig>,
) -> Result<StepOutput, EngineError> {
self.execute_step(name, StepKind::Agent, StepConfig::Agent(config.into()))
.await
}
}