mirror of
https://github.com/openai/codex.git
synced 2026-05-29 15:30:22 +00:00
Add Python SDK dangerous bypass mode
This commit is contained in:
@@ -98,6 +98,11 @@ def response_approval_policy(response: Any) -> str:
|
||||
return response.model_dump(by_alias=True, mode="json")["approvalPolicy"]
|
||||
|
||||
|
||||
def response_sandbox_type(response: Any) -> str:
|
||||
"""Return serialized sandbox policy type from a generated thread response."""
|
||||
return response.model_dump(by_alias=True, mode="json")["sandbox"]["type"]
|
||||
|
||||
|
||||
def agent_message_texts(events: list[Notification]) -> list[str]:
|
||||
"""Extract completed agent-message text from SDK notifications."""
|
||||
texts: list[str] = []
|
||||
|
||||
Reference in New Issue
Block a user