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

fix: handle Message in path input in CSVAgentComponent #4784

Merged
merged 3 commits into from
Nov 22, 2024

Conversation

mieslep
Copy link
Contributor

@mieslep mieslep commented Nov 22, 2024

This pull request introduces a helper method to handle the path attribute in the CSVAgentComponent class in the src/backend/base/langflow/components/langchain_utilities/csv.py file. The main changes include the addition of the _path method and its integration into the existing methods for building agents.

Key changes:

  • Added _path method to handle path attribute conversion from Message to str. (src/backend/base/langflow/components/langchain_utilities/csv.py)
  • Updated build_agent_response method to use the new _path method for path attribute. (src/backend/base/langflow/components/langchain_utilities/csv.py)
  • Updated build_agent method to use the new _path method for path attribute. (src/backend/base/langflow/components/langchain_utilities/csv.py)

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Nov 22, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 22, 2024
@ogabrielluiz ogabrielluiz changed the title fixing problem handling path type in CSVAgentComponent fix: handle Message in path input in CSVAgentComponent Nov 22, 2024
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Nov 22, 2024
@ogabrielluiz ogabrielluiz enabled auto-merge (squash) November 22, 2024 17:22
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Nov 22, 2024
@ogabrielluiz ogabrielluiz merged commit 68a0b7d into langflow-ai:main Nov 22, 2024
27 checks passed
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
)

* fixing problem handling path type

* Add type check for 'path.text' in CSV utility function

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
@mieslep mieslep deleted the phil/fix-csv-agent branch December 4, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants