agentid-sdk 0.1.16 → 0.1.17
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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -8
- package/dist/index.mjs +1 -8
- package/dist/{langchain-CmUK7sna.d.mts → langchain-CWHTxef0.d.mts} +0 -1
- package/dist/{langchain-CmUK7sna.d.ts → langchain-CWHTxef0.d.ts} +0 -1
- package/dist/langchain.d.mts +1 -1
- package/dist/langchain.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AgentID, a as AgentIDCallbackHandler, G as GuardParams, b as GuardResponse, L as LogParams, P as PreparedInput, R as RequestOptions } from './langchain-
|
|
1
|
+
export { A as AgentID, a as AgentIDCallbackHandler, G as GuardParams, b as GuardResponse, L as LogParams, P as PreparedInput, R as RequestOptions } from './langchain-CWHTxef0.mjs';
|
|
2
2
|
|
|
3
3
|
type PIIMapping = Record<string, string>;
|
|
4
4
|
declare class PIIManager {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AgentID, a as AgentIDCallbackHandler, G as GuardParams, b as GuardResponse, L as LogParams, P as PreparedInput, R as RequestOptions } from './langchain-
|
|
1
|
+
export { A as AgentID, a as AgentIDCallbackHandler, G as GuardParams, b as GuardResponse, L as LogParams, P as PreparedInput, R as RequestOptions } from './langchain-CWHTxef0.js';
|
|
2
2
|
|
|
3
3
|
type PIIMapping = Record<string, string>;
|
|
4
4
|
declare class PIIManager {
|
package/dist/index.js
CHANGED
|
@@ -1995,7 +1995,6 @@ function createCompletionChunkCollector() {
|
|
|
1995
1995
|
var AgentID = class {
|
|
1996
1996
|
constructor(config) {
|
|
1997
1997
|
this.injectionScanner = getInjectionScanner();
|
|
1998
|
-
this.requestClientEventIds = /* @__PURE__ */ new WeakMap();
|
|
1999
1998
|
this.recentGuardVerdicts = /* @__PURE__ */ new Map();
|
|
2000
1999
|
this.apiKey = config.apiKey.trim();
|
|
2001
2000
|
this.baseUrl = normalizeBaseUrl3(config.baseUrl ?? "https://app.getagentid.com/api/v1");
|
|
@@ -2037,13 +2036,7 @@ var AgentID = class {
|
|
|
2037
2036
|
return metadataClientEventId;
|
|
2038
2037
|
}
|
|
2039
2038
|
}
|
|
2040
|
-
|
|
2041
|
-
if (cached) {
|
|
2042
|
-
return cached;
|
|
2043
|
-
}
|
|
2044
|
-
const generated = createEventId();
|
|
2045
|
-
this.requestClientEventIds.set(requestBody, generated);
|
|
2046
|
-
return generated;
|
|
2039
|
+
return createEventId();
|
|
2047
2040
|
}
|
|
2048
2041
|
buildGuardCacheKey(params) {
|
|
2049
2042
|
if (!params.system_id || !params.input) {
|
package/dist/index.mjs
CHANGED
|
@@ -1957,7 +1957,6 @@ function createCompletionChunkCollector() {
|
|
|
1957
1957
|
var AgentID = class {
|
|
1958
1958
|
constructor(config) {
|
|
1959
1959
|
this.injectionScanner = getInjectionScanner();
|
|
1960
|
-
this.requestClientEventIds = /* @__PURE__ */ new WeakMap();
|
|
1961
1960
|
this.recentGuardVerdicts = /* @__PURE__ */ new Map();
|
|
1962
1961
|
this.apiKey = config.apiKey.trim();
|
|
1963
1962
|
this.baseUrl = normalizeBaseUrl3(config.baseUrl ?? "https://app.getagentid.com/api/v1");
|
|
@@ -1999,13 +1998,7 @@ var AgentID = class {
|
|
|
1999
1998
|
return metadataClientEventId;
|
|
2000
1999
|
}
|
|
2001
2000
|
}
|
|
2002
|
-
|
|
2003
|
-
if (cached) {
|
|
2004
|
-
return cached;
|
|
2005
|
-
}
|
|
2006
|
-
const generated = createEventId();
|
|
2007
|
-
this.requestClientEventIds.set(requestBody, generated);
|
|
2008
|
-
return generated;
|
|
2001
|
+
return createEventId();
|
|
2009
2002
|
}
|
|
2010
2003
|
buildGuardCacheKey(params) {
|
|
2011
2004
|
if (!params.system_id || !params.input) {
|
package/dist/langchain.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as AgentIDCallbackHandler } from './langchain-
|
|
1
|
+
export { a as AgentIDCallbackHandler } from './langchain-CWHTxef0.mjs';
|
package/dist/langchain.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as AgentIDCallbackHandler } from './langchain-
|
|
1
|
+
export { a as AgentIDCallbackHandler } from './langchain-CWHTxef0.js';
|