Skip to content

sgns::neoswarm

Namespaces

Name
sgns::neoswarm::api
sgns::neoswarm::core
sgns::neoswarm::elm
sgns::neoswarm::fp4
sgns::neoswarm::knowledge
sgns::neoswarm::network
sgns::neoswarm::reputation
sgns::neoswarm::router
sgns::neoswarm::security
sgns::neoswarm::specialists

Classes

Name
struct sgns::neoswarm::ChainStep
struct sgns::neoswarm::ELMContext
struct sgns::neoswarm::ExecutionChain
struct sgns::neoswarm::InferenceResponse
struct sgns::neoswarm::KnowledgeFact
struct sgns::neoswarm::NodeOutput
struct sgns::neoswarm::NodeReputation
struct sgns::neoswarm::PromptFeatures
struct sgns::neoswarm::RouteDecision
struct sgns::neoswarm::Task

Types

Name
enum class uint8_t Error
enum class uint8_t ExecutionMode
enum class uint8_t RouteTarget
enum class uint8_t ELMRole
using std::shared_ptr< spdlog::logger > Logger
Logger sgns::base::Logger convention.

Functions

Name
Logger CreateLogger(const std::string & tag)
Create a named logger for a NEO SWARM component.

Types Documentation

enum Error

Enumerator Value Description
ModelLoadFailed 1
InferenceFailed 2
TokenizerFailed 3
FP4DecodeFailed 4
RoutingFailed 5
NetworkError 6
PeerNotFound 7
BroadcastTimeout 8
StorageError 9
ReputationNotFound 10
KnowledgeUnavailable 11
FactValidationFailed 12
IdentityError 13
SignatureInvalid 14
InvalidArgument 15
NotImplemented 16
InternalError 17

enum ExecutionMode

Enumerator Value Description
SingleNode 0 Mode 1 — Core LLM only, fast.
Specialist 1 Mode 2 — Core + Grammar/Math, sequential.
Swarm 2 Mode 3 — Multiple nodes, weighted consensus.
ElmAssisted 3 Mode 2 (doc 07 §9.2) — ELM-assisted sequential chain (Phase 7+)

enum RouteTarget

Enumerator Value Description
CoreOnly 0
CorePlusMath 1
CorePlusGrammar 2
CorePlusCode 3 Future.

enum ELMRole

Enumerator Value Description
Planner 0 Analyses task, determines execution plan.
PrimaryDraft 1 Core draft generation (shared backbone)
Verifier 2 Reviews outputs for correctness.
Arbiter 3 Resolves conflicts between outputs.
Refiner 4 Polishes formatting, style, grammar.
Grounding 5 Fact-checks against knowledge base.
ToolSupport 6 Tool-call formatting (stub in Phase 7)
Math 7 Domain ELM — math.
Code 8 Domain ELM — code.
Science 9 Domain ELM — science (shared-backbone only)

using Logger

using sgns::neoswarm::Logger = typedef std::shared_ptr<spdlog::logger>;

Logger sgns::base::Logger convention.

Functions Documentation

function CreateLogger

inline Logger CreateLogger(
    const std::string & tag
)

Create a named logger for a NEO SWARM component.

Parameters:

  • tag Component name shown in log output (e.g. "Router", "P2PNode").

Return: Logger instance.


Updated on 2026-07-25 at 22:56:56 +0000