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

## Notes

This release of the Python agent adds support for Redis commands introduced in Redis v8.10.0 and redis-py v8.1.0. This release also resolves the issue of missing LlmChatCompletion events in LangChain when using MCP tools.

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 Redis commands introduced in Redis v8.10.0 and redis-py v8.1.0

    -   The Python agent now supports the following recently added commands in [Redis](https://pypi.org/project/redis/):
        -   `himport_discard_all`
        -   `himport_discard`
        -   `himport_prepare`
        -   `lmovem`
        -   `nrange`
        -   `nrevrange`
        -   `querylabels`
        -   `read`
        -   `sdiffcard`
        -   `sunioncard`
        -   `aliaslist`

## Bugs

-   Fixed missing LlmChatCompletion events in Gemini when using MCP tools

    -   Previously, `LlmChatCompletionMessages` and `LlmChatCompletionSummary` events were missing in [Gemini](https://pypi.org/project/google-genai/) when using tools in a [LangChain](https://pypi.org/project/langchain/) agent, if the response format was not the default JSON.  This has been resolved.

-   Swapped to trace cache ID in LangChain and Agent Framework

    -   For context propagation purposes, swap the [LangChain](https://pypi.org/project/langchain/) and [Agent Framework](https://pypi.org/project/agent-framework/) instrumentation to only store the trace cache ID rather than the full trace in a reference attribute. This is to prevent these objects from getting serialized unexpectedly in the case of leaks. The ID is a much smaller object while the trace could contain MBs of data.

## 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.
