Skip to content

Commit 5cd5e17

Browse files
committed
⬆️ Bump files with dotnet-file sync
# devlooped/oss # xai-org/xai-proto
1 parent 7a71a5b commit 5cd5e17

7 files changed

Lines changed: 66 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ TestResults
77
results
88
BenchmarkDotNet.Artifacts
99
/app
10+
/mcps
1011
.vs
1112
.vscode
1213
.genaiscript

.netconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
[file ".gitignore"]
8282
url = https://github.com/devlooped/oss/blob/main/.gitignore
8383
sha = 12c18e78c4bbab118b798d04344e5a5253216841
84-
etag = 09b499201361a59fad0036e925f4008cdd7bdc6723ba37ff18cc509e6024b2bf
84+
etag = f502a2be3b4155fd86675ef45a4364e598979738128a612deb7db59074f93a51
8585
weak
8686
[file "Directory.Build.rsp"]
8787
url = https://github.com/devlooped/oss/blob/main/Directory.Build.rsp
@@ -106,12 +106,12 @@
106106
[file "src/Directory.Build.props"]
107107
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.props
108108
sha = dd13ed3334135c30dcb1e3b2295dc7622de298d9
109-
etag = b2b90c6d617db9712cc8be2031b767d3ba951015717984f52b4872cc39f93e72
109+
etag = f1d6384abf18d8d891ce5e835a10c73fe029c42151374be96d7e4af43d189c65
110110
weak
111111
[file "src/Directory.Build.targets"]
112112
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.targets
113113
sha = 083a37bd9307ec820bac6ee3c7384083151d36d8
114-
etag = 907682e5632a2ba430357e6e042a4ca33cb8c94a3a215d3091aa03f5958a4877
114+
etag = cb83faed0cc8b930a7b6bdc61bea03a54059858cf04353e55fee94d9e3ae0fad
115115
weak
116116
[file "src/nuget.config"]
117117
url = https://github.com/devlooped/oss/blob/main/src/nuget.config
@@ -153,7 +153,7 @@
153153
[file "src/xAI.Protocol/chat.proto"]
154154
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/chat.proto
155155
sha = c9345abd85649ecb5b27fe8708f573b4ab9d6971
156-
etag = a64a560fdac1cb6d349d38b19a58605fa59169879f3d6d517518e573fd137b8c
156+
etag = 22ba3971b319bccdde31765038300c8e70fee80b7bb239ed7b427c014e35ab1b
157157
weak
158158
[file "src/xAI.Protocol/deferred.proto"]
159159
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/deferred.proto
@@ -193,7 +193,7 @@
193193
[file "src/xAI.Protocol/usage.proto"]
194194
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/usage.proto
195195
sha = 362749661fa2d340d234ad372fab920538897821
196-
etag = 9fcf9731a547857d554e968968aedc3016fc5210e0a45d5b59d75a03b816a81e
196+
etag = ab94abd9c126b5ade766ec41f1e200412de6b37b4b2ed224897df72ab9e162bb
197197
weak
198198
[file "src/xAI.Protocol/video.proto"]
199199
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/video.proto

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ Uses your own API Key.
638638
[![Seika Logiciel](https://avatars.githubusercontent.com/u/2564602?v=4&s=39 "Seika Logiciel")](https://github.com/SeikaLogiciel)
639639
[![Andrew Grant](https://avatars.githubusercontent.com/devlooped-user?s=39 "Andrew Grant")](https://github.com/wizardness)
640640
[![eska-gmbh](https://avatars.githubusercontent.com/devlooped-team?s=39 "eska-gmbh")](https://github.com/eska-gmbh)
641+
[![Geodata AS](https://avatars.githubusercontent.com/u/5946299?v=4&s=39 "Geodata AS")](https://github.com/geodata-no)
641642

642643

643644
<!-- sponsors.md -->

src/Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
<WarnOnPackingNonPackableProject>false</WarnOnPackingNonPackableProject>
4848
<!-- See https://learn.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#prunepackagereference-specification -->
4949
<RestoreEnablePackagePruning>true</RestoreEnablePackagePruning>
50+
51+
<!-- Needed to improve nuget default for empty PackageId. Workaround for https://github.com/NuGet/Home/issues/14928 -->
52+
<ImportNuGetBuildTasksPackTargetsFromSdk>false</ImportNuGetBuildTasksPackTargetsFromSdk>
5053
</PropertyGroup>
5154

5255
<PropertyGroup Label="Build">

src/Directory.Build.targets

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,22 @@
3232
<IsPackable Condition="'$(PackageId)' != ''">true</IsPackable>
3333
</PropertyGroup>
3434

35+
<PropertyGroup>
36+
<!-- Save original PackageId to restore post-import -->
37+
<_PackageId>$(PackageId)</_PackageId>
38+
<!-- Since we set ImportNuGetBuildTasksPackTargetsFromSdk=false, the Sdk.targets doesn't even provide the path for this property :/ -->
39+
<NuGetBuildTasksPackTargets Condition="'$(NuGetBuildTasksPackTargets)' == ''">$(MSBuildSDKsPath)\..\NuGet.Build.Tasks.Pack.targets</NuGetBuildTasksPackTargets>
40+
</PropertyGroup>
41+
42+
<Import Project="$(NuGetBuildTasksPackTargets)" Condition="Exists('$(NuGetBuildTasksPackTargets)')"/>
43+
44+
<PropertyGroup>
45+
<!-- Revert the forced PackageId by the NuGet SDK targets for non-packable projects, see https://github.com/NuGet/Home/issues/14928 -->
46+
<PackageId Condition="'$(IsPackable)' == 'false'">$(_PackageId)</PackageId>
47+
<!-- If no PackageId was originally provided, ensure IsPackable is false -->
48+
<IsPackable Condition="'$(_PackageId)' == ''">false</IsPackable>
49+
</PropertyGroup>
50+
3551
<ItemGroup Condition="'$(IsPackable)' == 'true'" Label="NuGet">
3652
<!-- This is compatible with nugetizer and SDK pack -->
3753
<!-- Only difference is we don't copy either to output directory -->

src/xAI.Protocol/chat.proto

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ service Chat {
3232

3333
// Delete a stored response using the response ID.
3434
rpc DeleteStoredCompletion(DeleteStoredCompletionRequest) returns (DeleteStoredCompletionResponse) {}
35+
36+
// Compacts a full input context and returns a compacted context.
37+
// The client sends the current input items and receives back a compacted
38+
// set of items (with an opaque compaction blob) suitable for use as
39+
// the input to the next request.
40+
rpc CompactContext(CompactContextRequest) returns (CompactContextResponse) {}
3541
}
3642

3743
message GetCompletionsRequest {
@@ -675,6 +681,9 @@ message WebSearch {
675681
// Setting this will make the agentic search results more relevant to the specified location,
676682
// which is useful for geolocation-based search results refinement.
677683
optional WebSearchUserLocation user_location = 4;
684+
685+
// Enable image search results that can be embedded in responses.
686+
optional bool enable_image_search = 5;
678687
}
679688

680689
// The user location to use for a preference on the search results.
@@ -1127,3 +1136,33 @@ message DebugOutput {
11271136
// The tag of the sampler that served this request.
11281137
string sampler_tag = 11;
11291138
}
1139+
1140+
// ── Context compaction messages ─────────────────────────────────────────
1141+
1142+
// Request for the standalone CompactContext RPC.
1143+
message CompactContextRequest {
1144+
// Model to use for generating the compaction blob.
1145+
string model = 1;
1146+
1147+
// Full current input window as proto messages.
1148+
// This is the same set of messages the client would send in
1149+
// GetCompletionsRequest.messages.
1150+
repeated Message input = 2;
1151+
}
1152+
1153+
// Response from the standalone CompactContext RPC.
1154+
message CompactContextResponse {
1155+
// Unique compaction ID (e.g. cmp_<uuid>).
1156+
string id = 1;
1157+
1158+
// Opaque blob representing the compacted conversation. Clients must pass
1159+
// this back unchanged in subsequent requests.
1160+
string encrypted_content = 2;
1161+
1162+
// Number of input Message entries (role + content pairs) from the
1163+
// original input that were dropped or folded into the compacted blob.
1164+
uint32 dropped_message_count = 3;
1165+
1166+
// Token usage from the compacting model call.
1167+
SamplingUsage usage = 4;
1168+
}

src/xAI.Protocol/usage.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
syntax = "proto3";
2-
option csharp_namespace = "xAI.Protocol";
32

43
package xai_api;
54

@@ -65,4 +64,5 @@ enum ServerSideTool {
6564
SERVER_SIDE_TOOL_COLLECTIONS_SEARCH = 6;
6665
SERVER_SIDE_TOOL_MCP = 7;
6766
SERVER_SIDE_TOOL_ATTACHMENT_SEARCH = 8;
67+
SERVER_SIDE_TOOL_IMAGE_SEARCH = 10;
6868
}

0 commit comments

Comments
 (0)