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: Rename AgentQL components and add prompt parameter #6834

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

wjwjtf
Copy link

@wjwjtf wjwjtf commented Feb 26, 2025

This PR introduces the following changes

  • updates in terminologies of our AgentQL component
  • addition of prompt parameter, which serves as an alternative to AgentQL query for specifying what data to extract.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Feb 26, 2025
@github-actions github-actions bot added the bug Something isn't working label Feb 26, 2025
@@ -14,32 +14,32 @@


class AgentQL(Component):
display_name = "AgentQL Query Data"
description = "Uses AgentQL API to extract structured data from a given URL."
display_name = "AgentQL Extract Web Data"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
display_name = "AgentQL Extract Web Data"
display_name = "Extract Web Data"

@@ -73,6 +73,7 @@ def build_output(self) -> Data:
headers = {
"X-API-Key": self.api_key,
"Content-Type": "application/json",
"X-TF-Request-Origin": "langflow",
Copy link
Contributor

Choose a reason for hiding this comment

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

rm

display_name = "AgentQL Query Data"
description = "Uses AgentQL API to extract structured data from a given URL."
display_name = "AgentQL Extract Web Data"
description = "Extracts structured data from a web page using an AgentQL query or a Natural Language description."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
description = "Extracts structured data from a web page using an AgentQL query or a Natural Language description."
description = "Extracts structured data from a web page using an AgentQL query."

tool_mode=True,
),
MultilineInput(
name="query",
display_name="AgentQL Query",
required=True,
info="The AgentQL query to execute. Read more at https://docs.agentql.com/agentql-query.",
info="The AgentQL query to execute. Learn more at https://docs.agentql.com/agentql-query or use a prompt.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
info="The AgentQL query to execute. Learn more at https://docs.agentql.com/agentql-query or use a prompt.",
info="The AgentQL query to execute. Learn more at https://docs.agentql.com/agentql-query.",

@wjwjtf wjwjtf changed the title fix: Rename AgentQL components fix: Rename AgentQL components and add prompt parameter Feb 27, 2025
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Feb 27, 2025
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Feb 27, 2025
@wjwjtf wjwjtf requested review from colriot February 27, 2025 23:51
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Feb 27, 2025
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Feb 27, 2025
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants