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 tool mode to components, Added current date tool to agent #4439

Merged
merged 652 commits into from
Nov 8, 2024

Conversation

edwinjosechittilappilly
Copy link
Collaborator

@edwinjosechittilappilly edwinjosechittilappilly commented Nov 7, 2024

This pull request includes several updates to the langflow backend, focusing on enhancing the functionality of components and inputs by adding the tool_mode attribute, refining tool handling, and expanding test coverage.

Enhancements to components and inputs:
Added Current Date as tool to Agent.py

Tool handling improvements:

Test coverage expansion:

These changes collectively enhance the functionality and robustness of the langflow backend components and inputs.
Waiting for #4402

ogabrielluiz and others added 30 commits November 4, 2024 15:45
…ponent.spec.ts, sliderComponent.spec.ts, tableInputComponent.spec.ts, stop-button-playground.spec.ts, generalBugs-shard-7.spec.ts): enable tests that were previously skipped to ensure proper functionality and coverage. Remove outdated comments and update test descriptions for clarity.
…TextInput` for `input_value` across starter projects.
Base automatically changed from add-tool-mode-to-field to main November 8, 2024 02:31
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Nov 8, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Nov 8, 2024
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Nov 8, 2024
@edwinjosechittilappilly
Copy link
Collaborator Author

Tested :
With the Fix: #4465
New agents work as expected.

- Introduced `updateComponentCode` function to handle import and input updates more flexibly using regex patterns.
- Updated unit test to utilize the new function for modifying component code, including adding `LinkInput` configuration.
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Nov 8, 2024
ogabrielluiz and others added 3 commits November 8, 2024 08:39
- Added `tool_mode` attribute to `MessageTextInput` in `CalculatorToolComponent` and `URLComponent` to enable tool mode functionality.
- Introduced `add_current_date_tool` option in `AgentComponent` to allow agents to include a tool that returns the current date.
- Updated `AgentComponent` to handle the addition of the current date tool as a `StructuredTool`.
@anovazzi1 anovazzi1 merged commit 0f6098a into main Nov 8, 2024
28 of 29 checks passed
@anovazzi1 anovazzi1 deleted the add-tool-mode-to-components branch November 8, 2024 12:53
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:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants