mathysgrapotte commited on
Commit
fe5b81a
·
1 Parent(s): 538e5b1

change search_edam tool so that it returns strings instead of thing classes so that the model can directly pass those into other functions later

Browse files
Files changed (1) hide show
  1. tools/fetch_ontology_tools.py +1 -1
tools/fetch_ontology_tools.py CHANGED
@@ -70,7 +70,7 @@ def search_edam_ontology_by_search_term(search_term: str = None) -> list:
70
  if len(matches) > 10:
71
  print(f"... and {len(matches) - 10} more results")
72
 
73
- return matches
74
 
75
  @tool
76
  def get_edam_description_from_ontology_format_class(term_id: str) -> str:
 
70
  if len(matches) > 10:
71
  print(f"... and {len(matches) - 10} more results")
72
 
73
+ return [match.name for match in matches]
74
 
75
  @tool
76
  def get_edam_description_from_ontology_format_class(term_id: str) -> str: