pi-cursor-agent 0.1.0
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/LICENSE +19 -0
- package/README.md +45 -0
- package/package.json +50 -0
- package/src/__generated__/agent/v1/agent_pb.ts +4642 -0
- package/src/__generated__/agent/v1/agent_service_connect.ts +71 -0
- package/src/__generated__/agent/v1/apply_agent_diff_tool_pb.ts +317 -0
- package/src/__generated__/agent/v1/ask_question_tool_pb.ts +588 -0
- package/src/__generated__/agent/v1/background_shell_exec_pb.ts +245 -0
- package/src/__generated__/agent/v1/computer_use_tool_pb.ts +959 -0
- package/src/__generated__/agent/v1/control_service_connect.ts +144 -0
- package/src/__generated__/agent/v1/control_service_pb.ts +1308 -0
- package/src/__generated__/agent/v1/create_plan_tool_pb.ts +366 -0
- package/src/__generated__/agent/v1/cursor_packages_pb.ts +278 -0
- package/src/__generated__/agent/v1/cursor_rules_pb.ts +301 -0
- package/src/__generated__/agent/v1/delete_exec_pb.ts +443 -0
- package/src/__generated__/agent/v1/delete_tool_pb.ts +52 -0
- package/src/__generated__/agent/v1/diagnostics_exec_pb.ts +399 -0
- package/src/__generated__/agent/v1/edit_tool_pb.ts +497 -0
- package/src/__generated__/agent/v1/exa_fetch_tool_pb.ts +472 -0
- package/src/__generated__/agent/v1/exa_search_tool_pb.ts +484 -0
- package/src/__generated__/agent/v1/exec_pb.ts +1271 -0
- package/src/__generated__/agent/v1/exec_service_connect.ts +14 -0
- package/src/__generated__/agent/v1/fetch_tool_pb.ts +242 -0
- package/src/__generated__/agent/v1/generate_image_tool_pb.ts +230 -0
- package/src/__generated__/agent/v1/glob_tool_pb.ts +248 -0
- package/src/__generated__/agent/v1/grep_exec_pb.ts +690 -0
- package/src/__generated__/agent/v1/grep_tool_pb.ts +52 -0
- package/src/__generated__/agent/v1/kv_pb.ts +281 -0
- package/src/__generated__/agent/v1/ls_exec_pb.ts +295 -0
- package/src/__generated__/agent/v1/ls_tool_pb.ts +52 -0
- package/src/__generated__/agent/v1/mcp_pb.ts +302 -0
- package/src/__generated__/agent/v1/mcp_resource_tool_pb.ts +688 -0
- package/src/__generated__/agent/v1/mcp_tool_pb.ts +630 -0
- package/src/__generated__/agent/v1/private_worker_bridge_external_connect.ts +26 -0
- package/src/__generated__/agent/v1/read_exec_pb.ts +412 -0
- package/src/__generated__/agent/v1/read_lints_tool_pb.ts +384 -0
- package/src/__generated__/agent/v1/read_tool_pb.ts +342 -0
- package/src/__generated__/agent/v1/record_screen_tool_pb.ts +376 -0
- package/src/__generated__/agent/v1/reflect_tool_pb.ts +236 -0
- package/src/__generated__/agent/v1/repo_pb.ts +154 -0
- package/src/__generated__/agent/v1/report_bugfix_results_tool_pb.ts +305 -0
- package/src/__generated__/agent/v1/request_context_exec_pb.ts +528 -0
- package/src/__generated__/agent/v1/sandbox_pb.ts +125 -0
- package/src/__generated__/agent/v1/selected_context_pb.ts +2272 -0
- package/src/__generated__/agent/v1/semsearch_tool_pb.ts +230 -0
- package/src/__generated__/agent/v1/setup_vm_environment_tool_pb.ts +168 -0
- package/src/__generated__/agent/v1/shell_exec_pb.ts +1195 -0
- package/src/__generated__/agent/v1/shell_tool_pb.ts +176 -0
- package/src/__generated__/agent/v1/start_grind_execution_tool_pb.ts +212 -0
- package/src/__generated__/agent/v1/start_grind_planning_tool_pb.ts +212 -0
- package/src/__generated__/agent/v1/subagents_pb.ts +1106 -0
- package/src/__generated__/agent/v1/switch_mode_tool_pb.ts +429 -0
- package/src/__generated__/agent/v1/todo_tool_pb.ts +551 -0
- package/src/__generated__/agent/v1/utils_pb.ts +348 -0
- package/src/__generated__/agent/v1/web_fetch_tool_pb.ts +429 -0
- package/src/__generated__/agent/v1/web_search_tool_pb.ts +466 -0
- package/src/__generated__/agent/v1/write_exec_pb.ts +379 -0
- package/src/__generated__/agent/v1/write_shell_stdin_tool_pb.ts +224 -0
- package/src/__generated__/aiserver/v1/aiserver_service_connect.ts +40 -0
- package/src/api/agent-service.ts +55 -0
- package/src/api/ai-service.ts +42 -0
- package/src/api/auth.ts +74 -0
- package/src/index.ts +101 -0
- package/src/lib/agent-store/disk.ts +139 -0
- package/src/lib/agent-store/index.ts +72 -0
- package/src/lib/agent-store/json-blob-store.ts +47 -0
- package/src/lib/auth.ts +135 -0
- package/src/lib/backoff.ts +32 -0
- package/src/lib/env.ts +3 -0
- package/src/lib/heartbeat.ts +21 -0
- package/src/pi/agent-store.ts +102 -0
- package/src/pi/env.ts +11 -0
- package/src/pi/executors/delete.ts +129 -0
- package/src/pi/executors/grep.ts +238 -0
- package/src/pi/executors/hook.ts +64 -0
- package/src/pi/executors/ls.ts +107 -0
- package/src/pi/executors/read.ts +73 -0
- package/src/pi/executors/request-context.ts +120 -0
- package/src/pi/executors/shell-stream.ts +136 -0
- package/src/pi/executors/shell.ts +157 -0
- package/src/pi/executors/stubs.ts +173 -0
- package/src/pi/executors/write.ts +189 -0
- package/src/pi/local-resource-provider/index.ts +10 -0
- package/src/pi/local-resource-provider/provider.ts +98 -0
- package/src/pi/local-resource-provider/types.ts +110 -0
- package/src/pi/model-mapping.ts +115 -0
- package/src/pi/model-override.ts +110 -0
- package/src/pi/model.ts +61 -0
- package/src/pi/request-builder.ts +279 -0
- package/src/pi/utils/tool-result.ts +35 -0
- package/src/stream.ts +386 -0
- package/src/tool-host.ts +44 -0
- package/src/vendor/agent-client/checkpoint-controller.ts +34 -0
- package/src/vendor/agent-client/connect.ts +348 -0
- package/src/vendor/agent-client/exec-controller.ts +102 -0
- package/src/vendor/agent-client/index.ts +25 -0
- package/src/vendor/agent-client/interaction-controller.ts +96 -0
- package/src/vendor/agent-client/split-stream.ts +143 -0
- package/src/vendor/agent-core/index.ts +9 -0
- package/src/vendor/agent-core/interaction-conversion.ts +558 -0
- package/src/vendor/agent-exec/controlled.ts +104 -0
- package/src/vendor/agent-exec/index.ts +45 -0
- package/src/vendor/agent-exec/registry-resource-accessor.ts +39 -0
- package/src/vendor/agent-exec/resources.ts +121 -0
- package/src/vendor/agent-exec/serialization.ts +22 -0
- package/src/vendor/agent-exec/simple-controlled-exec-manager.ts +161 -0
- package/src/vendor/agent-kv/agent-store.ts +115 -0
- package/src/vendor/agent-kv/blob-store.ts +36 -0
- package/src/vendor/agent-kv/controlled.ts +117 -0
- package/src/vendor/agent-kv/index.ts +15 -0
- package/src/vendor/agent-kv/serde.ts +44 -0
- package/src/vendor/local-exec/common.ts +19 -0
- package/src/vendor/local-exec/git-executor.ts +37 -0
- package/src/vendor/local-exec/git-helpers.ts +79 -0
- package/src/vendor/local-exec/index.ts +8 -0
- package/src/vendor/utils/index.ts +5 -0
- package/src/vendor/utils/map-writable.ts +34 -0
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file agent/v1/exa_search_tool.proto (package agent.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message agent.v1.ExaSearchArgs
|
|
11
|
+
*/
|
|
12
|
+
export class ExaSearchArgs extends Message<ExaSearchArgs> {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string query = 1;
|
|
15
|
+
*/
|
|
16
|
+
query = "";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: string type = 2;
|
|
20
|
+
*/
|
|
21
|
+
type = "";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: int32 num_results = 3;
|
|
25
|
+
*/
|
|
26
|
+
numResults = 0;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: string tool_call_id = 4;
|
|
30
|
+
*/
|
|
31
|
+
toolCallId = "";
|
|
32
|
+
|
|
33
|
+
constructor(data?: PartialMessage<ExaSearchArgs>) {
|
|
34
|
+
super();
|
|
35
|
+
proto3.util.initPartial(data, this);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
39
|
+
static readonly typeName = "agent.v1.ExaSearchArgs";
|
|
40
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
41
|
+
{ no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
42
|
+
{ no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
43
|
+
{ no: 3, name: "num_results", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
44
|
+
{ no: 4, name: "tool_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
45
|
+
]);
|
|
46
|
+
|
|
47
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExaSearchArgs {
|
|
48
|
+
return new ExaSearchArgs().fromBinary(bytes, options);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExaSearchArgs {
|
|
52
|
+
return new ExaSearchArgs().fromJson(jsonValue, options);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExaSearchArgs {
|
|
56
|
+
return new ExaSearchArgs().fromJsonString(jsonString, options);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static equals(a: ExaSearchArgs | PlainMessage<ExaSearchArgs> | undefined, b: ExaSearchArgs | PlainMessage<ExaSearchArgs> | undefined): boolean {
|
|
60
|
+
return proto3.util.equals(ExaSearchArgs, a, b);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @generated from message agent.v1.ExaSearchResult
|
|
66
|
+
*/
|
|
67
|
+
export class ExaSearchResult extends Message<ExaSearchResult> {
|
|
68
|
+
/**
|
|
69
|
+
* @generated from oneof agent.v1.ExaSearchResult.result
|
|
70
|
+
*/
|
|
71
|
+
result: {
|
|
72
|
+
/**
|
|
73
|
+
* @generated from field: agent.v1.ExaSearchSuccess success = 1;
|
|
74
|
+
*/
|
|
75
|
+
value: ExaSearchSuccess;
|
|
76
|
+
case: "success";
|
|
77
|
+
} | {
|
|
78
|
+
/**
|
|
79
|
+
* @generated from field: agent.v1.ExaSearchError error = 2;
|
|
80
|
+
*/
|
|
81
|
+
value: ExaSearchError;
|
|
82
|
+
case: "error";
|
|
83
|
+
} | {
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: agent.v1.ExaSearchRejected rejected = 3;
|
|
86
|
+
*/
|
|
87
|
+
value: ExaSearchRejected;
|
|
88
|
+
case: "rejected";
|
|
89
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
90
|
+
|
|
91
|
+
constructor(data?: PartialMessage<ExaSearchResult>) {
|
|
92
|
+
super();
|
|
93
|
+
proto3.util.initPartial(data, this);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
97
|
+
static readonly typeName = "agent.v1.ExaSearchResult";
|
|
98
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
99
|
+
{ no: 1, name: "success", kind: "message", T: ExaSearchSuccess, oneof: "result" },
|
|
100
|
+
{ no: 2, name: "error", kind: "message", T: ExaSearchError, oneof: "result" },
|
|
101
|
+
{ no: 3, name: "rejected", kind: "message", T: ExaSearchRejected, oneof: "result" },
|
|
102
|
+
]);
|
|
103
|
+
|
|
104
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExaSearchResult {
|
|
105
|
+
return new ExaSearchResult().fromBinary(bytes, options);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExaSearchResult {
|
|
109
|
+
return new ExaSearchResult().fromJson(jsonValue, options);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExaSearchResult {
|
|
113
|
+
return new ExaSearchResult().fromJsonString(jsonString, options);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
static equals(a: ExaSearchResult | PlainMessage<ExaSearchResult> | undefined, b: ExaSearchResult | PlainMessage<ExaSearchResult> | undefined): boolean {
|
|
117
|
+
return proto3.util.equals(ExaSearchResult, a, b);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @generated from message agent.v1.ExaSearchSuccess
|
|
123
|
+
*/
|
|
124
|
+
export class ExaSearchSuccess extends Message<ExaSearchSuccess> {
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: repeated agent.v1.ExaSearchReference references = 1;
|
|
127
|
+
*/
|
|
128
|
+
references: ExaSearchReference[] = [];
|
|
129
|
+
|
|
130
|
+
constructor(data?: PartialMessage<ExaSearchSuccess>) {
|
|
131
|
+
super();
|
|
132
|
+
proto3.util.initPartial(data, this);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
136
|
+
static readonly typeName = "agent.v1.ExaSearchSuccess";
|
|
137
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
138
|
+
{ no: 1, name: "references", kind: "message", T: ExaSearchReference, repeated: true },
|
|
139
|
+
]);
|
|
140
|
+
|
|
141
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExaSearchSuccess {
|
|
142
|
+
return new ExaSearchSuccess().fromBinary(bytes, options);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExaSearchSuccess {
|
|
146
|
+
return new ExaSearchSuccess().fromJson(jsonValue, options);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExaSearchSuccess {
|
|
150
|
+
return new ExaSearchSuccess().fromJsonString(jsonString, options);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
static equals(a: ExaSearchSuccess | PlainMessage<ExaSearchSuccess> | undefined, b: ExaSearchSuccess | PlainMessage<ExaSearchSuccess> | undefined): boolean {
|
|
154
|
+
return proto3.util.equals(ExaSearchSuccess, a, b);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @generated from message agent.v1.ExaSearchError
|
|
160
|
+
*/
|
|
161
|
+
export class ExaSearchError extends Message<ExaSearchError> {
|
|
162
|
+
/**
|
|
163
|
+
* @generated from field: string error = 1;
|
|
164
|
+
*/
|
|
165
|
+
error = "";
|
|
166
|
+
|
|
167
|
+
constructor(data?: PartialMessage<ExaSearchError>) {
|
|
168
|
+
super();
|
|
169
|
+
proto3.util.initPartial(data, this);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
173
|
+
static readonly typeName = "agent.v1.ExaSearchError";
|
|
174
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
175
|
+
{ no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
176
|
+
]);
|
|
177
|
+
|
|
178
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExaSearchError {
|
|
179
|
+
return new ExaSearchError().fromBinary(bytes, options);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExaSearchError {
|
|
183
|
+
return new ExaSearchError().fromJson(jsonValue, options);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExaSearchError {
|
|
187
|
+
return new ExaSearchError().fromJsonString(jsonString, options);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
static equals(a: ExaSearchError | PlainMessage<ExaSearchError> | undefined, b: ExaSearchError | PlainMessage<ExaSearchError> | undefined): boolean {
|
|
191
|
+
return proto3.util.equals(ExaSearchError, a, b);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @generated from message agent.v1.ExaSearchRejected
|
|
197
|
+
*/
|
|
198
|
+
export class ExaSearchRejected extends Message<ExaSearchRejected> {
|
|
199
|
+
/**
|
|
200
|
+
* @generated from field: string reason = 1;
|
|
201
|
+
*/
|
|
202
|
+
reason = "";
|
|
203
|
+
|
|
204
|
+
constructor(data?: PartialMessage<ExaSearchRejected>) {
|
|
205
|
+
super();
|
|
206
|
+
proto3.util.initPartial(data, this);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
210
|
+
static readonly typeName = "agent.v1.ExaSearchRejected";
|
|
211
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
212
|
+
{ no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
213
|
+
]);
|
|
214
|
+
|
|
215
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExaSearchRejected {
|
|
216
|
+
return new ExaSearchRejected().fromBinary(bytes, options);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExaSearchRejected {
|
|
220
|
+
return new ExaSearchRejected().fromJson(jsonValue, options);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExaSearchRejected {
|
|
224
|
+
return new ExaSearchRejected().fromJsonString(jsonString, options);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
static equals(a: ExaSearchRejected | PlainMessage<ExaSearchRejected> | undefined, b: ExaSearchRejected | PlainMessage<ExaSearchRejected> | undefined): boolean {
|
|
228
|
+
return proto3.util.equals(ExaSearchRejected, a, b);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @generated from message agent.v1.ExaSearchReference
|
|
234
|
+
*/
|
|
235
|
+
export class ExaSearchReference extends Message<ExaSearchReference> {
|
|
236
|
+
/**
|
|
237
|
+
* @generated from field: string title = 1;
|
|
238
|
+
*/
|
|
239
|
+
title = "";
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @generated from field: string url = 2;
|
|
243
|
+
*/
|
|
244
|
+
url = "";
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* @generated from field: string text = 3;
|
|
248
|
+
*/
|
|
249
|
+
text = "";
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @generated from field: string published_date = 4;
|
|
253
|
+
*/
|
|
254
|
+
publishedDate = "";
|
|
255
|
+
|
|
256
|
+
constructor(data?: PartialMessage<ExaSearchReference>) {
|
|
257
|
+
super();
|
|
258
|
+
proto3.util.initPartial(data, this);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
262
|
+
static readonly typeName = "agent.v1.ExaSearchReference";
|
|
263
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
264
|
+
{ no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
265
|
+
{ no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
266
|
+
{ no: 3, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
267
|
+
{ no: 4, name: "published_date", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
268
|
+
]);
|
|
269
|
+
|
|
270
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExaSearchReference {
|
|
271
|
+
return new ExaSearchReference().fromBinary(bytes, options);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExaSearchReference {
|
|
275
|
+
return new ExaSearchReference().fromJson(jsonValue, options);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExaSearchReference {
|
|
279
|
+
return new ExaSearchReference().fromJsonString(jsonString, options);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
static equals(a: ExaSearchReference | PlainMessage<ExaSearchReference> | undefined, b: ExaSearchReference | PlainMessage<ExaSearchReference> | undefined): boolean {
|
|
283
|
+
return proto3.util.equals(ExaSearchReference, a, b);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* @generated from message agent.v1.ExaSearchToolCall
|
|
289
|
+
*/
|
|
290
|
+
export class ExaSearchToolCall extends Message<ExaSearchToolCall> {
|
|
291
|
+
/**
|
|
292
|
+
* @generated from field: agent.v1.ExaSearchArgs args = 1;
|
|
293
|
+
*/
|
|
294
|
+
args?: ExaSearchArgs;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* @generated from field: agent.v1.ExaSearchResult result = 2;
|
|
298
|
+
*/
|
|
299
|
+
result?: ExaSearchResult;
|
|
300
|
+
|
|
301
|
+
constructor(data?: PartialMessage<ExaSearchToolCall>) {
|
|
302
|
+
super();
|
|
303
|
+
proto3.util.initPartial(data, this);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
307
|
+
static readonly typeName = "agent.v1.ExaSearchToolCall";
|
|
308
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
309
|
+
{ no: 1, name: "args", kind: "message", T: ExaSearchArgs },
|
|
310
|
+
{ no: 2, name: "result", kind: "message", T: ExaSearchResult },
|
|
311
|
+
]);
|
|
312
|
+
|
|
313
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExaSearchToolCall {
|
|
314
|
+
return new ExaSearchToolCall().fromBinary(bytes, options);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExaSearchToolCall {
|
|
318
|
+
return new ExaSearchToolCall().fromJson(jsonValue, options);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExaSearchToolCall {
|
|
322
|
+
return new ExaSearchToolCall().fromJsonString(jsonString, options);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
static equals(a: ExaSearchToolCall | PlainMessage<ExaSearchToolCall> | undefined, b: ExaSearchToolCall | PlainMessage<ExaSearchToolCall> | undefined): boolean {
|
|
326
|
+
return proto3.util.equals(ExaSearchToolCall, a, b);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* @generated from message agent.v1.ExaSearchRequestQuery
|
|
332
|
+
*/
|
|
333
|
+
export class ExaSearchRequestQuery extends Message<ExaSearchRequestQuery> {
|
|
334
|
+
/**
|
|
335
|
+
* @generated from field: agent.v1.ExaSearchArgs args = 1;
|
|
336
|
+
*/
|
|
337
|
+
args?: ExaSearchArgs;
|
|
338
|
+
|
|
339
|
+
constructor(data?: PartialMessage<ExaSearchRequestQuery>) {
|
|
340
|
+
super();
|
|
341
|
+
proto3.util.initPartial(data, this);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
345
|
+
static readonly typeName = "agent.v1.ExaSearchRequestQuery";
|
|
346
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
347
|
+
{ no: 1, name: "args", kind: "message", T: ExaSearchArgs },
|
|
348
|
+
]);
|
|
349
|
+
|
|
350
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExaSearchRequestQuery {
|
|
351
|
+
return new ExaSearchRequestQuery().fromBinary(bytes, options);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExaSearchRequestQuery {
|
|
355
|
+
return new ExaSearchRequestQuery().fromJson(jsonValue, options);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExaSearchRequestQuery {
|
|
359
|
+
return new ExaSearchRequestQuery().fromJsonString(jsonString, options);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
static equals(a: ExaSearchRequestQuery | PlainMessage<ExaSearchRequestQuery> | undefined, b: ExaSearchRequestQuery | PlainMessage<ExaSearchRequestQuery> | undefined): boolean {
|
|
363
|
+
return proto3.util.equals(ExaSearchRequestQuery, a, b);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* @generated from message agent.v1.ExaSearchRequestResponse
|
|
369
|
+
*/
|
|
370
|
+
export class ExaSearchRequestResponse extends Message<ExaSearchRequestResponse> {
|
|
371
|
+
/**
|
|
372
|
+
* @generated from oneof agent.v1.ExaSearchRequestResponse.result
|
|
373
|
+
*/
|
|
374
|
+
result: {
|
|
375
|
+
/**
|
|
376
|
+
* @generated from field: agent.v1.ExaSearchRequestResponse_Approved approved = 1;
|
|
377
|
+
*/
|
|
378
|
+
value: ExaSearchRequestResponse_Approved;
|
|
379
|
+
case: "approved";
|
|
380
|
+
} | {
|
|
381
|
+
/**
|
|
382
|
+
* @generated from field: agent.v1.ExaSearchRequestResponse_Rejected rejected = 2;
|
|
383
|
+
*/
|
|
384
|
+
value: ExaSearchRequestResponse_Rejected;
|
|
385
|
+
case: "rejected";
|
|
386
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
387
|
+
|
|
388
|
+
constructor(data?: PartialMessage<ExaSearchRequestResponse>) {
|
|
389
|
+
super();
|
|
390
|
+
proto3.util.initPartial(data, this);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
394
|
+
static readonly typeName = "agent.v1.ExaSearchRequestResponse";
|
|
395
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
396
|
+
{ no: 1, name: "approved", kind: "message", T: ExaSearchRequestResponse_Approved, oneof: "result" },
|
|
397
|
+
{ no: 2, name: "rejected", kind: "message", T: ExaSearchRequestResponse_Rejected, oneof: "result" },
|
|
398
|
+
]);
|
|
399
|
+
|
|
400
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExaSearchRequestResponse {
|
|
401
|
+
return new ExaSearchRequestResponse().fromBinary(bytes, options);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExaSearchRequestResponse {
|
|
405
|
+
return new ExaSearchRequestResponse().fromJson(jsonValue, options);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExaSearchRequestResponse {
|
|
409
|
+
return new ExaSearchRequestResponse().fromJsonString(jsonString, options);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
static equals(a: ExaSearchRequestResponse | PlainMessage<ExaSearchRequestResponse> | undefined, b: ExaSearchRequestResponse | PlainMessage<ExaSearchRequestResponse> | undefined): boolean {
|
|
413
|
+
return proto3.util.equals(ExaSearchRequestResponse, a, b);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* @generated from message agent.v1.ExaSearchRequestResponse_Approved
|
|
419
|
+
*/
|
|
420
|
+
export class ExaSearchRequestResponse_Approved extends Message<ExaSearchRequestResponse_Approved> {
|
|
421
|
+
constructor(data?: PartialMessage<ExaSearchRequestResponse_Approved>) {
|
|
422
|
+
super();
|
|
423
|
+
proto3.util.initPartial(data, this);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
427
|
+
static readonly typeName = "agent.v1.ExaSearchRequestResponse_Approved";
|
|
428
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
429
|
+
]);
|
|
430
|
+
|
|
431
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExaSearchRequestResponse_Approved {
|
|
432
|
+
return new ExaSearchRequestResponse_Approved().fromBinary(bytes, options);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExaSearchRequestResponse_Approved {
|
|
436
|
+
return new ExaSearchRequestResponse_Approved().fromJson(jsonValue, options);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExaSearchRequestResponse_Approved {
|
|
440
|
+
return new ExaSearchRequestResponse_Approved().fromJsonString(jsonString, options);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
static equals(a: ExaSearchRequestResponse_Approved | PlainMessage<ExaSearchRequestResponse_Approved> | undefined, b: ExaSearchRequestResponse_Approved | PlainMessage<ExaSearchRequestResponse_Approved> | undefined): boolean {
|
|
444
|
+
return proto3.util.equals(ExaSearchRequestResponse_Approved, a, b);
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* @generated from message agent.v1.ExaSearchRequestResponse_Rejected
|
|
450
|
+
*/
|
|
451
|
+
export class ExaSearchRequestResponse_Rejected extends Message<ExaSearchRequestResponse_Rejected> {
|
|
452
|
+
/**
|
|
453
|
+
* @generated from field: string reason = 1;
|
|
454
|
+
*/
|
|
455
|
+
reason = "";
|
|
456
|
+
|
|
457
|
+
constructor(data?: PartialMessage<ExaSearchRequestResponse_Rejected>) {
|
|
458
|
+
super();
|
|
459
|
+
proto3.util.initPartial(data, this);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
463
|
+
static readonly typeName = "agent.v1.ExaSearchRequestResponse_Rejected";
|
|
464
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
465
|
+
{ no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
466
|
+
]);
|
|
467
|
+
|
|
468
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExaSearchRequestResponse_Rejected {
|
|
469
|
+
return new ExaSearchRequestResponse_Rejected().fromBinary(bytes, options);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExaSearchRequestResponse_Rejected {
|
|
473
|
+
return new ExaSearchRequestResponse_Rejected().fromJson(jsonValue, options);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExaSearchRequestResponse_Rejected {
|
|
477
|
+
return new ExaSearchRequestResponse_Rejected().fromJsonString(jsonString, options);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
static equals(a: ExaSearchRequestResponse_Rejected | PlainMessage<ExaSearchRequestResponse_Rejected> | undefined, b: ExaSearchRequestResponse_Rejected | PlainMessage<ExaSearchRequestResponse_Rejected> | undefined): boolean {
|
|
481
|
+
return proto3.util.equals(ExaSearchRequestResponse_Rejected, a, b);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
|