Add approval callback TODO

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-05-09 13:49:35 +03:00
parent d80a43263f
commit 7edbdc555c
2 changed files with 4 additions and 2 deletions

View File

@@ -932,6 +932,8 @@ def _model_arg_lines(
for field in fields:
value = field.py_name
if field.py_name == "approval_policy":
# TODO: Add a public approval callback API that lets callers return
# typed approval results, then honor caller-supplied policies.
value = "_approval_policy_never(approval_policy)"
lines.append(f"{indent}{field.wire_name}={value},")
return lines