Skip to content

Commit e124ec8

Browse files
committed
Merge branch 'main' into fix/episodic-memory
2 parents 962f277 + f888a0a commit e124ec8

24 files changed

+428
-539
lines changed

.github/ISSUE_TEMPLATE/asking-help.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ about: Let us know if something is broken on Mesa-LLM
1111
<!-- A clear and concise description of what you expected to happen -->
1212

1313
**To Reproduce**
14-
<!-- Steps to reproduce the bug, or a link to a project where the bug is visible -->
14+
<!-- Steps to reproduce the bug, or a link to a project where the bug is visible
15+
Include a Minimal reproducible example: https://stackoverflow.com/help/minimal-reproducible-example -->
1516

1617
**Additional context**
1718
<!--
1819
Add any other context here.
1920
Any details about your specific platform:
2021
* If the problem is in the browser, what browser, version, and OS?
21-
-->
22+
-->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Questions, ideas, showcases and more
4+
url: https://github.com/mesa/mesa-llm/discussions
5+
about: Discuss Mesa-LLM, ask questions, share ideas, and showcase your projects

.github/ISSUE_TEMPLATE/feature-request.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ about: Suggest a new feature for Mesa-LLM
1010
**Describe the solution you'd like**
1111
<!-- A clear and concise description of what you want to happen. -->
1212

13+
**Are you planning to open a PR for this?**
14+
<!-- For enhancements/new features, please wait for maintainer approval on this issue/discussion before opening a PR. -->
15+
1316
**Additional context**
14-
<!-- Add any other context, links, etc. about the feature here. -->
17+
<!-- Add any other context, links, etc. about the feature here. -->
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
> [!NOTE]
2+
> Use this template for bug fixes only. For enhancements/new features, use the feature template and get maintainer approval in an issue/discussion before opening a PR.
3+
4+
### Pre-PR Checklist
5+
- [ ] This PR is a bug fix, not a new feature or enhancement.
6+
7+
### Summary
8+
<!-- Provide a brief summary of the bug and its impact. -->
9+
10+
### Bug / Issue
11+
<!-- Link to the related issue(s) and describe the bug. Include details like the context, what was expected, and what actually happened. -->
12+
13+
### Implementation
14+
<!-- Describe the changes made to resolve the issue. Highlight any important parts of the code that were modified. -->
15+
16+
### Testing
17+
<!-- Detail the testing performed to verify the fix. Include information on test cases, steps taken, and any relevant results.
18+
19+
If you're fixing the visualisation, add before/after screenshots. -->
20+
21+
### Additional Notes
22+
<!-- Add any additional information that may be relevant for the reviewers, such as potential side effects, dependencies, or related work.
23+
-->
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
> [!IMPORTANT]
2+
> For enhancements and new features, include the issue/discussion where a maintainer approved this work before opening a PR. Unapproved feature/enhancement PRs may be closed.
3+
4+
### Pre-PR Checklist
5+
- [ ] I linked an issue/discussion where a maintainer approved this enhancement/feature for implementation.
6+
7+
### Approval Link
8+
<!-- Link to the issue/discussion comment where a maintainer confirmed this is ready for a PR. -->
9+
10+
### Summary
11+
<!-- Provide a concise summary of the feature and its purpose. -->
12+
13+
### Motive
14+
<!-- Explain the reasoning behind this feature. Include details on the problem it addresses or the enhancement it provides. -->
15+
16+
### Implementation
17+
<!-- Describe how the feature was implemented. Include details on the approach taken, important decisions made, and code changes. -->
18+
19+
### Usage Examples
20+
<!-- Provide code snippets or examples demonstrating how to use the new feature. Highlight key scenarios where this feature will be beneficial.
21+
22+
If you're modifying the visualisation, add before/after screenshots. -->
23+
24+
### Additional Notes
25+
<!-- Add any additional information that may be relevant for the reviewers, such as potential side effects, dependencies, or related work. -->

.github/pull_request_template.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Thanks for opening a PR! Please click the `Preview` tab and select a PR template:
2+
3+
- [🐛 Bug fix](?expand=1&template=bug.md)
4+
- [🛠 Feature/enhancement](?expand=1&template=feature.md)
5+
6+
Feature/enhancement PRs require prior maintainer approval in an issue or discussion before they are accepted.

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ In no particular order, examples include:
1111
- Documentation improvements
1212
- Tutorials
1313

14+
> [!NOTE]
15+
> For Mesa-wide contribution process and development expectations, see [Mesa CONTRIBUTING].
16+
1417
[Mesa-LLM discussions]: https://github.com/mesa/mesa-llm/discussions
1518
[issue]: https://github.com/mesa/mesa-llm/issues
19+
[Mesa CONTRIBUTING]: https://github.com/mesa/mesa/blob/main/CONTRIBUTING.md
1620

1721
**To submit a contribution**
1822

tests/conftest.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,13 @@
1818
}
1919

2020

21-
class MockCell:
22-
"""Mock cell with coordinate attribute"""
23-
24-
def __init__(self, coordinate):
25-
self.coordinate = coordinate
26-
27-
2821
@pytest.fixture(autouse=True)
2922
def mock_environment():
3023
"""Ensure tests don't depend on real environment variables"""
3124
with patch.dict(
3225
os.environ,
3326
{
34-
"GEMINI_API_KEY": "dummy",
27+
"GEMINI_API_KEY": "test_gemini_key",
3528
"PROVIDER_API_KEY": "test_key",
3629
"OPENAI_API_KEY": "test_openai_key",
3730
},

tests/test_async_memory.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from mesa_llm.llm_agent import LLMAgent
99
from mesa_llm.parallel_stepping import step_agents_parallel
1010
from mesa_llm.reasoning.reasoning import Reasoning
11+
from tests.conftest import build_llm_response
1112

1213
logger = logging.getLogger(__name__)
1314

@@ -53,10 +54,7 @@ async def test_parallel_memory_consolidation(self, mock_agenerate):
5354

5455
async def slow_response(*args, **kwargs):
5556
await asyncio.sleep(1)
56-
mock_resp = MagicMock()
57-
mock_resp.choices = [MagicMock()]
58-
mock_resp.choices[0].message.content = "summary"
59-
return mock_resp
57+
return build_llm_response(content="summary")
6058

6159
mock_agenerate.side_effect = slow_response
6260

0 commit comments

Comments
 (0)