Analyze AI agents to understand their performance and get improvement suggestions to make them better
Project description
Agentune Analyze & Improve
Turn real conversations into insights that measurably improve your AI agents.
Agentune Analyze & Improve helps teams discover what drives an agent’s KPIs up or down — and generate concrete recommendations to enhance performance.
It transforms messy operational data into interpretable, data-driven actions that actually move business metrics.
Why It Matters
Most AI agents are optimized by intuition: a few sample chats, some prompt edits, and best guesses.
Agentune replaces guesswork with evidence.
Using structured and unstructured data from real conversations, it:
- Identifies patterns that correlate with KPI outcomes
- Surfaces interpretable insights (not opaque scores)
- Recommends targeted changes to prompts, policies, and logic
No more trial-and-error tuning — just measurable improvement grounded in data.
For example: suppose you built a sales agent and now have a dataset of conversations with labeled outcomes as win, undecided, or lost. Using Agentune Analyze & Improve, you can discover insights showing which patterns or intents correlate with those outcomes and receive concrete recommendations to refine the agent’s playbook — for instance, improving how it handles discounts, competitor mentions, or shipping questions.
How It Works
Agentune Analyze & Improve follows a transparent, two-step process:
1. Analyze
- Ingests conversations, outcomes, and optional context data (e.g., product, policy, CRM).
- Generates semantic and structural features that capture patterns in language, behavior, or flow.
- Selects statistically significant features correlated with KPI changes — these become your drivers of performance.
Example insights:
- “Mentions of competitors early in chat increase conversion probability.”
- “Discount discussion combined with shipping-time questions lowers CSAT.”
2. Improve
- Maps the discovered drivers into actionable recommendations — changes to prompts, tool usage, escalation logic, or playbooks.
- Outputs a ranked list of improvement opportunities, each linked to its supporting data.
These recommendations can then be validated using Agentune Simulate before deployment.
Example Usage
- Getting Started -
01_getting_started.ipynbfor an introductory walkthrough of library fundamentals - End-to-End Script Example -
e2e_script_example.md- a runnable example executing the entire analysis workflow - Advanced Examples -
advanced_examples.mdfor customizing components, using LLM requests caching, and advanced workflows
Testing & Costs
We've tested Agentune Analyse with the combination of OpenAI o3 and gpt-4o-mini. In our tests, the cost per conversation was approximately 5-10 cents per conversation.
Installation
pip install agentune-analyze
Requirements
- Python ≥ 3.12
- Note for Mac users: If you encounter errors related to lightgbm, you may need to install OpenMP first: brew install libomp. See the LightGBM macOS installation guide for details.
Key Features
- 🧩 Feature Generation – semantic, structural, and behavioral signals derived from real interactions
- 📈 Feature Selection – statistical and semantic correlation with target KPIs
- 💡 Actionable Insights – interpretable drivers with examples and metrics
- 🧠 Context Awareness (upcoming) – integrates CRM, product, and policy metadata for deeper understanding
Roadmap
Current focus: structured context integration for richer analysis and smarter recommendations.
Planned milestones:
- Support for context-aware feature generation
- Integration of context data into the recommendation engine
- Visualization tools for insight exploration
- Seamless flow into
agentune-simulatefor validating improvements
Contributing
We welcome contributions that strengthen the analysis and recommendation layers.
- Contact us at agentune-dev@sparkbeyond.com
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 agentune_analyze-0.1.1.tar.gz.
File metadata
- Download URL: agentune_analyze-0.1.1.tar.gz
- Upload date:
- Size: 140.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f872854afff7394a04ddc93915763f3c95f75e89114f0935572b60c2c8272af
|
|
| MD5 |
fa5285014f8a86d6b87a28dfe6bec7be
|
|
| BLAKE2b-256 |
4d3a88e94ae76642a0e5cb25fd5c2993723718bcbb2d9155a5408b51f22b053b
|
Provenance
The following attestation bundles were made for agentune_analyze-0.1.1.tar.gz:
Publisher:
analyze-publish.yml on SparkBeyond/agentune
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentune_analyze-0.1.1.tar.gz -
Subject digest:
7f872854afff7394a04ddc93915763f3c95f75e89114f0935572b60c2c8272af - Sigstore transparency entry: 740343535
- Sigstore integration time:
-
Permalink:
SparkBeyond/agentune@b0e052de6c62f17ae4b49d264bc55008d1f12a3d -
Branch / Tag:
refs/tags/analyze-v0.1.1 - Owner: https://github.com/SparkBeyond
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
analyze-publish.yml@b0e052de6c62f17ae4b49d264bc55008d1f12a3d -
Trigger Event:
push
-
Statement type:
File details
Details for the file agentune_analyze-0.1.1-py3-none-any.whl.
File metadata
- Download URL: agentune_analyze-0.1.1-py3-none-any.whl
- Upload date:
- Size: 182.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fb38d0f79a6bcceb92f02a6c4eb2bc29e713a11c7a790ae48ce47e6a389de78
|
|
| MD5 |
c0544b73472797d401eff7c43f7450a0
|
|
| BLAKE2b-256 |
b96393519ab39532e878cc404e890f428b57adf3e54532f606211d29d595d63c
|
Provenance
The following attestation bundles were made for agentune_analyze-0.1.1-py3-none-any.whl:
Publisher:
analyze-publish.yml on SparkBeyond/agentune
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentune_analyze-0.1.1-py3-none-any.whl -
Subject digest:
4fb38d0f79a6bcceb92f02a6c4eb2bc29e713a11c7a790ae48ce47e6a389de78 - Sigstore transparency entry: 740343540
- Sigstore integration time:
-
Permalink:
SparkBeyond/agentune@b0e052de6c62f17ae4b49d264bc55008d1f12a3d -
Branch / Tag:
refs/tags/analyze-v0.1.1 - Owner: https://github.com/SparkBeyond
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
analyze-publish.yml@b0e052de6c62f17ae4b49d264bc55008d1f12a3d -
Trigger Event:
push
-
Statement type: