wauldo 0.8.0 → 0.9.0

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
@@ -783,8 +783,8 @@ declare class AgentsClient {
783
783
  get(agentId: string): Promise<DeployedAgent>;
784
784
  update(agentId: string, patch: UpdateAgentPatch): Promise<DeployedAgent>;
785
785
  delete(agentId: string): Promise<void>;
786
- run(agentId: string, input: string, verificationMode?: "strict" | "balanced" | "permissive"): Promise<AgentRunResponse>;
787
- a2aInvoke(agentId: string, input: string, trace?: string[], verificationMode?: "strict" | "balanced" | "permissive"): Promise<A2aResponse>;
786
+ run(agentId: string, input: string, verificationMode?: "strict" | "balanced" | "permissive", factCheckMode?: "lexical" | "hybrid" | "semantic"): Promise<AgentRunResponse>;
787
+ a2aInvoke(agentId: string, input: string, trace?: string[], verificationMode?: "strict" | "balanced" | "permissive", factCheckMode?: "lexical" | "hybrid" | "semantic"): Promise<A2aResponse>;
788
788
  /** `GET /v1/tasks/:id` — fetch the current state of a task. */
789
789
  getTask(taskId: string): Promise<Task>;
790
790
  /** `DELETE /v1/tasks/:id` — cancel a queued or running task. */
package/dist/index.d.ts CHANGED
@@ -783,8 +783,8 @@ declare class AgentsClient {
783
783
  get(agentId: string): Promise<DeployedAgent>;
784
784
  update(agentId: string, patch: UpdateAgentPatch): Promise<DeployedAgent>;
785
785
  delete(agentId: string): Promise<void>;
786
- run(agentId: string, input: string, verificationMode?: "strict" | "balanced" | "permissive"): Promise<AgentRunResponse>;
787
- a2aInvoke(agentId: string, input: string, trace?: string[], verificationMode?: "strict" | "balanced" | "permissive"): Promise<A2aResponse>;
786
+ run(agentId: string, input: string, verificationMode?: "strict" | "balanced" | "permissive", factCheckMode?: "lexical" | "hybrid" | "semantic"): Promise<AgentRunResponse>;
787
+ a2aInvoke(agentId: string, input: string, trace?: string[], verificationMode?: "strict" | "balanced" | "permissive", factCheckMode?: "lexical" | "hybrid" | "semantic"): Promise<A2aResponse>;
788
788
  /** `GET /v1/tasks/:id` — fetch the current state of a task. */
789
789
  getTask(taskId: string): Promise<Task>;
790
790
  /** `DELETE /v1/tasks/:id` — cancel a queued or running task. */
package/dist/index.js CHANGED
@@ -1403,20 +1403,22 @@ var AgentsClient = class {
1403
1403
  await this.request("DELETE", `/v1/agents/${agentId}`);
1404
1404
  }
1405
1405
  // ── Runs ────────────────────────────────────────────────────────
1406
- async run(agentId, input, verificationMode) {
1406
+ async run(agentId, input, verificationMode, factCheckMode) {
1407
1407
  if (!input) throw new Error("input is required");
1408
1408
  const body = { input };
1409
1409
  if (verificationMode) body.verification_mode = verificationMode;
1410
+ if (factCheckMode) body.fact_check_mode = factCheckMode;
1410
1411
  return await this.request(
1411
1412
  "POST",
1412
1413
  `/v1/agents/${agentId}/runs`,
1413
1414
  body
1414
1415
  );
1415
1416
  }
1416
- async a2aInvoke(agentId, input, trace, verificationMode) {
1417
+ async a2aInvoke(agentId, input, trace, verificationMode, factCheckMode) {
1417
1418
  if (!input) throw new Error("input is required");
1418
1419
  const body = { input };
1419
1420
  if (verificationMode) body.verification_mode = verificationMode;
1421
+ if (factCheckMode) body.fact_check_mode = factCheckMode;
1420
1422
  const extraHeaders = {};
1421
1423
  if (trace && trace.length > 0) extraHeaders["x-a2a-trace"] = trace.join(",");
1422
1424
  return await this.request(
package/dist/index.mjs CHANGED
@@ -1362,20 +1362,22 @@ var AgentsClient = class {
1362
1362
  await this.request("DELETE", `/v1/agents/${agentId}`);
1363
1363
  }
1364
1364
  // ── Runs ────────────────────────────────────────────────────────
1365
- async run(agentId, input, verificationMode) {
1365
+ async run(agentId, input, verificationMode, factCheckMode) {
1366
1366
  if (!input) throw new Error("input is required");
1367
1367
  const body = { input };
1368
1368
  if (verificationMode) body.verification_mode = verificationMode;
1369
+ if (factCheckMode) body.fact_check_mode = factCheckMode;
1369
1370
  return await this.request(
1370
1371
  "POST",
1371
1372
  `/v1/agents/${agentId}/runs`,
1372
1373
  body
1373
1374
  );
1374
1375
  }
1375
- async a2aInvoke(agentId, input, trace, verificationMode) {
1376
+ async a2aInvoke(agentId, input, trace, verificationMode, factCheckMode) {
1376
1377
  if (!input) throw new Error("input is required");
1377
1378
  const body = { input };
1378
1379
  if (verificationMode) body.verification_mode = verificationMode;
1380
+ if (factCheckMode) body.fact_check_mode = factCheckMode;
1379
1381
  const extraHeaders = {};
1380
1382
  if (trace && trace.length > 0) extraHeaders["x-a2a-trace"] = trace.join(",");
1381
1383
  return await this.request(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wauldo",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Official TypeScript SDK for Wauldo — Verified AI answers from your documents",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",