12 Commits

Author SHA1 Message Date
Kazuhiro Sera 05d6850da5 feat: add scripted model test utilities (#4362) 2026-08-13 11:20:33 +09:00
Kazuhiro Sera 4720150fde fix: bind tool approvals to concrete invocations (#4257) 2026-08-07 11:59:01 +00:00
Kazuhiro Sera 9f4292e5d8 fix: resolve agent tool name collisions consistently (#4137) 2026-08-03 04:54:49 +00:00
Kazuhiro Sera 697a46c4ba fix: redact non-tool trace error details (#3848) 2026-07-16 18:23:51 +09:00
Shaurya Singh 813a00324e fix: redact invalid JSON payload in ModelBehaviorError data (#3485) 2026-05-21 23:54:12 +00:00
Kazuhiro Sera 02bf923d72 perf: speed up make tests with xdist and deterministic waits (#2563) 2026-03-01 12:42:55 +09:00
Kazuhiro Sera cdc0ad6b26 fix: #2061 handle invalid tool arguments JSON without crashing (#2337) 2026-01-20 10:46:30 +09:00
Daniele Morotti 71968625cc Added RunErrorDetails object for MaxTurnsExceeded exception (#743)
### Summary

Introduced the `RunErrorDetails` object to get partial results from a
run interrupted by `MaxTurnsExceeded` exception. In this proposal the
`RunErrorDetails` object contains all the fields from `RunResult` with
`final_output` set to `None` and `output_guardrail_results` set to an
empty list. We can decide to return less information.

@rm-openai At the moment the exception doesn't return the
`RunErrorDetails` object for the streaming mode. Do you have any
suggestions on how to deal with it? In the `_check_errors` function of
`agents/result.py` file.

### Test plan

I have not implemented any tests currently, but if needed I can
implement a basic test to retrieve partial data.

### Issue number

This PR is an attempt to solve issue #719 

### Checks

- [ ] I've added new tests (if relevant)
- [ ] I've added/updated the relevant documentation
- [ ] I've run `make lint` and `make format`
- [ ] I've made sure tests pass
2025-05-29 16:11:33 -04:00
pakrym-oai 6d95a3f191 Mark handoff span as errored when multiple handoffs are requested (#344)
Also includes the set of requested agents in the error data.
<img width="968" alt="image"
src="https://github.com/user-attachments/assets/0c5c2e81-08f7-445c-bbb0-3e169ef744a5"
/>
2025-03-26 10:44:59 -04:00
Alex Hall 7031d4ab87 Remove redundant weaker tracing assertions 2025-03-20 13:49:38 +02:00
Alex Hall c03d314fb8 Stronger tracing tests with inline-snapshot 2025-03-11 22:57:14 +02:00
Rohan Mehta aaec57a426 Initial commit 2025-03-11 09:42:28 -07:00