Skip to content

Conversation

anjaliratnam-msft
Copy link
Collaborator

Added the user agent for langchain-azure-storage.

Copy link
Collaborator

@kyleknap kyleknap left a comment

Choose a reason for hiding this comment

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

Looks good! Just had two small comments on this one.

Comment on lines 356 to 357
headers = mock_container_client_cls.call_args[1]
assert headers["user_agent"] == user_agent
Copy link
Collaborator

Choose a reason for hiding this comment

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

Small nitpick, but let's name the variable name here client_kwargs as the value passed hear is not directly the user agent value and is more a client configuration value.

] == expected_custom_csv_documents_with_columns


def test_user_agent(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we add a test case for the async client as well?

Copy link
Collaborator

@kyleknap kyleknap left a comment

Choose a reason for hiding this comment

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

Looks good! 🚢

@anjaliratnam-msft anjaliratnam-msft merged commit fbabcc9 into langchain-ai:main Oct 16, 2025
8 checks 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