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: improve component configuration and input clarity #5267

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

rodrigosnader
Copy link
Contributor

@rodrigosnader rodrigosnader commented Dec 14, 2024

This pull request includes several updates to the StructuredOutputComponent class in the src/backend/base/langflow/components/helpers/structured_output.py file. The changes mainly focus on enhancing the component's configuration options and improving the clarity of its inputs.

Enhancements to StructuredOutputComponent:

  • Added a name attribute with the value "StructuredOutput" to the component.
  • Marked the Language Model input as required and added detailed information about its purpose.
  • Updated the Input Message input to be in tool mode and provided additional information.
  • Added an advanced attribute to the Schema Name input to indicate it is an advanced option.
  • Marked the Output Schema input as required and provided detailed information about its purpose.
  • Added an advanced attribute to the Generate Multiple input to indicate it is an advanced option.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Dec 14, 2024
Copy link
Member

@Cristhianzl Cristhianzl 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 Dec 16, 2024
@Cristhianzl
Copy link
Member

image

The component worked as a tool for the Agent.

@Cristhianzl Cristhianzl changed the title Add tool mode to structured output component feat: improve component configuration and input clarity Dec 16, 2024
@Cristhianzl Cristhianzl enabled auto-merge (squash) December 16, 2024 14:01
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 16, 2024
@ogabrielluiz ogabrielluiz force-pushed the structured_output_tool branch from 3841fa3 to 50d8e8f Compare December 16, 2024 14:33
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 16, 2024
@Cristhianzl Cristhianzl merged commit c82aeb2 into main Dec 16, 2024
33 checks passed
@Cristhianzl Cristhianzl deleted the structured_output_tool branch December 16, 2024 14:39
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