npm reference for doc
This commit is contained in:
@@ -5,7 +5,7 @@ The JLINC Langchain Integration is the official way to implement the zero-knowle
|
|||||||
By embedding JLINC's trusted protocol directly into Langchain's tracing system, organizations can prove compliance, accountability, and data integrity without ever exposing sensitive information. This seamless integration enables developers to track, verify, and audit model interactions with full transparency while preserving confidentiality through cryptographically verifiable zero-knowledge proofs. Whether for regulated industries, enterprise governance, or AI safety applications, the JLINC Langchain Tracer ensures that trust, privacy, and accountability are built in from the ground up.
|
By embedding JLINC's trusted protocol directly into Langchain's tracing system, organizations can prove compliance, accountability, and data integrity without ever exposing sensitive information. This seamless integration enables developers to track, verify, and audit model interactions with full transparency while preserving confidentiality through cryptographically verifiable zero-knowledge proofs. Whether for regulated industries, enterprise governance, or AI safety applications, the JLINC Langchain Tracer ensures that trust, privacy, and accountability are built in from the ground up.
|
||||||
|
|
||||||
## Sample application
|
## Sample application
|
||||||
The below code sample is a demonstration of the JLINC Langchain Tracer in action. As data moves through the chain, it is cryptographically signed with a unique key for each element in the chain, and zero-knowledge audit records are delivered to the JLINC Archive Server.
|
The below code sample is a demonstration of the JLINC Langchain Integration in action. As data moves through the chain, it is cryptographically signed with a unique key for each element in the chain, and zero-knowledge audit records are delivered to the JLINC Archive Server.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const { ChatOpenAI } = require("@langchain/openai");
|
const { ChatOpenAI } = require("@langchain/openai");
|
||||||
@@ -13,7 +13,7 @@ const { awaitAllCallbacks } = require("@langchain/core/callbacks/promises");
|
|||||||
const { Calculator } = require("@langchain/community/tools/calculator");
|
const { Calculator } = require("@langchain/community/tools/calculator");
|
||||||
const { AgentExecutor, createToolCallingAgent } = require("langchain/agents");
|
const { AgentExecutor, createToolCallingAgent } = require("langchain/agents");
|
||||||
const { ChatPromptTemplate } = require("@langchain/core/prompts");
|
const { ChatPromptTemplate } = require("@langchain/core/prompts");
|
||||||
const { JLINCTracer } = require("../src/tracer.js");
|
const { JLINCTracer } = require("@jlinc/langchain");
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const tracer = new JLINCTracer({
|
const tracer = new JLINCTracer({
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@jlinc/langchain",
|
"name": "@jlinc/langchain",
|
||||||
"version": "0.1.0",
|
"version": "0.1.3",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@jlinc/langchain",
|
"name": "@jlinc/langchain",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"description": "A LangChain integration that logs events to the JLINC API.",
|
"description": "A LangChain integration that logs events to the JLINC API.",
|
||||||
"main": "dist/tracer.js",
|
"main": "dist/tracer.js",
|
||||||
"types": "dist/tracer.d.ts",
|
"types": "dist/tracer.d.ts",
|
||||||
|
|||||||
Reference in New Issue
Block a user