Add make_tool API and BYOK environment variable support#1
Merged
Conversation
069c744 to
5d347eb
Compare
Features: - make_tool(): Type-safe tool creation from lambdas with automatic JSON schema generation and std::optional parameter support - BYOK (Bring Your Own Key): Load API credentials from environment variables (COPILOT_SDK_BYOK_API_KEY, etc.) via auto_byok_from_env Test improvements: - Add verbose test descriptions for all 38 E2E tests - Add default_session_config() and default_resume_config() helpers - Skip resume-with-tools tests when BYOK is active (not supported) - Add standalone repro for ResumeSessionWithTools BYOK issue Bug fixes: - Add missing <cstdlib> include for std::getenv - Handle std::optional params correctly in make_tool schema generation
5d347eb to
d3bc23d
Compare
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.
Summary
make_tool(): Type-safe tool creation from lambdas with automatic JSON schema generation and properstd::optionalparameter supportCOPILOT_SDK_BYOK_API_KEY, etc.) viaauto_byok_from_envflag in SessionConfigdefault_session_config()anddefault_resume_config()test helpers<cstdlib>include forstd::getenvstd::optionalparameter handling inmake_toolschema generation