@theway-ai/sdk 2.2.1 → 2.2.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theway-ai/sdk",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "TypeScript SDK for the theway gRPC daemon (five theway.grpc.v1 domain services + grpc.health.v1). Typed client for all RPCs, generated from the domain proto files via ts-proto.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
package/proto/session.proto
CHANGED
|
@@ -59,12 +59,15 @@ message FeedBlockPatch {
|
|
|
59
59
|
|
|
60
60
|
// Token usage for the current/last turn, plus the model's context window size.
|
|
61
61
|
message ContextUsage {
|
|
62
|
-
uint64
|
|
63
|
-
uint64
|
|
64
|
-
uint64
|
|
65
|
-
uint64
|
|
66
|
-
uint64
|
|
67
|
-
|
|
62
|
+
uint64 cached_tokens = 1;
|
|
63
|
+
uint64 new_tokens = 2;
|
|
64
|
+
uint64 total_input_tokens = 3;
|
|
65
|
+
uint64 output_tokens = 4;
|
|
66
|
+
uint64 cache_write_tokens = 5;
|
|
67
|
+
optional double provider_cache_hit_rate = 6;
|
|
68
|
+
optional double prefix_cache_hit_rate = 7;
|
|
69
|
+
optional uint64 prefix_hit_tokens = 8;
|
|
70
|
+
uint32 context_window = 9;
|
|
68
71
|
}
|
|
69
72
|
|
|
70
73
|
message ProviderGroup {
|
|
@@ -187,9 +190,10 @@ message FeedBlock {
|
|
|
187
190
|
UserBlock user = 1;
|
|
188
191
|
AssistantBlock assistant = 2;
|
|
189
192
|
ThinkingBlock thinking = 3;
|
|
190
|
-
ToolBlock tool = 4;
|
|
191
193
|
ToolResultBlock tool_result = 5;
|
|
192
194
|
PlainBlock plain = 6;
|
|
195
|
+
ToolCallBlock tool_call = 7;
|
|
196
|
+
ErrorBlock error = 8;
|
|
193
197
|
}
|
|
194
198
|
}
|
|
195
199
|
|
|
@@ -208,10 +212,18 @@ message ThinkingBlock {
|
|
|
208
212
|
optional string timestamp = 2; // RFC3339 / ISO-8601 with offset (UTC), null when absent.
|
|
209
213
|
}
|
|
210
214
|
|
|
211
|
-
message
|
|
215
|
+
message ToolCallBlock {
|
|
212
216
|
string name = 1;
|
|
213
217
|
string args = 2;
|
|
214
|
-
optional string
|
|
218
|
+
optional string metadata = 3; // Optional tool-call metadata (JSON string).
|
|
219
|
+
optional string timestamp = 4; // RFC3339 / ISO-8601 with offset (UTC), null when absent.
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
message ErrorBlock {
|
|
223
|
+
string message = 1;
|
|
224
|
+
optional string code = 2;
|
|
225
|
+
bool recoverable = 3;
|
|
226
|
+
optional string timestamp = 4; // RFC3339 / ISO-8601 with offset (UTC), null when absent.
|
|
215
227
|
}
|
|
216
228
|
|
|
217
229
|
message ToolResultBlock {
|
|
@@ -243,6 +255,7 @@ message SessionSummary {
|
|
|
243
255
|
optional string preview = 10;
|
|
244
256
|
map<string, string> metadata = 11;
|
|
245
257
|
optional string last_activity_at_rfc3339 = 12; // RFC3339 / ISO-8601 with offset (UTC), null when absent.
|
|
258
|
+
string tree_prefix = 14; // Pi-style tree prefix (`├─ ` / `└─ ` / `│ `) for fork-lineage display.
|
|
246
259
|
}
|
|
247
260
|
|
|
248
261
|
// Thinking levels supported by the runtime.
|