Skip to content

Conversation

@vcshih
Copy link

@vcshih vcshih commented Jul 21, 2025

No description provided.

rm-openai and others added 30 commits August 14, 2025 20:06
Some customers have reported that the agent loop can go on for a long
time and use up the entire context window. This PR allows modifying the
data sent to the model.
We were making deep copies, which is (1) inefficient and (2) causes some
pickling errors.

Instead, this PR just makes shallow copies, calling list.copy(). We do
want a shallow copy so that mutations don't affect the original past-end
list.
@rzhao-openai was seeing errors about incoming messages being too large.
Turns out there's a default limit of 2**20 = 1,048,576 bytes.
### Summary

Adds `is_enabled` parameter to `Agent.as_tool()` method for
conditionally enabling/disabling agent tools at runtime. Supports
boolean values and callable functions for dynamic tool filtering
  in multi-agent orchestration.

  ### Test plan

  - Added unit tests in `tests/test_agent_as_tool.py`
- Added example in
`examples/agent_patterns/agents_as_tools_conditional.py`
  - Updated documentation in `docs/tools.md`
  - All tests pass

  ### Issue number

  Closes #1097

  ### Checks

  - [x] I've added new tests (if relevant)
  - [x] I've added/updated the relevant documentation
  - [x] I've run `make lint` and `make format`
  - [x] I've made sure tests pass

---------

Co-authored-by: thein <[email protected]>
Automated update of translated documentation

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Automated update of translated documentation

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Automated update of translated documentation

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Updating external tracing processor lists and added Agenta and linked a
tutorial for integration
Automated update of translated documentation

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
## Summary
- allow configuring retries with exponential backoff when listing tools
or calling a tool on an MCP server via `max_retry_attempts` (supporting
`-1` for unlimited retries) and `retry_backoff_seconds_base`
- propagate the retry parameters through the stdio, SSE, and streamable
HTTP server implementations so callers can tune retries when
constructing these servers
- test that `call_tool` and `list_tools` retry appropriately

## Testing
- `make lint`
- `make mypy`
- `make test` *(fails: No rule to make target 'test')*
- `make tests`
- `make old_version_tests` *(fails: Request failed after 3 retries
(tunnel error))*

------
https://chatgpt.com/codex/tasks/task_i_68a73cab8b9c8321876f6f3dd1dfcd20
…ce (#1548)

For every event a new TypeAdapter is created, which has a significant
performance impact.
<img width="1412" height="1166" alt="image"
src="https://github.com/user-attachments/assets/fc1f9629-9342-4347-b4d5-5e218b73c4e8"
/>
Creating it once and reusing it, makes event handling a lot faster.

Co-authored-by: Michiel De Witte <[email protected]>
Documentation for SQLAlchemy-powered sessions, to be merged after
merging and releasing #1357
jhills20 and others added 30 commits November 17, 2025 13:44
## Summary
- add a `nest_handoff_history` flag to `RunConfig` and call a new helper
that condenses the prior transcript into a developer-role summary when
handing off
- update the default handoff path, docs, and helper library so that the
developer summary is produced automatically unless a custom filter
overrides it
- expand the handoff-focused tests to cover the new behavior (including
helper unit tests) and update existing expectations

## Testing
- `uv run pytest tests/test_extension_filters.py`
- `uv run pytest tests/test_agent_runner.py -k handoff`
- `uv run pytest tests/test_agent_runner_streamed.py -k handoff`


------
https://chatgpt.com/codex/tasks/task_i_68ff73bda0f4832496f3d1fa9103905f
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.