// SPDX-License-Identifier: MIT #pragma once #include #include // Nimble framing needs every question. Detect the callable signature rather // than a revision number so older decision-capable forks keep working too. template void localai_fill_decision_task(const Decision & decision, const State & state, const Questions & questions, Args &&... args) { if constexpr (std::is_invocable_v) { decision.fill_task(state, questions, std::forward(args)...); } else { decision.fill_task(state, std::forward(args)...); } }