Mantisdk - AI Agent Training and Evaluation Platform
Project description
Mantisdk
AI Agent Training and Evaluation Platform
Mantisdk is a comprehensive toolkit for training and evaluating AI agents using reinforcement learning, automatic prompt optimization, and supervised fine-tuning.
Core Features
- Turn your agent into an optimizable beast with minimal code changes
- Build with any agent framework (LangChain, OpenAI Agent SDK, AutoGen, CrewAI, and more)
- Selectively optimize one or more agents in a multi-agent system
- Embraces algorithms like Reinforcement Learning, Automatic Prompt Optimization, Supervised Fine-tuning and more
Installation
pip install mantisdk
For optional dependencies:
# For LLMProxy feature (note: has strict dependency pins for boto3, grpcio, uvicorn)
pip install 'mantisdk[proxy]'
# For APO (Automatic Prompt Optimization)
pip install 'mantisdk[apo]'
# For VERL integration
pip install 'mantisdk[verl]'
# For Weave integration
pip install 'mantisdk[weave]'
# For MongoDB store
pip install 'mantisdk[mongo]'
Quick Start
import mantisdk as msk
# Initialize the client
client = msk.MantisdkClient()
# Your agent code here...
Insight Ingestion Helpers
Use these helpers when you want to send external agent traces/scores directly to an Insight instance.
1) Insight ingestion client
from mantisdk import InsightIngestionClient, InsightIngestionConfig
client = InsightIngestionClient(
InsightIngestionConfig(
host="http://localhost:3000",
public_key="pk-lf-...",
secret_key="sk-lf-...",
)
)
# Send trace event
client.ingest_trace_event(
trace_id="trace-001",
name="Agent Trace",
input_data={"prompt": "hello"},
output_data={"answer": "world"},
session_id="session-001",
environment="default",
)
# Send scores efficiently in batches
client.send_scores(
[
{"name": "task_success", "value": 0.95, "dataType": "NUMERIC", "traceId": "trace-001"},
{"name": "safety", "value": 1, "dataType": "BOOLEAN", "traceId": "trace-001"},
],
mode="ingestion-batch",
)
2) Simple API wrapper sample (dependency-free)
For a minimal stdlib-only helper and examples, see:
samples/insight-agent-trace-wrapper/.
CLI Usage
# Start the Mantisdk server
msk store serve
# Run with vLLM
msk vllm start
Documentation
For full documentation, visit https://withmetis.github.io/mantis/mantisdk/
License
MIT License - see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mantisdk-0.2.4.tar.gz.
File metadata
- Download URL: mantisdk-0.2.4.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
130f289874fb07bd4d2ceab323ac6828c0d253d6b9a01b3d6bb77727ce7cd81d
|
|
| MD5 |
a4a685f7cef068c70a0c8e698d7dca28
|
|
| BLAKE2b-256 |
50cdb9375f18665c90f590d71de19ddc92c49737be682731ef6bb6af6f822f29
|
Provenance
The following attestation bundles were made for mantisdk-0.2.4.tar.gz:
Publisher:
mantisdk-pypi-release.yml on metis-mantis/mantis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mantisdk-0.2.4.tar.gz -
Subject digest:
130f289874fb07bd4d2ceab323ac6828c0d253d6b9a01b3d6bb77727ce7cd81d - Sigstore transparency entry: 1245463636
- Sigstore integration time:
-
Permalink:
metis-mantis/mantis@4c9c64cfe7b323c4c2ed38c4b0602bdd97a79fb2 -
Branch / Tag:
refs/tags/mantisdk-v0.2.4 - Owner: https://github.com/metis-mantis
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
mantisdk-pypi-release.yml@4c9c64cfe7b323c4c2ed38c4b0602bdd97a79fb2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mantisdk-0.2.4-py3-none-any.whl.
File metadata
- Download URL: mantisdk-0.2.4-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a57ee00eaa0d71a6acf3595a5be9fc0adad70ac1cd63390f80c4361c7ba7e9a
|
|
| MD5 |
48a855f24bd647ba82b80103f771b023
|
|
| BLAKE2b-256 |
979dc1fd0cef1bc693a9d3b78d02d03aef6818d06f82398a40bd4e34d8d553b1
|
Provenance
The following attestation bundles were made for mantisdk-0.2.4-py3-none-any.whl:
Publisher:
mantisdk-pypi-release.yml on metis-mantis/mantis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mantisdk-0.2.4-py3-none-any.whl -
Subject digest:
0a57ee00eaa0d71a6acf3595a5be9fc0adad70ac1cd63390f80c4361c7ba7e9a - Sigstore transparency entry: 1245463643
- Sigstore integration time:
-
Permalink:
metis-mantis/mantis@4c9c64cfe7b323c4c2ed38c4b0602bdd97a79fb2 -
Branch / Tag:
refs/tags/mantisdk-v0.2.4 - Owner: https://github.com/metis-mantis
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
mantisdk-pypi-release.yml@4c9c64cfe7b323c4c2ed38c4b0602bdd97a79fb2 -
Trigger Event:
push
-
Statement type: