Skip to content

Commit 6e049d9

Browse files
committed
Switch to official gRPC GrokClient and fix function calling
We model the hosted tool content so that responses can include them if needed by the client.
1 parent 6599f49 commit 6e049d9

20 files changed

+151
-2430
lines changed

.netconfig

Lines changed: 1 addition & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -168,71 +168,4 @@
168168
url = https://github.com/andrewlock/NetEscapades.Configuration/blob/master/src/NetEscapades.Configuration.Yaml/YamlConfigurationStreamParser.cs
169169
weak
170170
sha = a1ec2c6746d96b4f6f140509aa68dcff09271146
171-
etag = 9e5c6908edc34eb661d647671f79153d8f3a54ebdc848c8765c78d2715f2f657
172-
[file "src/Extensions.Grok/proto/."]
173-
url = https://github.com/xai-org/xai-proto/tree/main/proto/xai/api/v1/
174-
[file "src/Extensions.Grok/proto/auth.proto"]
175-
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/auth.proto
176-
sha = 626a3a3f22d8aa11c7a185bf8902e7d415df0462
177-
etag = ea074da4f67b67ebf0e8a0b2114a1720d6b3176a8324aa1cfd22740e78049d80
178-
weak
179-
[file "src/Extensions.Grok/proto/chat.proto"]
180-
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/chat.proto
181-
sha = afc88be2698cf4fb5ad476734d02b931241c0624
182-
etag = b451f89cb67e77a021f258babf6b52118570afff3de53d2bf4463a1076031e69
183-
weak
184-
[file "src/Extensions.Grok/proto/deferred.proto"]
185-
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/deferred.proto
186-
sha = 626a3a3f22d8aa11c7a185bf8902e7d415df0462
187-
etag = d47b84dddfc4252abbced302fde18ea8093933a3a8d5516350db596d3ae86595
188-
weak
189-
[file "src/Extensions.Grok/proto/documents.proto"]
190-
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/documents.proto
191-
sha = 736b835b0c0dd93698664732daad49f87a2fbc6f
192-
etag = 3719cf7bc6280bc244ec25290be31fc925c95d0833f5fe282d9d0be805827ec6
193-
weak
194-
[file "src/Extensions.Grok/proto/embed.proto"]
195-
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/embed.proto
196-
sha = 626a3a3f22d8aa11c7a185bf8902e7d415df0462
197-
etag = e39d176e278c4b31be375fe8bd7a21a17fceb61422b38fb0ba0341bdb58e6b36
198-
weak
199-
[file "src/Extensions.Grok/proto/image.proto"]
200-
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/image.proto
201-
sha = 626a3a3f22d8aa11c7a185bf8902e7d415df0462
202-
etag = 72140789ccabd84bb51e0120c4b86f78ffa03de324410887034c8c45684004c6
203-
weak
204-
[file "src/Extensions.Grok/proto/models.proto"]
205-
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/models.proto
206-
sha = 626a3a3f22d8aa11c7a185bf8902e7d415df0462
207-
etag = af6557257e396c857f85997e118358a689a5627303d0d4c89124aae0691813c5
208-
weak
209-
[file "src/Extensions.Grok/proto/sample.proto"]
210-
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/sample.proto
211-
sha = 6c67dda8aed9c1c82cb75d4548c14785c43c654c
212-
etag = 0749bb07dcf0078c5cf5832b7c78abec3a332197d83781eacc57999af8846a65
213-
weak
214-
[file "src/Extensions.Grok/proto/tokenize.proto"]
215-
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/tokenize.proto
216-
sha = 626a3a3f22d8aa11c7a185bf8902e7d415df0462
217-
etag = 000b345ae3d238d6be847eb8336b22f89d43a8bc1876d0bebfb81c1930260f2e
218-
weak
219-
[file "src/Extensions.Grok/proto/usage.proto"]
220-
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/usage.proto
221-
sha = afc88be2698cf4fb5ad476734d02b931241c0624
222-
etag = e760ecb2f328565e57bbd0ad1fec6a62004088c8b217c0cb178653cd2c1bf432
223-
weak
224-
[file "src/Extensions.Grok/Extensions/Throw.cs"]
225-
url = https://github.com/devlooped/catbag/blob/main/System/Throw.cs
226-
sha = 3012d56be7554c483e5c5d277144c063969cada9
227-
etag = 43c81c6c6dcdf5baee40a9e3edc5e871e473e6c954c901b82bb87a3a48888ea0
228-
weak
229-
[file "src/Extensions.Grok/proto/google/protobuf/timestamp.proto"]
230-
url = https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/timestamp.proto
231-
sha = 71f247a9cf5ddcd310d8aa5e05cea2acc72f9a7f
232-
etag = ca7512680f5ac0d26b57c5cfebca26d906112e3cb02a9739bad342ad70a45ed5
233-
weak
234-
[file "src/Extensions.Grok/proto/google/protobuf/empty.proto"]
235-
url = https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/empty.proto
236-
sha = 407aa2d9319f5db12964540810b446fecc22d419
237-
etag = 0dca55f20a72d3279554837f4eba867a1de37fe0f4a7535c2d9bc43867361cc5
238-
weak
171+
etag = 9e5c6908edc34eb661d647671f79153d8f3a54ebdc848c8765c78d2715f2f657

src/Extensions.Grok/ClientPipelineCallInvoker.cs

Lines changed: 0 additions & 270 deletions
This file was deleted.

src/Extensions.Grok/Extensions.Grok.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,14 @@
1414

1515
<ItemGroup>
1616
<PackageReference Include="Google.Protobuf" Version="3.33.1" />
17+
<PackageReference Include="GrokClient" Version="1.0.0" />
1718
<PackageReference Include="Grpc.Net.Client" Version="2.71.0" />
1819
<PackageReference Include="Grpc.Tools" Version="2.76.0" PrivateAssets="all" />
1920
<PackageReference Include="NuGetizer" Version="1.4.5" PrivateAssets="all" />
2021
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="10.0.0" />
2122
<PackageReference Include="System.ClientModel" Version="1.8.1" />
2223
</ItemGroup>
2324

24-
<ItemGroup>
25-
<Protobuf Include="proto\*.proto" GrpcServices="Client" ProtoRoot="proto" />
26-
</ItemGroup>
27-
2825
<ItemGroup>
2926
<Compile Include="..\Extensions\Extensions\ChatOptionsExtensions.cs" Link="Extensions\ChatOptionsExtensions.cs" />
3027
</ItemGroup>

src/Extensions.Grok/Extensions.Grok.sln

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)