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 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-CmUK7sna.mjs';
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-CmUK7sna.js';
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
- const cached = this.requestClientEventIds.get(requestBody);
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
- const cached = this.requestClientEventIds.get(requestBody);
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) {
@@ -82,7 +82,6 @@ declare class AgentID {
82
82
  private pii;
83
83
  private localEnforcer;
84
84
  private injectionScanner;
85
- private requestClientEventIds;
86
85
  private recentGuardVerdicts;
87
86
  constructor(config: AgentIDConfig);
88
87
  private buildClientCapabilities;
@@ -82,7 +82,6 @@ declare class AgentID {
82
82
  private pii;
83
83
  private localEnforcer;
84
84
  private injectionScanner;
85
- private requestClientEventIds;
86
85
  private recentGuardVerdicts;
87
86
  constructor(config: AgentIDConfig);
88
87
  private buildClientCapabilities;
@@ -1 +1 @@
1
- export { a as AgentIDCallbackHandler } from './langchain-CmUK7sna.mjs';
1
+ export { a as AgentIDCallbackHandler } from './langchain-CWHTxef0.mjs';
@@ -1 +1 @@
1
- export { a as AgentIDCallbackHandler } from './langchain-CmUK7sna.js';
1
+ export { a as AgentIDCallbackHandler } from './langchain-CWHTxef0.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentid-sdk",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "AgentID JavaScript/TypeScript SDK for guard, ingest, tracing, and analytics.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://agentid.ai",