Skip to content
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
459fbf0
feat:support mem0
sunym1991 Nov 21, 2025
11f2a67
feat:fix pre-commit check
sunym1991 Nov 24, 2025
ce58058
feat:fix pre-commit check
sunym1991 Nov 24, 2025
5191f4f
Move mem0 instrumentation to loongsuite instrumentations
Cirilla-zmh Nov 24, 2025
95068db
Remove generated contents
Cirilla-zmh Nov 24, 2025
0065afa
Add changelog file for loongsuite components
Cirilla-zmh Nov 25, 2025
94cce34
feat:mem0 add changelog
sunym1991 Nov 25, 2025
64b2946
Fix generate workflows task
Cirilla-zmh Nov 25, 2025
274ddaa
Fix unit test
Cirilla-zmh Nov 25, 2025
2a4d51d
feat:mem0 support py13 && change uninstrument
sunym1991 Nov 26, 2025
9e4ccdf
Update instrumentation-loongsuite/loongsuite-instrumentation-mem0/src…
sunym1991 Nov 26, 2025
f9762ab
feat:mem0 fix unittests
sunym1991 Nov 26, 2025
864e321
Merge branch 'main' into feat/mem0
sunym1991 Nov 26, 2025
cb1eef6
feat:mem0 remove metric && update span attributes
sunym1991 Nov 27, 2025
9761953
fix tox-loongsuit.ini
sunym1991 Nov 27, 2025
d51c35c
fix tox-loongsuit.ini
sunym1991 Nov 27, 2025
cbbdbc3
fix tox-loongsuit.ini
sunym1991 Nov 27, 2025
c5732d0
fix requirements
sunym1991 Nov 27, 2025
d26e5bb
fix requirements
sunym1991 Nov 27, 2025
62946b2
fix requirements
sunym1991 Nov 27, 2025
a98b54e
fix requirements
sunym1991 Nov 27, 2025
fd96146
disable inner flag
sunym1991 Nov 28, 2025
01daa83
feat:update readme
sunym1991 Dec 1, 2025
2b02805
feat:remove thread pool wrap
sunym1991 Dec 1, 2025
d267595
feat:remove thread pool wrap
sunym1991 Dec 1, 2025
b08f226
update readme
sunym1991 Dec 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/loongsuite_lint_0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Do not edit this file.
# This file is generated automatically by executing tox -e generate-workflows

name: LoongSuite Lint 0

on:
push:
branches-ignore:
- 'release/*'
- 'otelbot/*'
pull_request:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
# Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
# For PRs you can change the inner fallback ('main')
# For pushes you change the outer fallback ('main')
# The logic below is used during releases and depends on having an equivalent branch name in the core repo.
CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}
CONTRIB_REPO_SHA: main
PIP_EXISTS_ACTION: w

jobs:

lint-loongsuite-instrumentation-mem0:
name: LoongSuite loongsuite-instrumentation-mem0
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -c tox-loongsuite.ini -e lint-loongsuite-instrumentation-mem0

224 changes: 224 additions & 0 deletions .github/workflows/loongsuite_test_0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,224 @@
# Do not edit this file.
# This file is generated automatically by executing tox -e generate-workflows

name: LoongSuite Test 0

on:
push:
branches-ignore:
- 'release/*'
- 'otelbot/*'
pull_request:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
# Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
# For PRs you can change the inner fallback ('main')
# For pushes you change the outer fallback ('main')
# The logic below is used during releases and depends on having an equivalent branch name in the core repo.
CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}
CONTRIB_REPO_SHA: main
PIP_EXISTS_ACTION: w

jobs:

py39-test-loongsuite-instrumentation-mem0-oldest_ubuntu-latest:
name: LoongSuite loongsuite-instrumentation-mem0-oldest 3.9 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -c tox-loongsuite.ini -e py39-test-loongsuite-instrumentation-mem0-oldest -- -ra

py39-test-loongsuite-instrumentation-mem0-latest_ubuntu-latest:
name: LoongSuite loongsuite-instrumentation-mem0-latest 3.9 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -c tox-loongsuite.ini -e py39-test-loongsuite-instrumentation-mem0-latest -- -ra

py310-test-loongsuite-instrumentation-mem0-oldest_ubuntu-latest:
name: LoongSuite loongsuite-instrumentation-mem0-oldest 3.10 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -c tox-loongsuite.ini -e py310-test-loongsuite-instrumentation-mem0-oldest -- -ra

py310-test-loongsuite-instrumentation-mem0-latest_ubuntu-latest:
name: LoongSuite loongsuite-instrumentation-mem0-latest 3.10 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -c tox-loongsuite.ini -e py310-test-loongsuite-instrumentation-mem0-latest -- -ra

py311-test-loongsuite-instrumentation-mem0-oldest_ubuntu-latest:
name: LoongSuite loongsuite-instrumentation-mem0-oldest 3.11 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -c tox-loongsuite.ini -e py311-test-loongsuite-instrumentation-mem0-oldest -- -ra

py311-test-loongsuite-instrumentation-mem0-latest_ubuntu-latest:
name: LoongSuite loongsuite-instrumentation-mem0-latest 3.11 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -c tox-loongsuite.ini -e py311-test-loongsuite-instrumentation-mem0-latest -- -ra

py312-test-loongsuite-instrumentation-mem0-oldest_ubuntu-latest:
name: LoongSuite loongsuite-instrumentation-mem0-oldest 3.12 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -c tox-loongsuite.ini -e py312-test-loongsuite-instrumentation-mem0-oldest -- -ra

py312-test-loongsuite-instrumentation-mem0-latest_ubuntu-latest:
name: LoongSuite loongsuite-instrumentation-mem0-latest 3.12 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -c tox-loongsuite.ini -e py312-test-loongsuite-instrumentation-mem0-latest -- -ra

py313-test-loongsuite-instrumentation-mem0-oldest_ubuntu-latest:
name: LoongSuite loongsuite-instrumentation-mem0-oldest 3.13 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -c tox-loongsuite.ini -e py313-test-loongsuite-instrumentation-mem0-oldest -- -ra

py313-test-loongsuite-instrumentation-mem0-latest_ubuntu-latest:
name: LoongSuite loongsuite-instrumentation-mem0-latest 3.13 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -c tox-loongsuite.ini -e py313-test-loongsuite-instrumentation-mem0-latest -- -ra

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
> Use [this search for a list of all CHANGELOG.md files in this repo](https://github.com/search?q=repo%3Aalibaba%2Floongsuite-python-agent+path%3A**%2FCHANGELOG.md&type=code).

## Unreleased

# Added

- `loongsuite-instrumentation-mem0`: add support for mem0
([#67](https://github.com/alibaba/loongsuite-python-agent/pull/67))
3 changes: 2 additions & 1 deletion instrumentation-loongsuite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
| [loongsuite-instrumentation-agno](./loongsuite-instrumentation-agno) | agno >= 1.5.0 | No | development
| [loongsuite-instrumentation-dify](./loongsuite-instrumentation-dify) | dify | No | development
| [loongsuite-instrumentation-langchain](./loongsuite-instrumentation-langchain) | langchain_core >= 0.1.0 | Yes | development
| [loongsuite-instrumentation-mcp](./loongsuite-instrumentation-mcp) | mcp>=1.3.0 | Yes | development
| [loongsuite-instrumentation-mcp](./loongsuite-instrumentation-mcp) | mcp>=1.3.0 | Yes | development
| [loongsuite-instrumentation-mem0](./loongsuite-instrumentation-mem0) | mem0ai >= 1.0.0 | No | development
Loading
Loading