Skip to content

Commit e519645

Browse files
authored
Add support for mem0 (#67)
2 parents 2897b91 + b08f226 commit e519645

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+18563
-1
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Do not edit this file.
2+
# This file is generated automatically by executing tox -e generate-workflows
3+
4+
name: LoongSuite Lint 0
5+
6+
on:
7+
push:
8+
branches-ignore:
9+
- 'release/*'
10+
- 'otelbot/*'
11+
pull_request:
12+
13+
permissions:
14+
contents: read
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
20+
env:
21+
# Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
22+
# For PRs you can change the inner fallback ('main')
23+
# For pushes you change the outer fallback ('main')
24+
# The logic below is used during releases and depends on having an equivalent branch name in the core repo.
25+
CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && (
26+
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
27+
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
28+
'main'
29+
) || 'main' }}
30+
CONTRIB_REPO_SHA: main
31+
PIP_EXISTS_ACTION: w
32+
33+
jobs:
34+
35+
lint-loongsuite-instrumentation-mem0:
36+
name: LoongSuite loongsuite-instrumentation-mem0
37+
runs-on: ubuntu-latest
38+
timeout-minutes: 30
39+
steps:
40+
- name: Checkout repo @ SHA - ${{ github.sha }}
41+
uses: actions/checkout@v4
42+
43+
- name: Set up Python 3.13
44+
uses: actions/setup-python@v5
45+
with:
46+
python-version: "3.13"
47+
48+
- name: Install tox
49+
run: pip install tox-uv
50+
51+
- name: Run tests
52+
run: tox -c tox-loongsuite.ini -e lint-loongsuite-instrumentation-mem0
53+
Lines changed: 224 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,224 @@
1+
# Do not edit this file.
2+
# This file is generated automatically by executing tox -e generate-workflows
3+
4+
name: LoongSuite Test 0
5+
6+
on:
7+
push:
8+
branches-ignore:
9+
- 'release/*'
10+
- 'otelbot/*'
11+
pull_request:
12+
13+
permissions:
14+
contents: read
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
20+
env:
21+
# Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
22+
# For PRs you can change the inner fallback ('main')
23+
# For pushes you change the outer fallback ('main')
24+
# The logic below is used during releases and depends on having an equivalent branch name in the core repo.
25+
CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && (
26+
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
27+
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
28+
'main'
29+
) || 'main' }}
30+
CONTRIB_REPO_SHA: main
31+
PIP_EXISTS_ACTION: w
32+
33+
jobs:
34+
35+
py39-test-loongsuite-instrumentation-mem0-oldest_ubuntu-latest:
36+
name: LoongSuite loongsuite-instrumentation-mem0-oldest 3.9 Ubuntu
37+
runs-on: ubuntu-latest
38+
timeout-minutes: 30
39+
steps:
40+
- name: Checkout repo @ SHA - ${{ github.sha }}
41+
uses: actions/checkout@v4
42+
43+
- name: Set up Python 3.9
44+
uses: actions/setup-python@v5
45+
with:
46+
python-version: "3.9"
47+
48+
- name: Install tox
49+
run: pip install tox-uv
50+
51+
- name: Run tests
52+
run: tox -c tox-loongsuite.ini -e py39-test-loongsuite-instrumentation-mem0-oldest -- -ra
53+
54+
py39-test-loongsuite-instrumentation-mem0-latest_ubuntu-latest:
55+
name: LoongSuite loongsuite-instrumentation-mem0-latest 3.9 Ubuntu
56+
runs-on: ubuntu-latest
57+
timeout-minutes: 30
58+
steps:
59+
- name: Checkout repo @ SHA - ${{ github.sha }}
60+
uses: actions/checkout@v4
61+
62+
- name: Set up Python 3.9
63+
uses: actions/setup-python@v5
64+
with:
65+
python-version: "3.9"
66+
67+
- name: Install tox
68+
run: pip install tox-uv
69+
70+
- name: Run tests
71+
run: tox -c tox-loongsuite.ini -e py39-test-loongsuite-instrumentation-mem0-latest -- -ra
72+
73+
py310-test-loongsuite-instrumentation-mem0-oldest_ubuntu-latest:
74+
name: LoongSuite loongsuite-instrumentation-mem0-oldest 3.10 Ubuntu
75+
runs-on: ubuntu-latest
76+
timeout-minutes: 30
77+
steps:
78+
- name: Checkout repo @ SHA - ${{ github.sha }}
79+
uses: actions/checkout@v4
80+
81+
- name: Set up Python 3.10
82+
uses: actions/setup-python@v5
83+
with:
84+
python-version: "3.10"
85+
86+
- name: Install tox
87+
run: pip install tox-uv
88+
89+
- name: Run tests
90+
run: tox -c tox-loongsuite.ini -e py310-test-loongsuite-instrumentation-mem0-oldest -- -ra
91+
92+
py310-test-loongsuite-instrumentation-mem0-latest_ubuntu-latest:
93+
name: LoongSuite loongsuite-instrumentation-mem0-latest 3.10 Ubuntu
94+
runs-on: ubuntu-latest
95+
timeout-minutes: 30
96+
steps:
97+
- name: Checkout repo @ SHA - ${{ github.sha }}
98+
uses: actions/checkout@v4
99+
100+
- name: Set up Python 3.10
101+
uses: actions/setup-python@v5
102+
with:
103+
python-version: "3.10"
104+
105+
- name: Install tox
106+
run: pip install tox-uv
107+
108+
- name: Run tests
109+
run: tox -c tox-loongsuite.ini -e py310-test-loongsuite-instrumentation-mem0-latest -- -ra
110+
111+
py311-test-loongsuite-instrumentation-mem0-oldest_ubuntu-latest:
112+
name: LoongSuite loongsuite-instrumentation-mem0-oldest 3.11 Ubuntu
113+
runs-on: ubuntu-latest
114+
timeout-minutes: 30
115+
steps:
116+
- name: Checkout repo @ SHA - ${{ github.sha }}
117+
uses: actions/checkout@v4
118+
119+
- name: Set up Python 3.11
120+
uses: actions/setup-python@v5
121+
with:
122+
python-version: "3.11"
123+
124+
- name: Install tox
125+
run: pip install tox-uv
126+
127+
- name: Run tests
128+
run: tox -c tox-loongsuite.ini -e py311-test-loongsuite-instrumentation-mem0-oldest -- -ra
129+
130+
py311-test-loongsuite-instrumentation-mem0-latest_ubuntu-latest:
131+
name: LoongSuite loongsuite-instrumentation-mem0-latest 3.11 Ubuntu
132+
runs-on: ubuntu-latest
133+
timeout-minutes: 30
134+
steps:
135+
- name: Checkout repo @ SHA - ${{ github.sha }}
136+
uses: actions/checkout@v4
137+
138+
- name: Set up Python 3.11
139+
uses: actions/setup-python@v5
140+
with:
141+
python-version: "3.11"
142+
143+
- name: Install tox
144+
run: pip install tox-uv
145+
146+
- name: Run tests
147+
run: tox -c tox-loongsuite.ini -e py311-test-loongsuite-instrumentation-mem0-latest -- -ra
148+
149+
py312-test-loongsuite-instrumentation-mem0-oldest_ubuntu-latest:
150+
name: LoongSuite loongsuite-instrumentation-mem0-oldest 3.12 Ubuntu
151+
runs-on: ubuntu-latest
152+
timeout-minutes: 30
153+
steps:
154+
- name: Checkout repo @ SHA - ${{ github.sha }}
155+
uses: actions/checkout@v4
156+
157+
- name: Set up Python 3.12
158+
uses: actions/setup-python@v5
159+
with:
160+
python-version: "3.12"
161+
162+
- name: Install tox
163+
run: pip install tox-uv
164+
165+
- name: Run tests
166+
run: tox -c tox-loongsuite.ini -e py312-test-loongsuite-instrumentation-mem0-oldest -- -ra
167+
168+
py312-test-loongsuite-instrumentation-mem0-latest_ubuntu-latest:
169+
name: LoongSuite loongsuite-instrumentation-mem0-latest 3.12 Ubuntu
170+
runs-on: ubuntu-latest
171+
timeout-minutes: 30
172+
steps:
173+
- name: Checkout repo @ SHA - ${{ github.sha }}
174+
uses: actions/checkout@v4
175+
176+
- name: Set up Python 3.12
177+
uses: actions/setup-python@v5
178+
with:
179+
python-version: "3.12"
180+
181+
- name: Install tox
182+
run: pip install tox-uv
183+
184+
- name: Run tests
185+
run: tox -c tox-loongsuite.ini -e py312-test-loongsuite-instrumentation-mem0-latest -- -ra
186+
187+
py313-test-loongsuite-instrumentation-mem0-oldest_ubuntu-latest:
188+
name: LoongSuite loongsuite-instrumentation-mem0-oldest 3.13 Ubuntu
189+
runs-on: ubuntu-latest
190+
timeout-minutes: 30
191+
steps:
192+
- name: Checkout repo @ SHA - ${{ github.sha }}
193+
uses: actions/checkout@v4
194+
195+
- name: Set up Python 3.13
196+
uses: actions/setup-python@v5
197+
with:
198+
python-version: "3.13"
199+
200+
- name: Install tox
201+
run: pip install tox-uv
202+
203+
- name: Run tests
204+
run: tox -c tox-loongsuite.ini -e py313-test-loongsuite-instrumentation-mem0-oldest -- -ra
205+
206+
py313-test-loongsuite-instrumentation-mem0-latest_ubuntu-latest:
207+
name: LoongSuite loongsuite-instrumentation-mem0-latest 3.13 Ubuntu
208+
runs-on: ubuntu-latest
209+
timeout-minutes: 30
210+
steps:
211+
- name: Checkout repo @ SHA - ${{ github.sha }}
212+
uses: actions/checkout@v4
213+
214+
- name: Set up Python 3.13
215+
uses: actions/setup-python@v5
216+
with:
217+
python-version: "3.13"
218+
219+
- name: Install tox
220+
run: pip install tox-uv
221+
222+
- name: Run tests
223+
run: tox -c tox-loongsuite.ini -e py313-test-loongsuite-instrumentation-mem0-latest -- -ra
224+

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
> 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).
1111
1212
## Unreleased
13+
14+
# Added
15+
16+
- `loongsuite-instrumentation-mem0`: add support for mem0
17+
([#67](https://github.com/alibaba/loongsuite-python-agent/pull/67))

instrumentation-loongsuite/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
| [loongsuite-instrumentation-agno](./loongsuite-instrumentation-agno) | agno >= 1.5.0 | No | development
66
| [loongsuite-instrumentation-dify](./loongsuite-instrumentation-dify) | dify | No | development
77
| [loongsuite-instrumentation-langchain](./loongsuite-instrumentation-langchain) | langchain_core >= 0.1.0 | Yes | development
8-
| [loongsuite-instrumentation-mcp](./loongsuite-instrumentation-mcp) | mcp>=1.3.0 | Yes | development
8+
| [loongsuite-instrumentation-mcp](./loongsuite-instrumentation-mcp) | mcp>=1.3.0 | Yes | development
9+
| [loongsuite-instrumentation-mem0](./loongsuite-instrumentation-mem0) | mem0ai >= 1.0.0 | No | development

0 commit comments

Comments
 (0)