---
type: email
from: Paolo Magnani <notifications@github.com>
subject: [openai/openai-agents-python] How to track finish_reason when using

 the Runner class (Issue #1406)
received: 2026-03-05 09:55:20
date_header: Fri, 08 Aug 2025 03:45:56 -0700
priority: normal
status: awaiting_approval
uid: 26914
---

## Email Content

**From:** Paolo Magnani <notifications@github.com>
**Subject:** [openai/openai-agents-python] How to track finish_reason when using

 the Runner class (Issue #1406)
**Date:** Fri, 08 Aug 2025 03:45:56 -0700

### Body (preview)

paulthemagno created an issue (openai/openai-agents-python#1406)



Hi! I'm trying to figure out how to track the `finish_reason` of my agents when using the `Runner` class.

Before switching to this repo, I was monitoring the `finish_reason` from each completion and logging them to one of my services. Is there a similar way to do this here?



I noticed these two documentation links about exceptions:



- https://openai.github.io/openai-agents-python/running_agents/#exceptions

- https://openai.github.io/openai-agents-python/ref/exceptions/



However, I couldn’t find any specific point where `finish_reason` is handled.

Are they automatically managed in some way by the Agents?



Thank you



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/issues/1406

You are receiving this because you are subscribed to this thread.



Message ID: <openai/openai-agents-python/issues/1406@github.com>

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
