@indexnetwork/protocol 66.0.0-rc.639.1 → 66.0.0-rc.641.1
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/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
### Added
|
|
6
6
|
|
|
7
7
|
- `OpportunityDetection.source` gains `'introducer'`, stamped on opportunities a third party opens.
|
|
8
|
-
- Protocol agent requests to OpenRouter carry `HTTP-Referer` and `X-Title` headers, so their spend is attributed apart from the hosted agent's, and a `trace` named by the agent key (for example `intentInferrer` or `chat`).
|
|
8
|
+
- Protocol agent requests to OpenRouter carry `HTTP-Referer` and `X-Title` headers, so their spend is attributed apart from the hosted agent's, and a `trace` and `metadata` (`service: "protocol"`, `operation`) named by the agent key (for example `intentInferrer` or `chat`).
|
|
9
9
|
|
|
10
10
|
## 66.0.0
|
|
11
11
|
|
|
@@ -97,8 +97,12 @@ function instantiateModel(agent, cfg, config) {
|
|
|
97
97
|
maxTokens: cfg.maxTokens,
|
|
98
98
|
timeout,
|
|
99
99
|
maxRetries,
|
|
100
|
-
// `trace`
|
|
101
|
-
modelKwargs: {
|
|
100
|
+
// `trace` and `metadata` name each call by its agent, so OpenRouter reads spend per agent.
|
|
101
|
+
modelKwargs: {
|
|
102
|
+
trace: { trace_name: "protocol", generation_name: agent },
|
|
103
|
+
metadata: { service: "protocol", operation: agent },
|
|
104
|
+
...(cfg.reasoning && { reasoning: cfg.reasoning }),
|
|
105
|
+
},
|
|
102
106
|
});
|
|
103
107
|
}
|
|
104
108
|
/**
|