integrations/ag2/v0.1.0

web-infra-dev/midsceneintegrations/ag2/v0.1.0Sep 18, 2026by het0814

Upgrading?

AI Summary

First release of memanto-ag2, providing Memanto tools (remember, recall, answer) for AG2 agents.

Key Highlights

  • Tool registration function for both Assistant and UserProxy agents.
  • Helper functions for OpenAI configuration and tool creation.
  • Configuration defaults for API keys, source, and recall limits.

New Features

  • `register_memanto_tools()` function for AG2 integration.
  • `create_memanto_tools()` function for manual tool creation.
  • `openai_llm_config()` helper for AG2 OpenAI setup.
  • `configure()` function for setting default parameters.

Full Release Notes

# Release Notes for memanto-ag2 v0.1.0

First release of **`memanto-ag2`**  Memanto persistent memory as AG2 tools (`memanto_remember`, `memanto_recall`, `memanto_answer`).

## What's included

- `register_memanto_tools(assistant, executor=..., agent_id=...)` — register tools on Assistant + UserProxy in one call
- `create_memanto_tools(client, agent_id)` — same tools if you register manually
- `openai_llm_config()` — helper for AG2 0.14+ OpenAI setup
- `configure()` — optional defaults for API key, source, recall limit
- Smoke script: `integrations/ag2/scripts/smoke_test.py`

## Install

```bash
pip install memanto-ag2
pip install "ag2>=0.9,<1"   # for live AG2 chat only
```

`memanto-ag2` installs **`memanto`** automatically. Use **`ag2`**, not **`a2g`**.

## Requirements

- Python 3.10+
- `MOORCHEH_API_KEY`
- AG2 **0.9.x** for chat examples (`ag2` 1.x not supported yet)

## Tests

```bash
python -m pytest integrations/ag2/tests/test_tools.py -q
```

## Full Changelog

https://github.com/moorcheh-ai/memanto/commits/integrations/ag2/v0.1.0

Related Repositories