@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 CHANGED
@@ -1,27 +1,37 @@
1
1
  # Agent Health
2
2
 
3
- [![CI](https://github.com/opensearch-project/agent-health/actions/workflows/ci.yml/badge.svg)](https://github.com/opensearch-project/agent-health/actions/workflows/ci.yml)
4
3
  [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE.txt)
5
4
  [![npm version](https://img.shields.io/npm/v/@opensearch-project/agent-health.svg)](https://www.npmjs.com/package/@opensearch-project/agent-health)
5
+ [![Documentation](https://img.shields.io/badge/View_Documentation-blue?logo=readthedocs&logoColor=white)](https://goyamegh.github.io/opensearch-agentops-website/)
6
6
 
7
- [![Unit Tests](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/opensearch-project/agent-health/badges/unit-tests.json)](https://github.com/opensearch-project/agent-health/actions/workflows/ci.yml)
8
- [![Unit Coverage](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/opensearch-project/agent-health/badges/unit-coverage.json)](https://github.com/opensearch-project/agent-health/actions/workflows/ci.yml)
9
- [![Integration Tests](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/opensearch-project/agent-health/badges/integration-tests.json)](https://github.com/opensearch-project/agent-health/actions/workflows/ci.yml)
10
- [![E2E Tests](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/opensearch-project/agent-health/badges/e2e-tests.json)](https://github.com/opensearch-project/agent-health/actions/workflows/ci.yml)
7
+ ## What is Agent Health?
11
8
 
12
- An evaluation and observability framework for AI agents. Features real-time trace visualization, "Golden Path" trajectory comparison, and LLM-based evaluation scoring.
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
- Try It by running:
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
- npx @goyamegh/agent-health@latest
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 for the web UI.
21
-
22
- ### Architecture
30
+ Opens http://localhost:4001 with pre-loaded sample data for exploration.
23
31
 
24
- ![Agent Health Architecture](docs/diagrams/architecture.png)
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
+ ![Agent Health Architecture](docs/diagrams/architecture.png)
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
- ```bash
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
- # Open http://localhost:4001
65
- ```
69
+ ---
66
70
 
67
- ### CLI Commands
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
- ## Authentication (Required)
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
- AWS credentials are required for the Bedrock LLM Judge to score evaluations.
97
+ ### Minimal Setup (Optional)
92
98
 
93
- Create a `.env` file:
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 your AWS credentials:
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
- ## Configuration (Optional)
109
-
110
- All optional settings have sensible defaults. Configure only what you need.
111
-
112
- ### Agent Endpoints
113
-
114
- Agent endpoints default to localhost. Override if your agent runs elsewhere:
115
-
116
- ```bash
117
- LANGGRAPH_ENDPOINT=http://localhost:3000
118
- HOLMESGPT_ENDPOINT=http://localhost:5050/api/agui/chat
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
- ### Traces (Observability)
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
- - [Getting Started](./GETTING_STARTED.md) - Installation, demo mode, and usage walkthrough
361
- - [ML-Commons Agent Setup](./docs/ML-COMMONS-SETUP.md) - Configure ML-Commons agent
362
- - [Development Guide](./CLAUDE.md) - Architecture and coding conventions
363
- - [AG-UI Protocol](https://docs.ag-ui.com/sdk/js/core/types#runagentinput)
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