Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .netconfig
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@
weak
[file "src/GrokClient/chat.proto"]
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/chat.proto
sha = 92e44aad6de6f4dff4034c2ba118a6aed3351711
etag = 9d685da14ef9bc269ed6f29b87f6874bb5eb4662586092a221c90fabdac40418
sha = 362749661fa2d340d234ad372fab920538897821
etag = 0e35007f9056fd101983a35614525773ea215eec9a8fa6707c2ec4866da5b7f8
weak
[file "src/GrokClient/deferred.proto"]
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/deferred.proto
Expand Down Expand Up @@ -167,8 +167,8 @@
weak
[file "src/GrokClient/usage.proto"]
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/usage.proto
sha = afc88be2698cf4fb5ad476734d02b931241c0624
etag = e760ecb2f328565e57bbd0ad1fec6a62004088c8b217c0cb178653cd2c1bf432
sha = 362749661fa2d340d234ad372fab920538897821
etag = bd66823dfde1a2fff714d3712104bef886baf22da9f94c7505acee37d3ff67fd
weak
[file "src/GrokClient/google/protobuf/timestamp.proto"]
url = https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/timestamp.proto
Expand Down
15 changes: 8 additions & 7 deletions src/GrokClient/chat.proto
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ enum IncludeOption {
// Include the plaintext output from the collections search tool in the response.
INCLUDE_OPTION_COLLECTIONS_SEARCH_CALL_OUTPUT = 4;

// Include the plaintext output from the document search tool in the response.
INCLUDE_OPTION_DOCUMENT_SEARCH_CALL_OUTPUT = 5;
// Include the plaintext output from the attachment search tool in the response.
INCLUDE_OPTION_ATTACHMENT_SEARCH_CALL_OUTPUT = 5;

// Include the plaintext output from the MCP tool in the response.
INCLUDE_OPTION_MCP_CALL_OUTPUT = 6;
Expand Down Expand Up @@ -585,8 +585,8 @@ message Tool {
CollectionsSearch collections_search = 6;
// A remote MCP server to use.
MCP mcp = 7;
// Built in document search.
DocumentSearch document_search = 8;
// Built in attachment search.
AttachmentSearch attachment_search = 8;
}
}

Expand Down Expand Up @@ -668,7 +668,7 @@ message CollectionsSearch {
optional int32 limit = 2;
}

message DocumentSearch {
message AttachmentSearch {
// Optional number of files to limit the search to.
optional int32 limit = 2;
}
Expand Down Expand Up @@ -714,8 +714,9 @@ enum ToolCallType {
// Maps to `mcp_call` type in OAI Responses API.
TOOL_CALL_TYPE_MCP_TOOL = 6;

// Indicates the tool is a server-side document_search tool, and client side won't need to execute.
TOOL_CALL_TYPE_DOCUMENT_SEARCH_TOOL = 7;
// Indicates the tool is a server-side attachment_search tool, and client side won't need to execute.
// Maps to `attachment_search_call` type in OAI Responses API.
TOOL_CALL_TYPE_ATTACHMENT_SEARCH_TOOL = 7;
}

enum ToolCallStatus {
Expand Down
2 changes: 1 addition & 1 deletion src/GrokClient/usage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ enum ServerSideTool {
SERVER_SIDE_TOOL_VIEW_X_VIDEO = 5;
SERVER_SIDE_TOOL_COLLECTIONS_SEARCH = 6;
SERVER_SIDE_TOOL_MCP = 7;
SERVER_SIDE_TOOL_DOCUMENT_SEARCH = 8;
SERVER_SIDE_TOOL_ATTACHMENT_SEARCH = 8;
}