Skip to content

Commit

Permalink
refactor: Lint agents-api (CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedantsahai18 authored and github-actions[bot] committed Oct 16, 2024
1 parent 002996c commit a3d4030
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion agents-api/agents_api/models/execution/create_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ def create_execution(
data["metadata"] = data.get("metadata", {})
execution_data = data

if execution_data["output"] is not None and not isinstance(execution_data["output"], dict):
if execution_data["output"] is not None and not isinstance(
execution_data["output"], dict
):
execution_data["output"] = {OUTPUT_UNNEST_KEY: execution_data["output"]}

columns, values = cozo_process_mutate_data(
Expand Down
4 changes: 3 additions & 1 deletion agents-api/agents_api/models/execution/get_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
one=True,
transform=lambda d: {
**d,
"output": d["output"][OUTPUT_UNNEST_KEY] if OUTPUT_UNNEST_KEY in d["output"] else d["output"],
"output": d["output"][OUTPUT_UNNEST_KEY]
if OUTPUT_UNNEST_KEY in d["output"]
else d["output"],
},
)
@cozo_query
Expand Down

0 comments on commit a3d4030

Please sign in to comment.