Skip to content

Add environment parameter support#41

Merged
AngeloGiacco merged 2 commits intomainfrom
angelo/envs-support
Mar 16, 2026
Merged

Add environment parameter support#41
AngeloGiacco merged 2 commits intomainfrom
angelo/envs-support

Conversation

@AngeloGiacco
Copy link
Copy Markdown
Collaborator

Summary

  • Add optional environment parameter to ConversationConfig (defaults to null, server defaults to "production")
  • Pass environment as a query parameter to the GET /v1/convai/conversation/token endpoint
  • Add fetchSignedUrl() method to TokenService with environment support for GET /v1/convai/conversation/get_signed_url
  • Add SignedUrlResponse data class

Test plan

  • Verify existing tests pass (no breaking changes — environment defaults to null everywhere)
  • Test public agent token fetch with environment set (e.g. "staging")
  • Test public agent token fetch without environment (default behavior unchanged)
  • Test fetchSignedUrl with and without environment param

🤖 Generated with Claude Code

@AngeloGiacco AngeloGiacco merged commit 68daed5 into main Mar 16, 2026
1 check passed
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.

2 participants