dialai 1.1.0 → 1.3.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/.claude/skills/dial-machine/references/api-reference.md +7 -0
- package/.claude/specs/enriched-transitions.md +1100 -0
- package/.claude/specs/proposal-metadata-update.md +211 -0
- package/.claude/specs/submit-proposal-cleanup.md +319 -0
- package/README.md +1 -1
- package/dist/dialai/api.d.ts +2 -6
- package/dist/dialai/api.d.ts.map +1 -1
- package/dist/dialai/api.js +24 -14
- package/dist/dialai/api.js.map +1 -1
- package/dist/dialai/llm.d.ts.map +1 -1
- package/dist/dialai/llm.js +10 -1
- package/dist/dialai/llm.js.map +1 -1
- package/dist/dialai/types.d.ts +10 -0
- package/dist/dialai/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -121,9 +121,16 @@ interface ProposerStrategyResult {
|
|
|
121
121
|
transitionName: string;
|
|
122
122
|
toState: string;
|
|
123
123
|
reasoning: string;
|
|
124
|
+
metaJson?: Record<string, unknown>; // Structured metadata (e.g., tool arguments)
|
|
125
|
+
costUSD?: number; // Cost in USD to generate this result
|
|
126
|
+
latencyMsec?: number; // Time in milliseconds to generate
|
|
127
|
+
numInputTokens?: number; // Input tokens used
|
|
128
|
+
numOutputTokens?: number; // Output tokens used
|
|
124
129
|
}
|
|
125
130
|
```
|
|
126
131
|
|
|
132
|
+
When returned from a strategy function, these optional metric and metadata fields are merged into the resulting `Proposal`. Values passed via `SubmitProposalOptions` take precedence over strategy-returned values.
|
|
133
|
+
|
|
127
134
|
### `ArbiterStrategyResult`
|
|
128
135
|
|
|
129
136
|
```typescript
|