Skip to content

Commit

Permalink
fix: Exclude unset fields from agent's default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Oct 11, 2024
1 parent 3291120 commit 9e9cbcd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def create_or_update_agent(
data.default_settings = data.default_settings or {}

agent_data = data.model_dump()
default_settings = agent_data.pop("default_settings")
default_settings = data.default_settings.model_dump(exclude_unset=True)

settings_cols, settings_vals = cozo_process_mutate_data(
{
Expand Down

0 comments on commit 9e9cbcd

Please sign in to comment.