File size: 1,036 Bytes
8c10cf2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# SocialMediaManager-MCP (RQ1)

This folder contains evaluation utilities for the SocialMediaManager-MCP experiment results under `RESULTS/`.

## Files

- `evaluate_trajectory.py`
  - Parses `execution_path.md` from each session and computes trajectory metrics.
  - Outputs a CSV summary (no Markdown output).

- `evaluate_success.py`
  - Computes per-model success rate based on `metadata.json` (`status == "success"`).
  - Outputs:
    - `success_detailed_results.json`
    - `success_rate.csv`

- `analyze_retry_patterns.py`
  - Analyzes retry/error patterns from `execution_path.md`.
  - Outputs:
    - `retry_analysis.json`
    - `retry_summary.csv`
    - `error_by_agent.csv`
    - `business_retry_by_agent.csv`

- `reference_trajectory.yaml`
  - Reference (ground-truth) trajectory definition and configuration.

## Usage

Run scripts from this directory.

```bash
python3 evaluate_trajectory.py --config reference_trajectory.yaml --output evaluation_results.csv
python3 evaluate_success.py
python3 analyze_retry_patterns.py
```