---
title: python-agent-120100
source: https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes/python-agent-120100
---

## Notes

This release of the Python agent adds support for time to first token and fixes an incompatible [Flask](https://pypi.org/project/Flask/) `add_url_rule` function signature.

Install the agent using `easy_install/pip/distribute` via the [Python Package Index](https://pypi.python.org/pypi/newrelic), using `conda` via the [Conda-Forge Package Index](https://anaconda.org/conda-forge/newrelic), or download it directly from the [New Relic download site](https://download.newrelic.com/python_agent/release).

## New features

-   Added time to first token for LLM response streams:

    -   The agent records a new attribute,`time_to_first_token` on `LlmChatCompletionSummary` events for [OpenAI](https://pypi.org/project/openai/) and [Bedrock](https://docs.aws.amazon.com/bedrock/) response streams. This attribute measures the duration between the initial request and the first token received in the response.

## Bugs fixes

-   Resolved [Flask](https://pypi.org/project/Flask/) `add_url_rule` function signature mismatch

    -   Updated the instrumentation for [Flask](https://pypi.org/project/Flask/)'s to align its `add_url_rule` function signature with the native Flask implementation. This fix prevents potential application crashes caused by the previous signature mismatch.

## Support statement

We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read [more](https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/) about keeping agents up to date.

See the New Relic Python agent [EOL policy](https://docs.newrelic.com/docs/apm/agents/python-agent/getting-started/python-agent-eol-policy/) for information about agent releases and support dates.
