Skip to content

Conversation

@fenilfaldu
Copy link
Contributor

📥 Pull Request

closes #1001

📘 Description

  • Added User-Agent header to the default headers in the HttpClient.get_session() method.
  • Updated the prepare_headers method in the V4Client class to include the User-Agent header

🧪 Testing

  • Added unit tests to verify the User-Agent header is correctly set in the session headers.

@codecov
Copy link

codecov bot commented May 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@fenilfaldu fenilfaldu requested review from bboynton97 and tcdent May 23, 2025 21:43
Copy link
Contributor

@tcdent tcdent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is perfect! Well done!

Copy link
Contributor

@bboynton97 bboynton97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets gooo fenil

@bboynton97 bboynton97 merged commit 54c4570 into main May 24, 2025
10 checks passed
@bboynton97 bboynton97 deleted the headers-updated branch May 24, 2025 01:08
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.

Set User-Agent header on requests to api.agentops.ai

4 participants