elm/elm_chain_builder.hpp¶
Maps RouteDecision + PromptFeatures to ExecutionChain (doc 03 §6.2) More...
Namespaces¶
| Name |
|---|
| sgns |
| sgns::neoswarm |
| sgns::neoswarm::elm |
Classes¶
| Name | |
|---|---|
| class | sgns::neoswarm::elm::ELMChainBuilder Stateless chain builder that maps routing decisions and prompt features to an ordered ExecutionChain using 6 heuristic triggers (doc 03 §6.2). |
| struct | sgns::neoswarm::elm::ELMChainBuilder::Config |
Detailed Description¶
Maps RouteDecision + PromptFeatures to ExecutionChain (doc 03 §6.2)
Date: 2026-07-17
Source code¶
#ifndef NEOSWARM_ELM_ELM_CHAIN_BUILDER_HPP
#define NEOSWARM_ELM_ELM_CHAIN_BUILDER_HPP
#include "common/error.hpp"
#include "common/types.hpp"
namespace sgns::neoswarm::elm
{
class ELMChainBuilder
{
public:
struct Config
{
float numeric_density_threshold_ = 0.30f;
float complexity_high_threshold_ = 5.0f;
float complexity_low_threshold_ = 2.0f;
float confidence_threshold_ = 0.6f;
};
ELMChainBuilder();
explicit ELMChainBuilder( Config cfg );
ExecutionChain Build( const RouteDecision& decision, const PromptFeatures& features );
private:
Config m_cfg;
};
} // namespace sgns::neoswarm::elm
#endif // NEOSWARM_ELM_ELM_CHAIN_BUILDER_HPP
Updated on 2026-10-09 at 03:59:42 +0000