Skip to content

Add make_tool API and BYOK environment variable support#1

Merged
0xeb merged 1 commit intomainfrom
feature/make-tool-and-byok-env-squashed
Jan 20, 2026
Merged

Add make_tool API and BYOK environment variable support#1
0xeb merged 1 commit intomainfrom
feature/make-tool-and-byok-env-squashed

Conversation

@0xeb
Copy link
Owner

@0xeb 0xeb commented Jan 20, 2026

Summary

  • Add make_tool(): Type-safe tool creation from lambdas with automatic JSON schema generation and proper std::optional parameter support
  • Add BYOK (Bring Your Own Key): Load API credentials from environment variables (COPILOT_SDK_BYOK_API_KEY, etc.) via auto_byok_from_env flag in SessionConfig
  • Add default_session_config() and default_resume_config() test helpers
  • Add verbose test descriptions for all E2E tests
  • Skip resume-with-tools tests when BYOK is active (known limitation)
  • Add standalone repro for ResumeSessionWithTools BYOK issue
  • Fix missing <cstdlib> include for std::getenv
  • Fix std::optional parameter handling in make_tool schema generation

@0xeb 0xeb force-pushed the feature/make-tool-and-byok-env-squashed branch from 069c744 to 5d347eb Compare January 20, 2026 13:15
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
@0xeb 0xeb force-pushed the feature/make-tool-and-byok-env-squashed branch from 5d347eb to d3bc23d Compare January 20, 2026 13:20
@0xeb 0xeb merged commit 213716d into main Jan 20, 2026
3 checks passed
@0xeb 0xeb deleted the feature/make-tool-and-byok-env-squashed branch January 20, 2026 13:54
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