@noetaris/harness-types 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +25 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -67,6 +67,30 @@ interface LLMUsageEvent {
67
67
  };
68
68
  modelId: string;
69
69
  stopReason: LLMResponse['stopReason'];
70
+ providerName: string;
71
+ }
72
+ /**
73
+ * Payload emitted on `"tool.call"` before a tool is dispatched.
74
+ *
75
+ * `input` is opt-in — it may contain sensitive data; omit by default.
76
+ */
77
+ interface ToolCallEvent {
78
+ toolName: string;
79
+ toolCallId: string;
80
+ input?: unknown;
81
+ }
82
+ /**
83
+ * Payload emitted on `"tool.result"` after a tool completes or throws.
84
+ *
85
+ * `result` and `error` are opt-in — they may contain sensitive data; omit by default.
86
+ * Set `error` when the tool threw; leave it absent on success.
87
+ */
88
+ interface ToolResultEvent {
89
+ toolName: string;
90
+ toolCallId: string;
91
+ durationMs: number;
92
+ result?: unknown;
93
+ error?: unknown;
70
94
  }
71
95
  /**
72
96
  * Core interface every LLM adapter must implement.
@@ -88,4 +112,4 @@ interface LLM {
88
112
  }): Promise<LLMResponse>;
89
113
  }
90
114
 
91
- export type { LLM, LLMResponse, LLMUsageEvent, Message, Tool, ToolCall };
115
+ export type { LLM, LLMResponse, LLMUsageEvent, Message, Tool, ToolCall, ToolCallEvent, ToolResultEvent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noetaris/harness-types",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Shared LLM type contract for the @noetaris/harness ecosystem",
5
5
  "type": "module",
6
6
  "repository": {