Skip to content

Add C++ Microsoft Foundry agent samples - #1

Merged
El Bruno (elbruno) merged 3 commits into
mainfrom
cpp-hosted-agent
Aug 28, 2026
Merged

Add C++ Microsoft Foundry agent samples#1
El Bruno (elbruno) merged 3 commits into
mainfrom
cpp-hosted-agent

Conversation

@elbruno

Copy link
Copy Markdown
Contributor

Summary

  • add C++ console and hosted agent samples for Microsoft Foundry
  • add HTTP transport, configuration handling, and tests
  • align the repository structure and sample naming conventions

- Implement main agent logic in src/main.cpp, including signal handling and server setup.
- Create unit tests for host functionality in tests/host_tests.cpp, covering invocation parsing, port validation, and readiness checks.
- Add vcpkg configuration files (vcpkg-configuration.json and vcpkg.json) for dependency management.
- Document the architecture and implementation details in a new research markdown file (cpp-agents-with-microsoft-foundry.md).
…management

- Added configuration management in `config.cpp` to handle environment variables and validate project endpoint.
- Implemented HTTP transport using `libcurl` in `http_transport.cpp` for making requests to the Foundry service.
- Created a main entry point in `main.cpp` to initialize the agent and handle requests.
- Developed unit tests for agent functionality in `agent_tests.cpp` and configuration validation in `config_tests.cpp`.
- Introduced fake transport and credential classes for testing purposes in `fake_transport.hpp`.
- Set up CMake configuration files for building the project and managing dependencies with vcpkg.
- Created Dockerfile and Azure deployment configuration for hosting the agent in a containerized environment.
- Implemented a host server in `host.cpp` to manage incoming requests and invoke the agent.
- Added tests for the host server functionality in `host_tests.cpp`.
@elbruno
El Bruno (elbruno) merged commit dd7739d into main Aug 28, 2026
4 of 6 checks passed
@elbruno
El Bruno (elbruno) deleted the cpp-hosted-agent branch August 28, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant