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: Enhance tool mapping and output rendering with animations #4481

Merged
merged 15 commits into from
Nov 11, 2024

Conversation

ogabrielluiz
Copy link
Contributor

This pull request improves the tool block mapping by utilizing unique tool keys that combine the tool name and run ID. Additionally, it enhances the rendering of tool outputs in the ContentDisplay component by supporting both Markdown and JSON formatting. Animations have also been added for block titles and content separators in the ContentBlockDisplay component, providing a smoother user experience.

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request 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
Copy link

codspeed-hq bot commented Nov 8, 2024

CodSpeed Performance Report

Merging #4481 will improve performances by 17.12%

Comparing small-fixes-playground (fcf5c78) with main (1188812)

Summary

⚡ 2 improvements
✅ 13 untouched benchmarks

Benchmarks breakdown

Benchmark main small-fixes-playground Change
test_invalid_run_with_input_type_chat 16.5 ms 14.1 ms +17.12%
test_successful_run_with_input_type_any 531 ms 457.3 ms +16.14%

@ogabrielluiz ogabrielluiz force-pushed the small-fixes-playground branch from f928e2b to 9869564 Compare November 11, 2024 11:44
Copy link
Contributor

@anovazzi1 anovazzi1 left a comment

Choose a reason for hiding this comment

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

lgtm

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 11, 2024
@ogabrielluiz ogabrielluiz force-pushed the small-fixes-playground branch from 9ccdf77 to fcf5c78 Compare November 11, 2024 16:21
@ogabrielluiz ogabrielluiz enabled auto-merge (squash) November 11, 2024 16:29
@anovazzi1 anovazzi1 disabled auto-merge November 11, 2024 16:30
@anovazzi1 anovazzi1 enabled auto-merge (squash) November 11, 2024 16:30
@anovazzi1 anovazzi1 merged commit 06b7450 into main Nov 11, 2024
31 checks passed
@anovazzi1 anovazzi1 deleted the small-fixes-playground branch November 11, 2024 16:32
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
…flow-ai#4481)

* Enhance tool block mapping by using unique tool keys with name and run_id

* Enhance tool output rendering with Markdown and JSON formatting in ContentDisplay component

* Add animations for block title and content separators in ContentBlockDisplay component

* Allow 'size' prop to accept string values and update styling in BorderTrail component

* Adjust BorderTrail animation size and duration based on expansion state

* fix both borders trailing at the same time

* [autofix.ci] apply automated fixes

* fix text sizing

* fix spacing issues

* Adjust header title and text styling in ContentBlockDisplay and DurationDisplay components

* Refactor header title in ContentBlockDisplay component

* [autofix.ci] apply automated fixes

* Convert `test_handle_on_tool_start` to an async function and update tool content key logic

* Handle logger without 'opt' method in code parsing error handling

* Update test duration values in .test_durations file

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
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.

2 participants