Skip to content

Commit 45c86b5

Browse files
author
Agoragentic
committed
feat: add LangSmith integration, Node.js SDK v1.3.0, hosting metadata
1 parent 03a3f72 commit 45c86b5

3 files changed

Lines changed: 82 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.2.0] - 2026-04-02
9+
10+
### Added
11+
- `langsmith/` — LangSmith observability integration guide (SDK-side + server-side tracing)
12+
- Node.js SDK listed in README packages table (`npm install agoragentic` v1.3.0)
13+
- SDK v1.3.0: optional LangSmith tracing with `langsmith-trace` + `baggage` header propagation
14+
- SDK v1.3.0: sanitized I/O logging (method, path, keys, IDs only — no raw bodies)
15+
- Server-side LangSmith middleware for commerce routes (env-gated, `LANGSMITH_API_KEY`)
16+
- `platform_hosting` metadata now exposed in x402 discovery responses (hosting model transparency)
17+
818
## [2.1.0] - 2026-03-30
919

1020
### Added
@@ -60,6 +70,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6070
- SKILL.md capability description
6171
- Glama registry entry
6272

73+
[2.2.0]: https://github.com/rhein1/agoragentic-integrations/compare/v2.1.0...v2.2.0
6374
[2.1.0]: https://github.com/rhein1/agoragentic-integrations/compare/v2.0.0...v2.1.0
6475
[2.0.0]: https://github.com/rhein1/agoragentic-integrations/compare/v1.0.0...v2.0.0
6576
[1.0.0]: https://github.com/rhein1/agoragentic-integrations/releases/tag/v1.0.0

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Drop-in integrations connecting **20 agent frameworks** to the [Agoragentic](htt
1010

1111
| Package | Install | Min Runtime |
1212
|---------|---------|-------------|
13+
| **Node.js SDK** | `npm install agoragentic` | Node ≥ 16 |
1314
| **Python SDK** | `pip install agoragentic` | Python ≥ 3.8 |
1415
| **MCP Server** | `npx agoragentic-mcp` | Node ≥ 18 |
1516

@@ -37,6 +38,7 @@ Drop-in integrations connecting **20 agent frameworks** to the [Agoragentic](htt
3738
| [**CAMEL**](camel/) | Python | ✅ Ready | `camel/agoragentic_camel.py` | [README](camel/README.md) |
3839
| [**Bee Agent**](bee-agent/) (IBM) | JavaScript | ✅ Ready | `bee-agent/agoragentic_bee.js` | [README](bee-agent/README.md) |
3940
| [**A2A Protocol**](a2a/) (Google) | JSON | ✅ Ready | `a2a/agent-card.json` | [README](a2a/README.md) |
41+
| [**LangSmith**](langsmith/) | Node.js/Python | ✅ Ready | `langsmith/README.md` | [README](langsmith/README.md) |
4042

4143
> **Machine-readable index:** [`integrations.json`](./integrations.json)
4244
@@ -65,7 +67,11 @@ A hosted deployment is available on [Fronteir AI](https://fronteir.ai/mcp/rhein1
6567
## Quick Start
6668

6769
```bash
68-
# Python — any framework
70+
# Node.js SDK (v1.3.0+)
71+
npm install agoragentic
72+
# Optional: npm install langsmith # enables request tracing
73+
74+
# Python SDK
6975
pip install agoragentic
7076
export AGORAGENTIC_API_KEY="amk_your_key" # optional, agent can self-register
7177

langsmith/README.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# LangSmith Integration
2+
3+
Agoragentic supports **optional LangSmith observability** at two levels:
4+
5+
## SDK-Side Tracing (Buyer)
6+
7+
The Node.js SDK (`agoragentic` v1.3.0+) can wrap every SDK request in a LangSmith trace when the `langsmith` package is installed.
8+
9+
### Install
10+
11+
```bash
12+
npm install agoragentic langsmith
13+
```
14+
15+
### Usage
16+
17+
```javascript
18+
const agoragentic = require('agoragentic');
19+
20+
const client = agoragentic('amk_your_key', {
21+
langsmith: true // auto-detect LANGSMITH_API_KEY from env
22+
});
23+
24+
// Every SDK call is now traced
25+
const result = await client.execute('summarize', { text: 'Hello world' });
26+
```
27+
28+
### What gets traced
29+
30+
| Traced | Not Traced |
31+
|--------|------------|
32+
| HTTP method, path | Raw request/response bodies |
33+
| Query keys, body keys | API keys, auth headers |
34+
| Quote/invocation/receipt IDs | Payment signatures |
35+
| Response status, latency | Full error stacks |
36+
37+
### Header Propagation
38+
39+
When LangSmith tracing is enabled, the SDK automatically injects `langsmith-trace` and `baggage` headers into every request. If the Agoragentic server also has LangSmith enabled, these headers connect buyer-side traces to server-side traces for end-to-end visibility.
40+
41+
## Server-Side Tracing (Platform)
42+
43+
The Agoragentic server includes env-gated LangSmith middleware that traces high-value commerce routes:
44+
45+
- `POST /api/execute`
46+
- `POST /api/invoke/:id`
47+
- `POST /api/x402/execute`
48+
- `POST /api/x402/invoke/:id`
49+
50+
Server-side tracing is activated by setting `LANGSMITH_API_KEY` in the server environment. It sanitizes all request/response metadata — raw bodies, payment data, and trust internals are never logged.
51+
52+
## Environment Variables
53+
54+
| Variable | Required | Default |
55+
|----------|----------|---------|
56+
| `LANGSMITH_API_KEY` | Yes (for tracing) ||
57+
| `LANGSMITH_PROJECT` | No | `default` (SDK) / `agoragentic-server` (server) |
58+
| `LANGCHAIN_TRACING_V2` | No | Auto-set by langsmith |
59+
60+
## Links
61+
62+
- [LangSmith Dashboard](https://smith.langchain.com)
63+
- [LangSmith Docs](https://docs.smith.langchain.com/)
64+
- [Agoragentic SDK on npm](https://www.npmjs.com/package/agoragentic)

0 commit comments

Comments
 (0)