Skip to content

elm/tool_support_elm.hpp

ToolSupportELM — interface-conforming stub (D-18), pass-through with confidence=0. More...

Namespaces

Name
sgns
sgns::neoswarm
sgns::neoswarm::elm

Classes

Name
class sgns::neoswarm::elm::ToolSupportELM
Stub ELM for tool-call formatting (D-18).

Detailed Description

ToolSupportELM — interface-conforming stub (D-18), pass-through with confidence=0.

Date: 2026-07-17

Source code

#ifndef NEOSWARM_ELM_TOOL_SUPPORT_ELM_HPP
#define NEOSWARM_ELM_TOOL_SUPPORT_ELM_HPP

#include "i_elm.hpp"
#include "common/types.hpp"

namespace sgns::neoswarm::elm
{
    class ToolSupportELM : public IELM
    {
        public:
        ToolSupportELM() = default;

        std::string GetName() const override
        {
            return "ToolSupport";
        }

        ELMRole GetRole() const override
        {
            return ELMRole::ToolSupport;
        }

        bool IsLoaded() const override
        {
            return false;
        }

        float GetConfidence() const override
        {
            return m_lastConfidence;
        }

        outcome::result<void> Load( const std::string& model_path ) override;

        outcome::result<std::string> Process( const std::string& input, const ELMContext& context ) override;

        private:
        float m_lastConfidence = 0.0f;
    };

} // namespace sgns::neoswarm::elm

#endif // NEOSWARM_ELM_TOOL_SUPPORT_ELM_HPP

Updated on 2026-10-09 at 03:59:42 +0000