mirror of
https://github.com/openai/codex.git
synced 2026-05-19 02:33:10 +00:00
Document pinned schema generation helpers
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -82,6 +82,7 @@ def _item_completed_notification(
|
||||
text: str = "final text",
|
||||
phase: MessagePhase | None = None,
|
||||
) -> Notification:
|
||||
"""Build a realistic completed-item notification accepted by generated models."""
|
||||
item: dict[str, object] = {
|
||||
"id": "item-1",
|
||||
"text": text,
|
||||
@@ -93,6 +94,7 @@ def _item_completed_notification(
|
||||
method="item/completed",
|
||||
payload=ItemCompletedNotification.model_validate(
|
||||
{
|
||||
# The pinned runtime schema requires completion timestamps.
|
||||
"completedAtMs": 1,
|
||||
"item": item,
|
||||
"threadId": thread_id,
|
||||
|
||||
Reference in New Issue
Block a user