@opensearch-project/agent-health 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -72
- package/cli/dist/index.js +427 -172
- package/dist/assets/index-D5yuaEp4.js +267 -0
- package/dist/assets/index-D6wGwYUm.css +1 -0
- package/dist/index.html +2 -2
- package/lib/dist/config/index.js +21 -62
- package/lib/dist/index.js +69 -7
- package/package.json +7 -1
- package/server/dist/app.js +10416 -6932
- package/server/dist/index.js +10414 -6932
- package/dist/assets/index-BheBjDce.css +0 -1
- package/dist/assets/index-aT-TLVpA.js +0 -244
package/README.md
CHANGED
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
# Agent Health
|
|
2
2
|
|
|
3
|
-
[](https://github.com/opensearch-project/agent-health/actions/workflows/ci.yml)
|
|
4
3
|
[](LICENSE.txt)
|
|
5
4
|
[](https://www.npmjs.com/package/@opensearch-project/agent-health)
|
|
5
|
+
[](https://goyamegh.github.io/opensearch-agentops-website/)
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
[](https://github.com/opensearch-project/agent-health/actions/workflows/ci.yml)
|
|
9
|
-
[](https://github.com/opensearch-project/agent-health/actions/workflows/ci.yml)
|
|
10
|
-
[](https://github.com/opensearch-project/agent-health/actions/workflows/ci.yml)
|
|
7
|
+
## What is Agent Health?
|
|
11
8
|
|
|
12
|
-
|
|
9
|
+
Agent Health is an evaluation and observability framework for AI agents. It helps you measure agent performance through "Golden Path" trajectory comparison—where an LLM judge evaluates agent actions against expected outcomes.
|
|
13
10
|
|
|
14
|
-
|
|
11
|
+
**Who uses Agent Health:**
|
|
12
|
+
- AI teams building autonomous agents (RCA, customer support, data analysis)
|
|
13
|
+
- QA engineers testing agent behavior across scenarios
|
|
14
|
+
- Platform teams monitoring agent performance in production
|
|
15
|
+
|
|
16
|
+
**Key capabilities:**
|
|
17
|
+
- Real-time agent execution streaming and visualization
|
|
18
|
+
- LLM-based evaluation with pass/fail scoring
|
|
19
|
+
- Batch experiments comparing agents and models
|
|
20
|
+
- OpenTelemetry trace integration for performance analysis
|
|
21
|
+
- Pluggable connectors for different agent types (REST, SSE, CLI)
|
|
22
|
+
|
|
23
|
+
## Quick Start
|
|
15
24
|
|
|
16
25
|
```bash
|
|
17
|
-
|
|
26
|
+
# Start Agent Health with demo data (no configuration needed)
|
|
27
|
+
npx @opensearch-project/agent-health
|
|
18
28
|
```
|
|
19
29
|
|
|
20
|
-
Opens http://localhost:4001
|
|
21
|
-
|
|
22
|
-
### Architecture
|
|
30
|
+
Opens http://localhost:4001 with pre-loaded sample data for exploration.
|
|
23
31
|
|
|
24
|
-
|
|
32
|
+
**Next steps:**
|
|
33
|
+
- [Getting Started Guide](./GETTING_STARTED.md) - Step-by-step walkthrough
|
|
34
|
+
- [Connect Your Agent](./docs/CONFIGURATION.md) - Configure your own agent
|
|
25
35
|
|
|
26
36
|
## Features
|
|
27
37
|
|
|
@@ -34,9 +44,6 @@ Opens http://localhost:4001 for the web UI.
|
|
|
34
44
|
- **Reports**: Evaluation reports with LLM judge reasoning
|
|
35
45
|
- **Connectors**: Pluggable protocol adapters for different agent types
|
|
36
46
|
|
|
37
|
-
For a detailed walkthrough, see [Getting Started](./GETTING_STARTED.md).
|
|
38
|
-
|
|
39
|
-
|
|
40
47
|
### Supported Connectors
|
|
41
48
|
|
|
42
49
|
| Connector | Protocol | Description |
|
|
@@ -51,20 +58,17 @@ For creating custom connectors, see [docs/CONNECTORS.md](./docs/CONNECTORS.md).
|
|
|
51
58
|
|
|
52
59
|
---
|
|
53
60
|
|
|
61
|
+
## Architecture
|
|
54
62
|
|
|
63
|
+

|
|
55
64
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
## Quick Start
|
|
65
|
+
Agent Health uses a client-server architecture where all clients (UI, CLI) access OpenSearch through a unified HTTP API. The server handles agent communication via pluggable connectors and proxies LLM judge calls to AWS Bedrock.
|
|
59
66
|
|
|
60
|
-
|
|
61
|
-
# Start the web UI
|
|
62
|
-
npx @opensearch-project/agent-health
|
|
67
|
+
For detailed architecture documentation, see [docs/ARCHITECTURE.md](./docs/ARCHITECTURE.md).
|
|
63
68
|
|
|
64
|
-
|
|
65
|
-
```
|
|
69
|
+
---
|
|
66
70
|
|
|
67
|
-
|
|
71
|
+
## CLI Commands
|
|
68
72
|
|
|
69
73
|
```bash
|
|
70
74
|
# Check configuration
|
|
@@ -86,62 +90,39 @@ For full CLI documentation, see [docs/CLI.md](./docs/CLI.md).
|
|
|
86
90
|
|
|
87
91
|
|
|
88
92
|
|
|
89
|
-
##
|
|
93
|
+
## Configuration
|
|
94
|
+
|
|
95
|
+
Agent Health works out-of-the-box with demo data. Configure when you're ready to connect your own agent.
|
|
90
96
|
|
|
91
|
-
|
|
97
|
+
### Minimal Setup (Optional)
|
|
92
98
|
|
|
93
|
-
|
|
99
|
+
**For LLM Judge evaluation** (uses AWS Bedrock):
|
|
94
100
|
```bash
|
|
101
|
+
# Create .env file
|
|
95
102
|
cp .env.example .env
|
|
96
|
-
```
|
|
97
103
|
|
|
98
|
-
Add
|
|
99
|
-
```bash
|
|
104
|
+
# Add AWS credentials
|
|
100
105
|
AWS_REGION=us-east-1
|
|
101
106
|
AWS_ACCESS_KEY_ID=your_access_key
|
|
102
107
|
AWS_SECRET_ACCESS_KEY=your_secret_key
|
|
103
|
-
AWS_SESSION_TOKEN=your_session_token # if using temporary credentials
|
|
104
108
|
```
|
|
105
109
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
MLCOMMONS_ENDPOINT=http://localhost:9200/_plugins/_ml/agents/{agent_id}/_execute/stream
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### Storage (Persistence)
|
|
123
|
-
|
|
124
|
-
For persisting test cases, experiments, and runs. Features gracefully degrade if not configured.
|
|
125
|
-
|
|
126
|
-
```bash
|
|
127
|
-
OPENSEARCH_STORAGE_ENDPOINT=https://your-cluster.opensearch.amazonaws.com
|
|
128
|
-
OPENSEARCH_STORAGE_USERNAME=admin
|
|
129
|
-
OPENSEARCH_STORAGE_PASSWORD=your_password
|
|
130
|
-
OPENSEARCH_STORAGE_TLS_SKIP_VERIFY=false # Set to true for self-signed certificates
|
|
110
|
+
**For your own agent** - create `agent-health.config.ts`:
|
|
111
|
+
```typescript
|
|
112
|
+
export default {
|
|
113
|
+
agents: [
|
|
114
|
+
{
|
|
115
|
+
key: "my-agent",
|
|
116
|
+
name: "My Agent",
|
|
117
|
+
endpoint: "http://localhost:8000/agent",
|
|
118
|
+
connectorType: "rest", // or "agui-streaming", "subprocess"
|
|
119
|
+
models: ["claude-sonnet-4"],
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
};
|
|
131
123
|
```
|
|
132
124
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
For agent execution traces. Features gracefully degrade if not configured.
|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
OPENSEARCH_LOGS_ENDPOINT=https://your-logs-cluster.opensearch.amazonaws.com
|
|
139
|
-
OPENSEARCH_LOGS_USERNAME=admin
|
|
140
|
-
OPENSEARCH_LOGS_PASSWORD=your_password
|
|
141
|
-
OPENSEARCH_LOGS_TLS_SKIP_VERIFY=false # Set to true for self-signed certificates
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
See `.env.example` for all available options.
|
|
125
|
+
**Full configuration guide:** [CONFIGURATION.md](./docs/CONFIGURATION.md)
|
|
145
126
|
|
|
146
127
|
---
|
|
147
128
|
|
|
@@ -357,7 +338,13 @@ All commits require DCO signoff and all PRs must pass CI checks (tests, coverage
|
|
|
357
338
|
|
|
358
339
|
## Documentation
|
|
359
340
|
|
|
360
|
-
|
|
361
|
-
- [
|
|
362
|
-
- [
|
|
363
|
-
- [
|
|
341
|
+
### User Guides
|
|
342
|
+
- [Getting Started](./GETTING_STARTED.md) - Step-by-step walkthrough from install to first evaluation
|
|
343
|
+
- [Configuration](./docs/CONFIGURATION.md) - Connect your agent and configure the environment
|
|
344
|
+
- [CLI Reference](./docs/CLI.md) - Command-line interface documentation
|
|
345
|
+
|
|
346
|
+
### Developer Guides
|
|
347
|
+
- [Development Guide](./CLAUDE.md) - Architecture, coding conventions, and contributing
|
|
348
|
+
- [Connectors Guide](./docs/CONNECTORS.md) - Create custom connectors for your agent type
|
|
349
|
+
- [ML-Commons Setup](./docs/ML-COMMONS-SETUP.md) - OpenSearch ML-Commons integration
|
|
350
|
+
- [Architecture](./docs/ARCHITECTURE.md) - System design and patterns
|