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

feat: Add Pandas kwargs support for CSV Agent #5372

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

Cristhianzl
Copy link
Member

@Cristhianzl Cristhianzl commented Dec 19, 2024

#5185

This pull request includes enhancements to the CSVAgentComponent class in the src/backend/base/langflow/components/langchain_utilities/csv.py file, focusing on adding support for Pandas keyword arguments.

Key changes include:

Enhancements to CSVAgentComponent:

  • Added DictInput for pandas_kwargs to the inputs list to allow passing Pandas keyword arguments to the agent.
  • Updated the build_agent_response method to include pandas_kwargs in the agent's configuration.
  • Updated the build_agent method to include pandas_kwargs in the agent's configuration.

Import adjustments:

  • Added DictInput import from langflow.inputs.inputs.

image

@Cristhianzl Cristhianzl self-assigned this Dec 19, 2024
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Dec 19, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 19, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 19, 2024
@ogabrielluiz ogabrielluiz added this pull request to the merge queue Dec 19, 2024
Merged via the queue into main with commit b07bd17 Dec 19, 2024
44 of 53 checks passed
@ogabrielluiz ogabrielluiz deleted the cz/csv-agent branch December 19, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants