Skip to content

feat(api): document agent tool limits - #4035

Closed
dpiet-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-212
Closed

dpiet-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-212

Conversation

@dpiet-oai

@dpiet-oai dpiet-oai commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

clarify the 3 MiB tool limit for beta agents and sessions.

Changes

  • Document the 3 MiB compact UTF-8 JSON limit for tools passed to agent creation.
  • Explain omission, clearing and size limits for agent updates and session tool overrides.

Castiron-Internal-PR: openai/openai-python-internal#212
Castiron-Source-SHA: d46d676aedd2b44ad95da81da39ddc44f2d8b712
Castiron-Public-Base-SHA: 4e152cd
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Castiron custom code

Evaluated main: 4e152cdefe1844c2d5d78653310e9b9c0195c44e.

✅ No new custom-code files detected.

46 mixed files remain; 0 existing customizations changed.

Compared 4e152cdefe18 → 07bef2bfe9b2. Generated baselines verified.

46 existing customizations unchanged
  • api.md
  • src/openai/init.py
  • src/openai/_client.py
  • src/openai/resources/audio/transcriptions.py
  • src/openai/resources/audio/translations.py
  • src/openai/resources/beta/agents/environments/files.py
  • src/openai/resources/beta/agents/sessions/artifacts.py
  • src/openai/resources/beta/agents/sessions/sessions.py
  • src/openai/resources/beta/beta.py
  • src/openai/resources/beta/responses/responses.py
  • src/openai/resources/beta/threads/runs/runs.py
  • src/openai/resources/beta/threads/threads.py
  • src/openai/resources/chat/completions/completions.py
  • src/openai/resources/embeddings.py
  • src/openai/resources/files.py
  • src/openai/resources/live/forks.py
  • src/openai/resources/live/live.py
  • src/openai/resources/live/sideband.py
  • src/openai/resources/realtime/api.md
  • src/openai/resources/realtime/realtime.py
  • src/openai/resources/responses/responses.py
  • src/openai/resources/uploads/uploads.py
  • src/openai/resources/vector_stores/file_batches.py
  • src/openai/resources/vector_stores/files.py
  • src/openai/resources/videos.py
  • src/openai/resources/webhooks/init.py
  • src/openai/resources/webhooks/webhooks.py
  • src/openai/types/beta/agent_session_message.py
  • src/openai/types/chat/init.py
  • src/openai/types/chat/chat_completion_message_tool_call.py
  • src/openai/types/fine_tuning/fine_tuning_job_integration.py
  • src/openai/types/realtime/conversation_item_input_audio_transcription_delta_event.py
  • src/openai/types/realtime/realtime_error_event.py
  • src/openai/types/responses/init.py
  • src/openai/types/responses/response.py
  • src/openai/types/responses/response_function_web_search.py
  • src/openai/types/responses/response_function_web_search_param.py
  • src/openai/types/responses/responses_client_event.py
  • src/openai/types/responses/responses_client_event_param.py
  • src/openai/types/responses/tool.py

6 more in the full report.

A changed generated baseline means this report cannot reliably identify which handwritten lines changed.

Inspect the custom-code diff

Download the exact patch produced by this run (requires repository access):

gh run download 37666043324 --repo openai/openai-python \
  --name castiron-custom-code-37666043324-1 --dir /tmp/castiron-custom-code-37666043324-1
git apply --stat /tmp/castiron-custom-code-37666043324-1/custom-code.patch
cat /tmp/castiron-custom-code-37666043324-1/custom-code.patch

Or reproduce it from an SDK checkout containing the vendored reporter:

git fetch --no-tags origin 4e152cdefe1844c2d5d78653310e9b9c0195c44e 07bef2bfe9b2c3c872a5bc00e985b53ccfb4a2de
python3 scripts/castiron/custom_code_report.py report \
  --base 4e152cdefe1844c2d5d78653310e9b9c0195c44e \
  --head 07bef2bfe9b2c3c872a5bc00e985b53ccfb4a2de --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-07bef2bfe9b2
cat /tmp/castiron-custom-code-07bef2bfe9b2/custom-code.patch

This is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR.

Full report and patch

@dpiet-oai dpiet-oai closed this Oct 7, 2026
@dpiet-oai
dpiet-oai deleted the castiron/promotions/pr-212 branch October 7, 2026 19:19
@dpiet-oai dpiet-oai changed the title feat(api): expose decision compute units and document agent tool limits feat(api): document agent tool limits Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant