Skip to content

Commit d6db947

Browse files
committed
fix(agents-api): fix handeling settings as None in prompt_step
1 parent 7c4db02 commit d6db947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: agents-api/agents_api/activities/task_steps/prompt_step.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ async def prompt_step(context: StepContext) -> StepOutcome:
116116
passed_settings: dict = context.current_step.model_dump(
117117
exclude=excluded_keys, exclude_unset=True
118118
)
119-
passed_settings.update(passed_settings.pop("settings", {}))
119+
passed_settings.update(passed_settings.pop("settings", {}) or {})
120120

121121
if not passed_settings.get("tools"):
122122
passed_settings.pop("tool_choice", None)

0 commit comments

Comments
 (0)