{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "opensparx-masteragent--embed-runtime-in-cpp-app",
 "repo": "OpenSparX/MasterAgent",
 "repo_url": "https://github.com/OpenSparX/MasterAgent",
 "repo_slug": "opensparx-masteragent",
 "title": "Add phrase-routed tools to a C++ app",
 "page_title": "How to add phrase-routed tools to a C++ app with Master Agent",
 "summary": "Link the installed SDK into your own C++ program and register host tools with exact-phrase skills.",
 "who": "A C++ engineer who has an existing application and needs a text or voice command layer that only calls approved functions.",
 "problem": "Wiring free-form input straight to application functions is risky, so the app needs a runtime that checks tool names and arguments first.",
 "outcome": "Your application links Master Agent::Core, registers a tool and phrase skills, and returns typed results from Runtime::run().",
 "steps": [
  "Install the SDK with `cmake --install build --prefix \"$PWD/install-sdk\"` after the build step.",
  "Read the public API in `include/master_agent/runtime/reference_runtime.h` and the rules in the integration contract at `docs/reference_runtime.md`.",
  "Add `find_package(MasterAgent CONFIG REQUIRED)` and `target_link_libraries(your_app PRIVATE MasterAgent::Core)` to your CMakeLists.txt.",
  "Register a tool with a supported parameter schema and callback, then register exact phrase skills.",
  "Build the consumer with `cmake -S examples/reference_agent -B build-consumer -DCMAKE_PREFIX_PATH=\"$PWD/install-sdk\"` and `cmake --build build-consumer` as a reference, then run `ctest --test-dir build-consumer --output-on-failure`. (inferred, check the README)"
 ],
 "agent_prompt": "Using the repo OpenSparX/MasterAgent, add MasterAgent::Core to <your app target> in CMake, register one tool and one exact-phrase skill from reference_runtime.h, and call Runtime::run() on a test phrase. Expected output is a typed tool result, not free text. Verify that an unknown tool name is rejected.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README says the schema support is a primitive object subset and the SDK is a small synchronous runtime, so plan your tool shapes around that.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "c++",
 "requirements": [
  "CMake 3.18+ and a C++17 compiler on Linux or macOS",
  "Python 3 for tests and packaging",
  "libcurl development files only if you want the HTTP model adapter",
  "SQLite development files only if you want durable storage"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/opensparx-masteragent/embed-runtime-in-cpp-app/",
 "md": "https://dedupedai.com/use-cases/opensparx-masteragent/embed-runtime-in-cpp-app/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/opensparx-masteragent--embed-runtime-in-cpp-app.json",
 "api_version": "v1"
}
