Skip to content
Snippets Groups Projects
Commit 47bce511 authored by jamescalam's avatar jamescalam
Browse files

chore: lint

parent c0b293d5
No related branches found
No related tags found
No related merge requests found
...@@ -129,10 +129,11 @@ class Utterance(BaseModel): ...@@ -129,10 +129,11 @@ class Utterance(BaseModel):
if include_metadata: if include_metadata:
# we sort the dicts to ensure consistent order as we need this to compare # we sort the dicts to ensure consistent order as we need this to compare
# stringified function schemas accurately # stringified function schemas accurately
function_schemas_sorted = [ if self.function_schemas is not None:
json.dumps(schema, sort_keys=True) function_schemas_sorted = [
for schema in self.function_schemas json.dumps(schema, sort_keys=True)
] for schema in self.function_schemas
]
# we must do the same for metadata # we must do the same for metadata
metadata_sorted = json.dumps(self.metadata, sort_keys=True) metadata_sorted = json.dumps(self.metadata, sort_keys=True)
return f"{self.route}: {self.utterance} | {function_schemas_sorted} | {metadata_sorted}" return f"{self.route}: {self.utterance} | {function_schemas_sorted} | {metadata_sorted}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment