feat(sdk/cpp): Add vision sample, auto-download NuGet deps, and SDK README#697
Merged
apsonawane merged 19 commits intomainfrom May 8, 2026
Merged
feat(sdk/cpp): Add vision sample, auto-download NuGet deps, and SDK README#697apsonawane merged 19 commits intomainfrom
apsonawane merged 19 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a new Windows-focused C++ sample that calls a local Foundry web service using the /v1/responses endpoint for vision + SSE streaming, including build plumbing via CMake/vcpkg and stb-based image preprocessing.
Changes:
- Introduces a C++ vision streaming sample using libcurl (SSE) and stb (load/resize/JPEG/base64).
- Adds vcpkg manifest + baseline configuration for sample dependencies.
- Adds CMake project wiring that builds the Foundry Local C++ SDK as a subdirectory and links WinML EP Catalog libs.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| samples/cpp/web-server-responses-vision/main.cpp | Implements image preprocessing, SSE parsing/streaming via libcurl, and Foundry Local web service orchestration. |
| samples/cpp/web-server-responses-vision/stb_impl.cpp | Provides single TU stb implementations for image load/resize/write used by the sample. |
| samples/cpp/web-server-responses-vision/CMakeLists.txt | Adds a standalone build for the sample and links to the Foundry SDK, curl, and WinML deps. |
| samples/cpp/web-server-responses-vision/vcpkg.json | Declares vcpkg dependencies needed by the sample. |
| samples/cpp/web-server-responses-vision/vcpkg-configuration.json | Pins a vcpkg builtin registry baseline for reproducible builds. |
| samples/cpp/web-server-responses-vision/README.md | Documents prerequisites, build/run steps, and a high-level flow explanation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This reverts commit 8a13c8d.
baijumeswani
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(sdk/cpp): Add Responses API vision sample with auto-download build system
Adds a C++ vision sample, NuGet auto-download build infrastructure, SDK README, and
find_package(FoundryLocal)supportWhat's included
Vision sample (
sdk/cpp/sample/web-server-responses-vision/)samples/python/web-server-responses-visionSDK build improvements (
sdk/cpp/CMakeLists.txt)fl_ensure_nuget_package()fl_copy_runtime_dlls(TARGET)— copies all runtime DLLs next to any executableWebServerResponsesVision(requires curl)find_package(FoundryLocal)support (sdk/cpp/cmake/FoundryLocalConfig.cmake)find_package(FoundryLocal REQUIRED)FoundryLocal::FoundryLocalandfl_copy_runtime_dlls()helperSDK README (
sdk/cpp/README.md)Files changed (13 files, +1129 lines)
sdk/cpp/CMakeLists.txtfl_copy_runtime_dlls(), vision sample target, install rulessdk/cpp/README.mdsdk/cpp/cmake/FoundryLocalConfig.cmakefind_package(FoundryLocal)support (new)sdk/cpp/vcpkg.jsoncurl,stbdependenciessdk/cpp/test/model_variant_test.cppboolnotvoidsdk/cpp/sample/web-server-responses-vision/main.cppsdk/cpp/sample/web-server-responses-vision/stb_impl.cppsdk/cpp/sample/web-server-responses-vision/CMakeLists.txtsdk/cpp/sample/web-server-responses-vision/CMakePresets.jsonsdk/cpp/sample/web-server-responses-vision/README.mdsdk/cpp/sample/web-server-responses-vision/test_image.jpgsdk/cpp/sample/web-server-responses-vision/vcpkg.jsonsdk/cpp/sample/web-server-responses-vision/vcpkg-configuration.jsonBuild & run