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.
@@ -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