Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date_time_parser #25763

Merged
merged 2 commits into from
Aug 27, 2024
Merged

date_time_parser #25763

merged 2 commits into from
Aug 27, 2024

Conversation

venkatram-dev
Copy link
Contributor

@venkatram-dev venkatram-dev commented Aug 27, 2024

Thank you for contributing to LangChain!

  • PR title: "langchain: Chains: query_constructor: add date time parser"

  • PR message:

  • Add tests and docs: If you're adding a new integration, please include

    1. a test for the integration, preferably unit tests that do not rely on network access,
    2. an example notebook showing its use. It lives in docs/docs/integrations directory.
  • Lint and test: Run make format, make lint and make test from the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/

Additional guidelines:

  • Make sure optional dependencies are imported within a function.
  • Please do not add dependencies to pyproject.toml files (even optional ones) unless they are required for unit tests.
  • Most PRs should not touch more than one package.
  • Changes should be backwards compatible.
  • If you are adding something to community, do not re-import it in langchain.

If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17.

Copy link

vercel bot commented Aug 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Aug 27, 2024 4:37pm

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. langchain Related to the langchain package labels Aug 27, 2024
@ccurme ccurme added the needs test PR needs to be updated with tests label Aug 27, 2024
@ccurme
Copy link
Collaborator

ccurme commented Aug 27, 2024

Hello, would you mind adding a test for the new functionality? Thanks.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Aug 27, 2024
Comment on lines +164 to +169
except Exception as e:
# If any other unexpected exception type is raised
if expected is None:
assert True # Correctly identified that input was invalid
else:
pytest.fail(f"Unhandled exception {e} for input {x}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

what other exceptions are we expecting here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It could be redundant, but was just worried if something like lark error might go unnoticed silently.

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Aug 27, 2024
@ccurme ccurme merged commit 48b579f into langchain-ai:master Aug 27, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
langchain Related to the langchain package lgtm PR looks good. Use to confirm that a PR is ready for merging. needs test PR needs to be updated with tests size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants