feat(api): add Agents API - #695
Conversation
Castiron-Internal-PR: openai/openai-ruby-internal#71 Castiron-Source-SHA: 158509d17ef21c865f48b60bdb74de2e63e1d760 Castiron-Public-Base-SHA: 18cca40
Castiron custom codeMixed files: 65 → 69 4 newly customized · 0 customizations removed · 3 existing customizations changed · 1 generated baselines changed Compared
61 existing customizations unchanged
21 more in the full report. A changed generated baseline means this report cannot reliably identify which handwritten lines changed. Inspect the custom-code diffDownload the exact patch produced by this run (requires repository access): gh run download 34520713152 --repo openai/openai-ruby \
--name castiron-custom-code-34520713152-1 --dir /tmp/castiron-custom-code-34520713152-1
git apply --stat /tmp/castiron-custom-code-34520713152-1/custom-code.patch
cat /tmp/castiron-custom-code-34520713152-1/custom-code.patchOr reproduce it from an SDK checkout containing the vendored reporter: git fetch --no-tags origin 18cca401092d30da148f5a77707e8a167122e959 1b2ebfbb2ba4557497500df5fd787e8bf37a8060
python3 scripts/castiron/custom_code_report.py report \
--base 18cca401092d30da148f5a77707e8a167122e959 \
--head 1b2ebfbb2ba4557497500df5fd787e8bf37a8060 --fetch --require-head-hash --public \
--out /tmp/castiron-custom-code-1b2ebfbb2ba4
cat /tmp/castiron-custom-code-1b2ebfbb2ba4/custom-code.patchThis is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1b2ebfbb2b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @raw_stream = @sessions.events.stream_streaming(@session_id, request_options: @options) | ||
| begin | ||
| @sessions.events.create( |
There was a problem hiding this comment.
Avoid exhausting single-connection transports
When the client uses the supported OpenAI::NetHTTPClient.new(size: 1) configuration, opening this GET stream keeps the sole same-origin pooled connection checked out until the response body closes; the following events.create POST therefore waits for that connection until the request timeout and never submits the turn. The current mock transport does not reproduce connection retention, so the helper should either support or explicitly reject this configuration and cover it with the real transport.
AGENTS.md reference: AGENTS.md:L56-L60
Useful? React with 👍 / 👎.
Add the
beta.agentsAPI.OpenAI-Beta: agents=v1header.beta.agents.sessions.stream(...): Stream one turn on an idle session.AgentSessionMessage#output_text: Join a message’s output-text blocks into one string.