The Game Agent SDK provides on-device building blocks for AI companions, with a C99 ABI and a thin C++ wrapper for natural integration into game engines and other native applications. A companion uses AI inferencing locally on the end user's GPU with a small language model (SLM). The SDK exposes three groups of APIs:
Building from source requires Visual Studio 2019 or later (or the equivalent VS Build Tools).
setup.bat
build.bat
setup.bat generates Visual Studio project files under _project/vs2022/. build.bat builds the Release configuration; pass -debug for Debug.
The four models bundled with the SDK (one SLM, two embedders, and a cross-encoder reranker; ~3 GB total) are not stored in this repository. Download the source zip from the NVIDIA Developer Portal and extract data/models/ into your checkout. The source zip is a complete working tree, so it can also be used directly without a separate git clone.
Sample executables land in _out/. Agent-Sample is a good place to begin, a poker assistant that demonstrates the Agent APIs:
cd _out
Agent-Sample.exe
The available samples demonstrate how the SDK can be integrated for various use cases; they are intended as starting points and further tuning would be needed to improve response quality in a real application.
Agent-Sample.exe: poker assistant on the Agent APIs. The SDK drives the inference-and-tool-call loop across two tools: search (poker knowledge, backed by RAG) and check_status (game state).Chat-Sample.exe: a simplified version of the same poker assistant on the Chat APIs, with the application driving the loop directly. Same prompt, tools, and RAG pipeline.MultiAgent-Sample.exe: two Agents sharing one SLM, with distinct identities and conversation histories.Run any sample with -h for command-line options. For a full walkthrough of all samples, see Samples.
BuildRag.exe is also included -- a tool for building a semantic or lexical RAG database from raw text files. See Building a RAG database.
For API details, architecture, and in-depth sample walkthroughs, the documentation is the best place to start beyond this README:
package.bat creates a redistributable SDK zip with the version number you supply when prompted. package_nomodels.bat creates a smaller zip without the bundled models.
The Game Agent SDK is licensed under the Apache License 2.0 (see LICENSE.txt). Third-party components and their licenses are listed in THIRD-PARTY-LICENSES.md.
484 followers · starred Aug 2026
C++
85.1%
C
7.8%
Batchfile
3.6%
Lua
3.5%
The Game Agent SDK provides on-device building blocks for AI companions, with a C99 ABI and a thin C++ wrapper for natural integration into game engines and other native applications. A companion uses AI inferencing locally on the end user's GPU with a small language model (SLM). The SDK exposes three groups of APIs:
Building from source requires Visual Studio 2019 or later (or the equivalent VS Build Tools).
setup.bat
build.bat
setup.bat generates Visual Studio project files under _project/vs2022/. build.bat builds the Release configuration; pass -debug for Debug.
The four models bundled with the SDK (one SLM, two embedders, and a cross-encoder reranker; ~3 GB total) are not stored in this repository. Download the source zip from the NVIDIA Developer Portal and extract data/models/ into your checkout. The source zip is a complete working tree, so it can also be used directly without a separate git clone.
Sample executables land in _out/. Agent-Sample is a good place to begin, a poker assistant that demonstrates the Agent APIs:
cd _out
Agent-Sample.exe
The available samples demonstrate how the SDK can be integrated for various use cases; they are intended as starting points and further tuning would be needed to improve response quality in a real application.
Agent-Sample.exe: poker assistant on the Agent APIs. The SDK drives the inference-and-tool-call loop across two tools: search (poker knowledge, backed by RAG) and check_status (game state).Chat-Sample.exe: a simplified version of the same poker assistant on the Chat APIs, with the application driving the loop directly. Same prompt, tools, and RAG pipeline.MultiAgent-Sample.exe: two Agents sharing one SLM, with distinct identities and conversation histories.Run any sample with -h for command-line options. For a full walkthrough of all samples, see Samples.
BuildRag.exe is also included -- a tool for building a semantic or lexical RAG database from raw text files. See Building a RAG database.
For API details, architecture, and in-depth sample walkthroughs, the documentation is the best place to start beyond this README:
package.bat creates a redistributable SDK zip with the version number you supply when prompted. package_nomodels.bat creates a smaller zip without the bundled models.
The Game Agent SDK is licensed under the Apache License 2.0 (see LICENSE.txt). Third-party components and their licenses are listed in THIRD-PARTY-LICENSES.md.
484 followers · starred Aug 2026
C++
85.1%
C
7.8%
Batchfile
3.6%
Lua
3.5%