|
Entropic 2.9.5
Local-first agentic inference engine
|
Shared XML <parameter=...>value</parameter> extractor.
More...

Go to the source code of this file.
Namespaces | |
| namespace | entropic |
| Activate model on GPU (WARM → ACTIVE). | |
Functions | |
| std::unordered_map< std::string, std::string > | entropic::inference::adapters::parse_xml_parameters (const std::string &func_body, const std::shared_ptr< spdlog::logger > &logger) |
Extract <parameter=NAME>value</parameter> pairs from a function body. | |
Shared XML <parameter=...>value</parameter> extractor.
Definition in file xml_parameter_parser.cpp.
| std::unordered_map< std::string, std::string > entropic::inference::adapters::parse_xml_parameters | ( | const std::string & | func_body, |
| const std::shared_ptr< spdlog::logger > & | logger | ||
| ) |
Extract <parameter=NAME>value</parameter> pairs from a function body.
gh#79 fix: tolerates </NAME> close tags in addition to the literal </parameter>. See the helper definitions above and the header for full contract.
@utility
Returns a map keyed by parameter name. Empty keys / values (after trim) are skipped with a warning. The </NAME> close-tag tolerance is the gh#79 fix.
| func_body | Function body text (between <function=name> and the matching </function>). |
| logger | Adapter-owned logger for warn messages. May be null — the parser is silent in that case. |
Definition at line 116 of file xml_parameter_parser.cpp.