Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-wu-97 committed Dec 20, 2023
1 parent 212f964 commit 97026ab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ async def generate_argument_decisions(

def entity_to_json_schema_obj(entity: IEntity):
d = {"const": entity.get_identity()}
if entity.get_description is not None:
d["description"] = entity.get_description()
if (description := entity.get_description()) is not None:
d["description"] = description
return d


Expand Down

0 comments on commit 97026ab

Please sign in to comment.