Fix query input #74
Reference in New Issue
Block a user
Delete Branch "fix-query-input"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Alcuni prompt non venivano seguiti a pieno dagli agenti, dato che avevano più possibili interpretazioni.
Soprattutto la parte della Source che ogni tanto veniva inventata come CoinGecko o il querycheck che andava in loop infinito per qualche ragione.
Pull Request Overview
This PR enhances the agent pipeline to prevent fabrication of information and improve data handling by making agents more explicit about missing data sources and adding input sanitization.
remove_thinkutility methodReviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
@@ -111,0 +112,4 @@def sanitization_output(step_input: StepInput) -> StepOutput:val = step_input.previous_step_contentcontent = f"Query: {step_input.input}\n\nRetrieved data: {self.remove_think(str(val))}"return StepOutput(content=content)The
remove_thinkmethod is called as an instance method usingself, but it's defined as a@classmethod. This will cause the method to receive the wrong first argument. Either change the call tocls.remove_think(str(val))or remove the@classmethoddecorator from the method definition.[nitpick] The docstring is in Italian while the rest of the codebase documentation appears to be in Italian as well. However, for consistency with method parameter naming which uses English terms ('text'), consider documenting in English or ensure all new documentation follows the established pattern throughout the codebase.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.