tessl install tessl/pypi-rdkit@2024.9.0Platform wheels for RDKit - a comprehensive cheminformatics and machine-learning library with Python bindings
Agent Success
Agent success rate when using this tile
89%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.01x
Baseline
Agent success rate without this tile
88%
Build a tool that analyzes chemical compounds by breaking them down into meaningful structural fragments and provides insights about their composition.
Your tool should:
Your program should provide:
Input: CCO (ethanol)
Expected behavior: Should successfully fragment the molecule and return a list of fragments
@test
Input: CC(C)Cc1ccc(cc1)C(C)C(O)=O (ibuprofen)
Expected behavior: Should fragment into multiple chemically sensible fragments
@test
Input: INVALID (invalid SMILES string)
Expected behavior: Should handle the error gracefully and return an appropriate message
@test
@generates
def fragment_molecule(smiles: str) -> dict:
"""
Fragments a molecule into chemically meaningful pieces.
Args:
smiles: A SMILES string representing the molecule
Returns:
A dictionary containing:
- 'fragments': list of unique fragment SMILES strings (empty list if error)
- 'count': total number of unique fragments (0 if error)
- 'error': error message string if input is invalid, None otherwise
"""
passProvides cheminformatics capabilities for molecular analysis and fragmentation.