sim
sim copied to clipboard
feat(TagImprovement): Improved tag dropdown and outputselect
Summary
Previously we could not filter outputs based on user inputs. From now on outputs of a tool will also support a condition field.
Example: arxiv
Instead of using comments to separate different types of responses like this:
outputs: {
// Search output
papers: { type: 'json', description: 'Found papers data' },
totalResults: { type: 'number', description: 'Total results count' },
// Get Paper Details output
paper: { type: 'json', description: 'Paper details' },
// Get Author Papers output
authorPapers: { type: 'json', description: 'Author papers list' },
},
we can say:
papers: { type: 'json', description: 'Found papers data', condition: {field: 'operation', value: 'arxiv_search'} },
totalResults: { type: 'number', description: 'Total results count', condition: {field: 'operation', value: 'arxiv_search'} },
Fixes #(issue)
Type of Change
- [ ] Bug fix
- [x] New feature
- [ ] Breaking change
- [ ] Documentation
- [ ] Other: ___________
Testing
It is not a breaking change but you can focus on checking the functionality in the app.
Checklist
- [x] Code follows project style guidelines
- [x] Self-reviewed my changes
- [ ] Tests added/updated and passing
- [x] No new warnings introduced
- [x] I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)
Screenshots/Videos
Solves #905
@mhbdev is attempting to deploy a commit to the Sim Team on Vercel.
A member of the Team first needs to authorize it.