Skip to content

Commit 7ea8499

Browse files
devlooped-botkzu
authored andcommitted
⬆️ Bump files with dotnet-file sync
# xai-org/xai-proto - Add `end_index` for `InlineCitation` (#20) xai-org/xai-proto@f2ee2fa
1 parent 9a97db9 commit 7ea8499

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

.netconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@
127127
weak
128128
[file "src/GrokClient/chat.proto"]
129129
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/chat.proto
130-
sha = 230d00180161329075094e72593db408dd12f3bf
131-
etag = 2b6a23b70c4df35423d139b9aa26f50d9ba8f7f334ffb9cb74dc28bdb5078dfe
130+
sha = f2ee2fa88814da30260c0821362dd9cb60555980
131+
etag = 86aeb20ee0a3bad2b9755541ddbfd11e082e7a9e0f8682b8cb3146a01adc74f9
132132
weak
133133
[file "src/GrokClient/deferred.proto"]
134134
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/deferred.proto

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ See for example the [introduction of tool output and citations](https://github.c
8989
[![torutek](https://avatars.githubusercontent.com/u/33917059?v=4&s=39 "torutek")](https://github.com/torutek)
9090
[![mccaffers](https://avatars.githubusercontent.com/u/16667079?u=739e110e62a75870c981640447efa5eb2cb3bc8f&v=4&s=39 "mccaffers")](https://github.com/mccaffers)
9191
[![Christoph Hochstätter](https://avatars.githubusercontent.com/u/17645550?u=01bbdcb84d03cac26260f1c951e046d24a324591&v=4&s=39 "Christoph Hochstätter")](https://github.com/christoh)
92+
[![ADS Fund](https://avatars.githubusercontent.com/u/202042116?v=4&s=39 "ADS Fund")](https://github.com/ADS-Fund)
9293

9394

9495
<!-- sponsors.md -->

src/GrokClient/chat.proto

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,25 @@ message Delta {
327327
}
328328

329329
message InlineCitation {
330-
// The globally unique id of the citation per response.
330+
// The display number for this citation (e.g., "1", "2", "3").
331+
// This ID is reused when the same source is cited multiple times in a
332+
// response, ensuring consistent numbering (e.g., the same URL always shows as
333+
// [1]).
331334
string id = 1;
332335

333-
// The index where the inline citation should be inserted in the complete text response.
336+
// The character position in the response text where the citation markdown
337+
// link begins. This is the index of the first '[' character in the citation
338+
// format [[id]](url). Uses inclusive indexing (the character at this index is
339+
// part of the citation).
334340
int32 start_index = 2;
335341

342+
// The character position in the response text immediately after the citation
343+
// markdown link ends. This is the index after the final ']' character in the
344+
// citation format [[id]](url). Uses exclusive indexing (the character at this
345+
// index is NOT part of the citation). Together with start_index,
346+
// text[start_index:end_index] extracts the full citation link.
347+
int32 end_index = 6;
348+
336349
// The citation type.
337350
oneof citation {
338351
// The citation returned from the web search tool.

0 commit comments

Comments
 (0)