#include "include/flow/flow_factory.h" #include namespace openmanus { std::shared_ptr FlowFactory::createFlow( FlowType flow_type, std::shared_ptr agent ) { switch (flow_type) { case FlowType::PLANNING: return std::make_shared(agent); default: throw std::runtime_error("未知的流程类型"); } } std::shared_ptr FlowFactory::createFlow( FlowType flow_type, const std::vector>& agents ) { switch (flow_type) { case FlowType::PLANNING: return std::make_shared(agents); default: throw std::runtime_error("未知的流程类型"); } } } // namespace openmanus