@circuitwall/github-langchain 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.
@@ -0,0 +1,1718 @@
1
+ import * as _langchain_core_tools from '@langchain/core/tools';
2
+ import { z } from 'zod';
3
+
4
+ interface GitHubAuth {
5
+ token: string;
6
+ }
7
+ type AuthResolver = () => GitHubAuth | {
8
+ error: string;
9
+ };
10
+ declare function setAuthResolver(fn: AuthResolver): void;
11
+ declare function resolveGithubAuthFromEnv(): GitHubAuth | {
12
+ error: string;
13
+ };
14
+ declare function _resolveGithubAuth(): GitHubAuth | {
15
+ error: string;
16
+ };
17
+ declare function githubFetch(auth: GitHubAuth, path: string, init?: RequestInit): Promise<unknown>;
18
+ declare function _ghFetch(auth: GitHubAuth, path: string, init?: RequestInit): Promise<unknown>;
19
+ declare function truncate(text: string, cap: number): {
20
+ text: string;
21
+ truncated: boolean;
22
+ };
23
+ interface DecodedBlob {
24
+ binary: boolean;
25
+ text?: string;
26
+ size_bytes: number;
27
+ }
28
+ declare function decodeContentsBlob(content: string, encoding: string | undefined): DecodedBlob;
29
+ declare const githubSearchIssuesTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
30
+ q: z.ZodString;
31
+ repo: z.ZodOptional<z.ZodString>;
32
+ max_results: z.ZodOptional<z.ZodNumber>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ q: string;
35
+ repo?: string | undefined;
36
+ max_results?: number | undefined;
37
+ }, {
38
+ q: string;
39
+ repo?: string | undefined;
40
+ max_results?: number | undefined;
41
+ }>, {
42
+ q: string;
43
+ repo?: string | undefined;
44
+ max_results?: number | undefined;
45
+ }, {
46
+ q: string;
47
+ repo?: string | undefined;
48
+ max_results?: number | undefined;
49
+ }, string, unknown, "github_search_issues">;
50
+ declare const githubGetIssueTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
51
+ owner: z.ZodString;
52
+ repo: z.ZodString;
53
+ number: z.ZodNumber;
54
+ }, "strip", z.ZodTypeAny, {
55
+ number: number;
56
+ repo: string;
57
+ owner: string;
58
+ }, {
59
+ number: number;
60
+ repo: string;
61
+ owner: string;
62
+ }>, {
63
+ number: number;
64
+ repo: string;
65
+ owner: string;
66
+ }, {
67
+ number: number;
68
+ repo: string;
69
+ owner: string;
70
+ }, string, unknown, "github_get_issue">;
71
+ declare const githubCreateIssueTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
72
+ owner: z.ZodString;
73
+ repo: z.ZodString;
74
+ title: z.ZodString;
75
+ body: z.ZodOptional<z.ZodString>;
76
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ repo: string;
80
+ owner: string;
81
+ title: string;
82
+ labels?: string[] | undefined;
83
+ assignees?: string[] | undefined;
84
+ body?: string | undefined;
85
+ }, {
86
+ repo: string;
87
+ owner: string;
88
+ title: string;
89
+ labels?: string[] | undefined;
90
+ assignees?: string[] | undefined;
91
+ body?: string | undefined;
92
+ }>, {
93
+ repo: string;
94
+ owner: string;
95
+ title: string;
96
+ labels?: string[] | undefined;
97
+ assignees?: string[] | undefined;
98
+ body?: string | undefined;
99
+ }, {
100
+ repo: string;
101
+ owner: string;
102
+ title: string;
103
+ labels?: string[] | undefined;
104
+ assignees?: string[] | undefined;
105
+ body?: string | undefined;
106
+ }, string, unknown, "github_create_issue">;
107
+ declare const githubAddCommentTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
108
+ owner: z.ZodString;
109
+ repo: z.ZodString;
110
+ number: z.ZodNumber;
111
+ body: z.ZodString;
112
+ }, "strip", z.ZodTypeAny, {
113
+ number: number;
114
+ repo: string;
115
+ owner: string;
116
+ body: string;
117
+ }, {
118
+ number: number;
119
+ repo: string;
120
+ owner: string;
121
+ body: string;
122
+ }>, {
123
+ number: number;
124
+ repo: string;
125
+ owner: string;
126
+ body: string;
127
+ }, {
128
+ number: number;
129
+ repo: string;
130
+ owner: string;
131
+ body: string;
132
+ }, string, unknown, "github_add_comment">;
133
+ declare const githubListPullsTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
134
+ owner: z.ZodString;
135
+ repo: z.ZodString;
136
+ state: z.ZodOptional<z.ZodEnum<["open", "closed", "all"]>>;
137
+ head: z.ZodOptional<z.ZodString>;
138
+ base: z.ZodOptional<z.ZodString>;
139
+ max_results: z.ZodOptional<z.ZodNumber>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ repo: string;
142
+ owner: string;
143
+ max_results?: number | undefined;
144
+ state?: "open" | "closed" | "all" | undefined;
145
+ head?: string | undefined;
146
+ base?: string | undefined;
147
+ }, {
148
+ repo: string;
149
+ owner: string;
150
+ max_results?: number | undefined;
151
+ state?: "open" | "closed" | "all" | undefined;
152
+ head?: string | undefined;
153
+ base?: string | undefined;
154
+ }>, {
155
+ repo: string;
156
+ owner: string;
157
+ max_results?: number | undefined;
158
+ state?: "open" | "closed" | "all" | undefined;
159
+ head?: string | undefined;
160
+ base?: string | undefined;
161
+ }, {
162
+ repo: string;
163
+ owner: string;
164
+ max_results?: number | undefined;
165
+ state?: "open" | "closed" | "all" | undefined;
166
+ head?: string | undefined;
167
+ base?: string | undefined;
168
+ }, string, unknown, "github_list_pulls">;
169
+ declare const githubGetPullTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
170
+ owner: z.ZodString;
171
+ repo: z.ZodString;
172
+ number: z.ZodNumber;
173
+ }, "strip", z.ZodTypeAny, {
174
+ number: number;
175
+ repo: string;
176
+ owner: string;
177
+ }, {
178
+ number: number;
179
+ repo: string;
180
+ owner: string;
181
+ }>, {
182
+ number: number;
183
+ repo: string;
184
+ owner: string;
185
+ }, {
186
+ number: number;
187
+ repo: string;
188
+ owner: string;
189
+ }, string, unknown, "github_get_pull">;
190
+ declare const githubGetRepoTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
191
+ owner: z.ZodString;
192
+ repo: z.ZodString;
193
+ }, "strip", z.ZodTypeAny, {
194
+ repo: string;
195
+ owner: string;
196
+ }, {
197
+ repo: string;
198
+ owner: string;
199
+ }>, {
200
+ repo: string;
201
+ owner: string;
202
+ }, {
203
+ repo: string;
204
+ owner: string;
205
+ }, string, unknown, "github_get_repo">;
206
+ declare const githubUpdateIssueTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
207
+ owner: z.ZodString;
208
+ repo: z.ZodString;
209
+ number: z.ZodNumber;
210
+ title: z.ZodOptional<z.ZodString>;
211
+ body: z.ZodOptional<z.ZodString>;
212
+ state: z.ZodOptional<z.ZodEnum<["open", "closed"]>>;
213
+ state_reason: z.ZodOptional<z.ZodEnum<["completed", "not_planned", "reopened"]>>;
214
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
215
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ number: number;
218
+ repo: string;
219
+ owner: string;
220
+ title?: string | undefined;
221
+ state?: "open" | "closed" | undefined;
222
+ labels?: string[] | undefined;
223
+ assignees?: string[] | undefined;
224
+ body?: string | undefined;
225
+ state_reason?: "completed" | "not_planned" | "reopened" | undefined;
226
+ }, {
227
+ number: number;
228
+ repo: string;
229
+ owner: string;
230
+ title?: string | undefined;
231
+ state?: "open" | "closed" | undefined;
232
+ labels?: string[] | undefined;
233
+ assignees?: string[] | undefined;
234
+ body?: string | undefined;
235
+ state_reason?: "completed" | "not_planned" | "reopened" | undefined;
236
+ }>, {
237
+ number: number;
238
+ repo: string;
239
+ owner: string;
240
+ title?: string | undefined;
241
+ state?: "open" | "closed" | undefined;
242
+ labels?: string[] | undefined;
243
+ assignees?: string[] | undefined;
244
+ body?: string | undefined;
245
+ state_reason?: "completed" | "not_planned" | "reopened" | undefined;
246
+ }, {
247
+ number: number;
248
+ repo: string;
249
+ owner: string;
250
+ title?: string | undefined;
251
+ state?: "open" | "closed" | undefined;
252
+ labels?: string[] | undefined;
253
+ assignees?: string[] | undefined;
254
+ body?: string | undefined;
255
+ state_reason?: "completed" | "not_planned" | "reopened" | undefined;
256
+ }, string, unknown, "github_update_issue">;
257
+ declare const githubListIssueCommentsTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
258
+ owner: z.ZodString;
259
+ repo: z.ZodString;
260
+ number: z.ZodNumber;
261
+ max_results: z.ZodOptional<z.ZodNumber>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ number: number;
264
+ repo: string;
265
+ owner: string;
266
+ max_results?: number | undefined;
267
+ }, {
268
+ number: number;
269
+ repo: string;
270
+ owner: string;
271
+ max_results?: number | undefined;
272
+ }>, {
273
+ number: number;
274
+ repo: string;
275
+ owner: string;
276
+ max_results?: number | undefined;
277
+ }, {
278
+ number: number;
279
+ repo: string;
280
+ owner: string;
281
+ max_results?: number | undefined;
282
+ }, string, unknown, "github_list_issue_comments">;
283
+ declare const githubCreatePullTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
284
+ owner: z.ZodString;
285
+ repo: z.ZodString;
286
+ title: z.ZodString;
287
+ head: z.ZodString;
288
+ base: z.ZodString;
289
+ body: z.ZodOptional<z.ZodString>;
290
+ draft: z.ZodOptional<z.ZodBoolean>;
291
+ maintainer_can_modify: z.ZodOptional<z.ZodBoolean>;
292
+ }, "strip", z.ZodTypeAny, {
293
+ repo: string;
294
+ owner: string;
295
+ title: string;
296
+ head: string;
297
+ base: string;
298
+ body?: string | undefined;
299
+ draft?: boolean | undefined;
300
+ maintainer_can_modify?: boolean | undefined;
301
+ }, {
302
+ repo: string;
303
+ owner: string;
304
+ title: string;
305
+ head: string;
306
+ base: string;
307
+ body?: string | undefined;
308
+ draft?: boolean | undefined;
309
+ maintainer_can_modify?: boolean | undefined;
310
+ }>, {
311
+ repo: string;
312
+ owner: string;
313
+ title: string;
314
+ head: string;
315
+ base: string;
316
+ body?: string | undefined;
317
+ draft?: boolean | undefined;
318
+ maintainer_can_modify?: boolean | undefined;
319
+ }, {
320
+ repo: string;
321
+ owner: string;
322
+ title: string;
323
+ head: string;
324
+ base: string;
325
+ body?: string | undefined;
326
+ draft?: boolean | undefined;
327
+ maintainer_can_modify?: boolean | undefined;
328
+ }, string, unknown, "github_create_pull">;
329
+ declare const githubUpdatePullTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
330
+ owner: z.ZodString;
331
+ repo: z.ZodString;
332
+ number: z.ZodNumber;
333
+ title: z.ZodOptional<z.ZodString>;
334
+ body: z.ZodOptional<z.ZodString>;
335
+ state: z.ZodOptional<z.ZodEnum<["open", "closed"]>>;
336
+ base: z.ZodOptional<z.ZodString>;
337
+ maintainer_can_modify: z.ZodOptional<z.ZodBoolean>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ number: number;
340
+ repo: string;
341
+ owner: string;
342
+ title?: string | undefined;
343
+ state?: "open" | "closed" | undefined;
344
+ body?: string | undefined;
345
+ base?: string | undefined;
346
+ maintainer_can_modify?: boolean | undefined;
347
+ }, {
348
+ number: number;
349
+ repo: string;
350
+ owner: string;
351
+ title?: string | undefined;
352
+ state?: "open" | "closed" | undefined;
353
+ body?: string | undefined;
354
+ base?: string | undefined;
355
+ maintainer_can_modify?: boolean | undefined;
356
+ }>, {
357
+ number: number;
358
+ repo: string;
359
+ owner: string;
360
+ title?: string | undefined;
361
+ state?: "open" | "closed" | undefined;
362
+ body?: string | undefined;
363
+ base?: string | undefined;
364
+ maintainer_can_modify?: boolean | undefined;
365
+ }, {
366
+ number: number;
367
+ repo: string;
368
+ owner: string;
369
+ title?: string | undefined;
370
+ state?: "open" | "closed" | undefined;
371
+ body?: string | undefined;
372
+ base?: string | undefined;
373
+ maintainer_can_modify?: boolean | undefined;
374
+ }, string, unknown, "github_update_pull">;
375
+ declare const githubMergePullTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
376
+ owner: z.ZodString;
377
+ repo: z.ZodString;
378
+ number: z.ZodNumber;
379
+ method: z.ZodOptional<z.ZodEnum<["merge", "squash", "rebase"]>>;
380
+ commit_title: z.ZodOptional<z.ZodString>;
381
+ commit_message: z.ZodOptional<z.ZodString>;
382
+ sha: z.ZodOptional<z.ZodString>;
383
+ }, "strip", z.ZodTypeAny, {
384
+ number: number;
385
+ repo: string;
386
+ owner: string;
387
+ method?: "merge" | "squash" | "rebase" | undefined;
388
+ commit_title?: string | undefined;
389
+ commit_message?: string | undefined;
390
+ sha?: string | undefined;
391
+ }, {
392
+ number: number;
393
+ repo: string;
394
+ owner: string;
395
+ method?: "merge" | "squash" | "rebase" | undefined;
396
+ commit_title?: string | undefined;
397
+ commit_message?: string | undefined;
398
+ sha?: string | undefined;
399
+ }>, {
400
+ number: number;
401
+ repo: string;
402
+ owner: string;
403
+ method?: "merge" | "squash" | "rebase" | undefined;
404
+ commit_title?: string | undefined;
405
+ commit_message?: string | undefined;
406
+ sha?: string | undefined;
407
+ }, {
408
+ number: number;
409
+ repo: string;
410
+ owner: string;
411
+ method?: "merge" | "squash" | "rebase" | undefined;
412
+ commit_title?: string | undefined;
413
+ commit_message?: string | undefined;
414
+ sha?: string | undefined;
415
+ }, string, unknown, "github_merge_pull">;
416
+ declare const githubRequestReviewersTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
417
+ owner: z.ZodString;
418
+ repo: z.ZodString;
419
+ number: z.ZodNumber;
420
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
421
+ team_reviewers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ number: number;
424
+ repo: string;
425
+ owner: string;
426
+ reviewers?: string[] | undefined;
427
+ team_reviewers?: string[] | undefined;
428
+ }, {
429
+ number: number;
430
+ repo: string;
431
+ owner: string;
432
+ reviewers?: string[] | undefined;
433
+ team_reviewers?: string[] | undefined;
434
+ }>, {
435
+ number: number;
436
+ repo: string;
437
+ owner: string;
438
+ reviewers?: string[] | undefined;
439
+ team_reviewers?: string[] | undefined;
440
+ }, {
441
+ number: number;
442
+ repo: string;
443
+ owner: string;
444
+ reviewers?: string[] | undefined;
445
+ team_reviewers?: string[] | undefined;
446
+ }, string, unknown, "github_request_reviewers">;
447
+ declare const githubCreateReviewTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
448
+ owner: z.ZodString;
449
+ repo: z.ZodString;
450
+ number: z.ZodNumber;
451
+ event: z.ZodEnum<["APPROVE", "REQUEST_CHANGES", "COMMENT"]>;
452
+ body: z.ZodOptional<z.ZodString>;
453
+ commit_id: z.ZodOptional<z.ZodString>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ number: number;
456
+ repo: string;
457
+ owner: string;
458
+ event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT";
459
+ body?: string | undefined;
460
+ commit_id?: string | undefined;
461
+ }, {
462
+ number: number;
463
+ repo: string;
464
+ owner: string;
465
+ event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT";
466
+ body?: string | undefined;
467
+ commit_id?: string | undefined;
468
+ }>, {
469
+ number: number;
470
+ repo: string;
471
+ owner: string;
472
+ event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT";
473
+ body?: string | undefined;
474
+ commit_id?: string | undefined;
475
+ }, {
476
+ number: number;
477
+ repo: string;
478
+ owner: string;
479
+ event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT";
480
+ body?: string | undefined;
481
+ commit_id?: string | undefined;
482
+ }, string, unknown, "github_create_review">;
483
+ declare const githubListPullFilesTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
484
+ owner: z.ZodString;
485
+ repo: z.ZodString;
486
+ number: z.ZodNumber;
487
+ max_results: z.ZodOptional<z.ZodNumber>;
488
+ }, "strip", z.ZodTypeAny, {
489
+ number: number;
490
+ repo: string;
491
+ owner: string;
492
+ max_results?: number | undefined;
493
+ }, {
494
+ number: number;
495
+ repo: string;
496
+ owner: string;
497
+ max_results?: number | undefined;
498
+ }>, {
499
+ number: number;
500
+ repo: string;
501
+ owner: string;
502
+ max_results?: number | undefined;
503
+ }, {
504
+ number: number;
505
+ repo: string;
506
+ owner: string;
507
+ max_results?: number | undefined;
508
+ }, string, unknown, "github_list_pull_files">;
509
+ declare const githubListPullReviewsTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
510
+ owner: z.ZodString;
511
+ repo: z.ZodString;
512
+ number: z.ZodNumber;
513
+ max_results: z.ZodOptional<z.ZodNumber>;
514
+ }, "strip", z.ZodTypeAny, {
515
+ number: number;
516
+ repo: string;
517
+ owner: string;
518
+ max_results?: number | undefined;
519
+ }, {
520
+ number: number;
521
+ repo: string;
522
+ owner: string;
523
+ max_results?: number | undefined;
524
+ }>, {
525
+ number: number;
526
+ repo: string;
527
+ owner: string;
528
+ max_results?: number | undefined;
529
+ }, {
530
+ number: number;
531
+ repo: string;
532
+ owner: string;
533
+ max_results?: number | undefined;
534
+ }, string, unknown, "github_list_pull_reviews">;
535
+ declare const githubListBranchesTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
536
+ owner: z.ZodString;
537
+ repo: z.ZodString;
538
+ max_results: z.ZodOptional<z.ZodNumber>;
539
+ }, "strip", z.ZodTypeAny, {
540
+ repo: string;
541
+ owner: string;
542
+ max_results?: number | undefined;
543
+ }, {
544
+ repo: string;
545
+ owner: string;
546
+ max_results?: number | undefined;
547
+ }>, {
548
+ repo: string;
549
+ owner: string;
550
+ max_results?: number | undefined;
551
+ }, {
552
+ repo: string;
553
+ owner: string;
554
+ max_results?: number | undefined;
555
+ }, string, unknown, "github_list_branches">;
556
+ declare const githubGetFileTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
557
+ owner: z.ZodString;
558
+ repo: z.ZodString;
559
+ path: z.ZodString;
560
+ ref: z.ZodOptional<z.ZodString>;
561
+ }, "strip", z.ZodTypeAny, {
562
+ path: string;
563
+ repo: string;
564
+ owner: string;
565
+ ref?: string | undefined;
566
+ }, {
567
+ path: string;
568
+ repo: string;
569
+ owner: string;
570
+ ref?: string | undefined;
571
+ }>, {
572
+ path: string;
573
+ repo: string;
574
+ owner: string;
575
+ ref?: string | undefined;
576
+ }, {
577
+ path: string;
578
+ repo: string;
579
+ owner: string;
580
+ ref?: string | undefined;
581
+ }, string, unknown, "github_get_file">;
582
+ declare const githubSearchCodeTool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
583
+ q: z.ZodString;
584
+ repo: z.ZodOptional<z.ZodString>;
585
+ max_results: z.ZodOptional<z.ZodNumber>;
586
+ }, "strip", z.ZodTypeAny, {
587
+ q: string;
588
+ repo?: string | undefined;
589
+ max_results?: number | undefined;
590
+ }, {
591
+ q: string;
592
+ repo?: string | undefined;
593
+ max_results?: number | undefined;
594
+ }>, {
595
+ q: string;
596
+ repo?: string | undefined;
597
+ max_results?: number | undefined;
598
+ }, {
599
+ q: string;
600
+ repo?: string | undefined;
601
+ max_results?: number | undefined;
602
+ }, string, unknown, "github_search_code">;
603
+ declare const githubReadTools: readonly [_langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
604
+ q: z.ZodString;
605
+ repo: z.ZodOptional<z.ZodString>;
606
+ max_results: z.ZodOptional<z.ZodNumber>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ q: string;
609
+ repo?: string | undefined;
610
+ max_results?: number | undefined;
611
+ }, {
612
+ q: string;
613
+ repo?: string | undefined;
614
+ max_results?: number | undefined;
615
+ }>, {
616
+ q: string;
617
+ repo?: string | undefined;
618
+ max_results?: number | undefined;
619
+ }, {
620
+ q: string;
621
+ repo?: string | undefined;
622
+ max_results?: number | undefined;
623
+ }, string, unknown, "github_search_issues">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
624
+ owner: z.ZodString;
625
+ repo: z.ZodString;
626
+ number: z.ZodNumber;
627
+ }, "strip", z.ZodTypeAny, {
628
+ number: number;
629
+ repo: string;
630
+ owner: string;
631
+ }, {
632
+ number: number;
633
+ repo: string;
634
+ owner: string;
635
+ }>, {
636
+ number: number;
637
+ repo: string;
638
+ owner: string;
639
+ }, {
640
+ number: number;
641
+ repo: string;
642
+ owner: string;
643
+ }, string, unknown, "github_get_issue">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
644
+ owner: z.ZodString;
645
+ repo: z.ZodString;
646
+ number: z.ZodNumber;
647
+ max_results: z.ZodOptional<z.ZodNumber>;
648
+ }, "strip", z.ZodTypeAny, {
649
+ number: number;
650
+ repo: string;
651
+ owner: string;
652
+ max_results?: number | undefined;
653
+ }, {
654
+ number: number;
655
+ repo: string;
656
+ owner: string;
657
+ max_results?: number | undefined;
658
+ }>, {
659
+ number: number;
660
+ repo: string;
661
+ owner: string;
662
+ max_results?: number | undefined;
663
+ }, {
664
+ number: number;
665
+ repo: string;
666
+ owner: string;
667
+ max_results?: number | undefined;
668
+ }, string, unknown, "github_list_issue_comments">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
669
+ owner: z.ZodString;
670
+ repo: z.ZodString;
671
+ state: z.ZodOptional<z.ZodEnum<["open", "closed", "all"]>>;
672
+ head: z.ZodOptional<z.ZodString>;
673
+ base: z.ZodOptional<z.ZodString>;
674
+ max_results: z.ZodOptional<z.ZodNumber>;
675
+ }, "strip", z.ZodTypeAny, {
676
+ repo: string;
677
+ owner: string;
678
+ max_results?: number | undefined;
679
+ state?: "open" | "closed" | "all" | undefined;
680
+ head?: string | undefined;
681
+ base?: string | undefined;
682
+ }, {
683
+ repo: string;
684
+ owner: string;
685
+ max_results?: number | undefined;
686
+ state?: "open" | "closed" | "all" | undefined;
687
+ head?: string | undefined;
688
+ base?: string | undefined;
689
+ }>, {
690
+ repo: string;
691
+ owner: string;
692
+ max_results?: number | undefined;
693
+ state?: "open" | "closed" | "all" | undefined;
694
+ head?: string | undefined;
695
+ base?: string | undefined;
696
+ }, {
697
+ repo: string;
698
+ owner: string;
699
+ max_results?: number | undefined;
700
+ state?: "open" | "closed" | "all" | undefined;
701
+ head?: string | undefined;
702
+ base?: string | undefined;
703
+ }, string, unknown, "github_list_pulls">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
704
+ owner: z.ZodString;
705
+ repo: z.ZodString;
706
+ number: z.ZodNumber;
707
+ }, "strip", z.ZodTypeAny, {
708
+ number: number;
709
+ repo: string;
710
+ owner: string;
711
+ }, {
712
+ number: number;
713
+ repo: string;
714
+ owner: string;
715
+ }>, {
716
+ number: number;
717
+ repo: string;
718
+ owner: string;
719
+ }, {
720
+ number: number;
721
+ repo: string;
722
+ owner: string;
723
+ }, string, unknown, "github_get_pull">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
724
+ owner: z.ZodString;
725
+ repo: z.ZodString;
726
+ number: z.ZodNumber;
727
+ max_results: z.ZodOptional<z.ZodNumber>;
728
+ }, "strip", z.ZodTypeAny, {
729
+ number: number;
730
+ repo: string;
731
+ owner: string;
732
+ max_results?: number | undefined;
733
+ }, {
734
+ number: number;
735
+ repo: string;
736
+ owner: string;
737
+ max_results?: number | undefined;
738
+ }>, {
739
+ number: number;
740
+ repo: string;
741
+ owner: string;
742
+ max_results?: number | undefined;
743
+ }, {
744
+ number: number;
745
+ repo: string;
746
+ owner: string;
747
+ max_results?: number | undefined;
748
+ }, string, unknown, "github_list_pull_files">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
749
+ owner: z.ZodString;
750
+ repo: z.ZodString;
751
+ number: z.ZodNumber;
752
+ max_results: z.ZodOptional<z.ZodNumber>;
753
+ }, "strip", z.ZodTypeAny, {
754
+ number: number;
755
+ repo: string;
756
+ owner: string;
757
+ max_results?: number | undefined;
758
+ }, {
759
+ number: number;
760
+ repo: string;
761
+ owner: string;
762
+ max_results?: number | undefined;
763
+ }>, {
764
+ number: number;
765
+ repo: string;
766
+ owner: string;
767
+ max_results?: number | undefined;
768
+ }, {
769
+ number: number;
770
+ repo: string;
771
+ owner: string;
772
+ max_results?: number | undefined;
773
+ }, string, unknown, "github_list_pull_reviews">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
774
+ owner: z.ZodString;
775
+ repo: z.ZodString;
776
+ }, "strip", z.ZodTypeAny, {
777
+ repo: string;
778
+ owner: string;
779
+ }, {
780
+ repo: string;
781
+ owner: string;
782
+ }>, {
783
+ repo: string;
784
+ owner: string;
785
+ }, {
786
+ repo: string;
787
+ owner: string;
788
+ }, string, unknown, "github_get_repo">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
789
+ owner: z.ZodString;
790
+ repo: z.ZodString;
791
+ max_results: z.ZodOptional<z.ZodNumber>;
792
+ }, "strip", z.ZodTypeAny, {
793
+ repo: string;
794
+ owner: string;
795
+ max_results?: number | undefined;
796
+ }, {
797
+ repo: string;
798
+ owner: string;
799
+ max_results?: number | undefined;
800
+ }>, {
801
+ repo: string;
802
+ owner: string;
803
+ max_results?: number | undefined;
804
+ }, {
805
+ repo: string;
806
+ owner: string;
807
+ max_results?: number | undefined;
808
+ }, string, unknown, "github_list_branches">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
809
+ owner: z.ZodString;
810
+ repo: z.ZodString;
811
+ path: z.ZodString;
812
+ ref: z.ZodOptional<z.ZodString>;
813
+ }, "strip", z.ZodTypeAny, {
814
+ path: string;
815
+ repo: string;
816
+ owner: string;
817
+ ref?: string | undefined;
818
+ }, {
819
+ path: string;
820
+ repo: string;
821
+ owner: string;
822
+ ref?: string | undefined;
823
+ }>, {
824
+ path: string;
825
+ repo: string;
826
+ owner: string;
827
+ ref?: string | undefined;
828
+ }, {
829
+ path: string;
830
+ repo: string;
831
+ owner: string;
832
+ ref?: string | undefined;
833
+ }, string, unknown, "github_get_file">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
834
+ q: z.ZodString;
835
+ repo: z.ZodOptional<z.ZodString>;
836
+ max_results: z.ZodOptional<z.ZodNumber>;
837
+ }, "strip", z.ZodTypeAny, {
838
+ q: string;
839
+ repo?: string | undefined;
840
+ max_results?: number | undefined;
841
+ }, {
842
+ q: string;
843
+ repo?: string | undefined;
844
+ max_results?: number | undefined;
845
+ }>, {
846
+ q: string;
847
+ repo?: string | undefined;
848
+ max_results?: number | undefined;
849
+ }, {
850
+ q: string;
851
+ repo?: string | undefined;
852
+ max_results?: number | undefined;
853
+ }, string, unknown, "github_search_code">];
854
+ declare const githubWriteTools: readonly [_langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
855
+ owner: z.ZodString;
856
+ repo: z.ZodString;
857
+ title: z.ZodString;
858
+ body: z.ZodOptional<z.ZodString>;
859
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
860
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
861
+ }, "strip", z.ZodTypeAny, {
862
+ repo: string;
863
+ owner: string;
864
+ title: string;
865
+ labels?: string[] | undefined;
866
+ assignees?: string[] | undefined;
867
+ body?: string | undefined;
868
+ }, {
869
+ repo: string;
870
+ owner: string;
871
+ title: string;
872
+ labels?: string[] | undefined;
873
+ assignees?: string[] | undefined;
874
+ body?: string | undefined;
875
+ }>, {
876
+ repo: string;
877
+ owner: string;
878
+ title: string;
879
+ labels?: string[] | undefined;
880
+ assignees?: string[] | undefined;
881
+ body?: string | undefined;
882
+ }, {
883
+ repo: string;
884
+ owner: string;
885
+ title: string;
886
+ labels?: string[] | undefined;
887
+ assignees?: string[] | undefined;
888
+ body?: string | undefined;
889
+ }, string, unknown, "github_create_issue">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
890
+ owner: z.ZodString;
891
+ repo: z.ZodString;
892
+ number: z.ZodNumber;
893
+ title: z.ZodOptional<z.ZodString>;
894
+ body: z.ZodOptional<z.ZodString>;
895
+ state: z.ZodOptional<z.ZodEnum<["open", "closed"]>>;
896
+ state_reason: z.ZodOptional<z.ZodEnum<["completed", "not_planned", "reopened"]>>;
897
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
898
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
899
+ }, "strip", z.ZodTypeAny, {
900
+ number: number;
901
+ repo: string;
902
+ owner: string;
903
+ title?: string | undefined;
904
+ state?: "open" | "closed" | undefined;
905
+ labels?: string[] | undefined;
906
+ assignees?: string[] | undefined;
907
+ body?: string | undefined;
908
+ state_reason?: "completed" | "not_planned" | "reopened" | undefined;
909
+ }, {
910
+ number: number;
911
+ repo: string;
912
+ owner: string;
913
+ title?: string | undefined;
914
+ state?: "open" | "closed" | undefined;
915
+ labels?: string[] | undefined;
916
+ assignees?: string[] | undefined;
917
+ body?: string | undefined;
918
+ state_reason?: "completed" | "not_planned" | "reopened" | undefined;
919
+ }>, {
920
+ number: number;
921
+ repo: string;
922
+ owner: string;
923
+ title?: string | undefined;
924
+ state?: "open" | "closed" | undefined;
925
+ labels?: string[] | undefined;
926
+ assignees?: string[] | undefined;
927
+ body?: string | undefined;
928
+ state_reason?: "completed" | "not_planned" | "reopened" | undefined;
929
+ }, {
930
+ number: number;
931
+ repo: string;
932
+ owner: string;
933
+ title?: string | undefined;
934
+ state?: "open" | "closed" | undefined;
935
+ labels?: string[] | undefined;
936
+ assignees?: string[] | undefined;
937
+ body?: string | undefined;
938
+ state_reason?: "completed" | "not_planned" | "reopened" | undefined;
939
+ }, string, unknown, "github_update_issue">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
940
+ owner: z.ZodString;
941
+ repo: z.ZodString;
942
+ number: z.ZodNumber;
943
+ body: z.ZodString;
944
+ }, "strip", z.ZodTypeAny, {
945
+ number: number;
946
+ repo: string;
947
+ owner: string;
948
+ body: string;
949
+ }, {
950
+ number: number;
951
+ repo: string;
952
+ owner: string;
953
+ body: string;
954
+ }>, {
955
+ number: number;
956
+ repo: string;
957
+ owner: string;
958
+ body: string;
959
+ }, {
960
+ number: number;
961
+ repo: string;
962
+ owner: string;
963
+ body: string;
964
+ }, string, unknown, "github_add_comment">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
965
+ owner: z.ZodString;
966
+ repo: z.ZodString;
967
+ title: z.ZodString;
968
+ head: z.ZodString;
969
+ base: z.ZodString;
970
+ body: z.ZodOptional<z.ZodString>;
971
+ draft: z.ZodOptional<z.ZodBoolean>;
972
+ maintainer_can_modify: z.ZodOptional<z.ZodBoolean>;
973
+ }, "strip", z.ZodTypeAny, {
974
+ repo: string;
975
+ owner: string;
976
+ title: string;
977
+ head: string;
978
+ base: string;
979
+ body?: string | undefined;
980
+ draft?: boolean | undefined;
981
+ maintainer_can_modify?: boolean | undefined;
982
+ }, {
983
+ repo: string;
984
+ owner: string;
985
+ title: string;
986
+ head: string;
987
+ base: string;
988
+ body?: string | undefined;
989
+ draft?: boolean | undefined;
990
+ maintainer_can_modify?: boolean | undefined;
991
+ }>, {
992
+ repo: string;
993
+ owner: string;
994
+ title: string;
995
+ head: string;
996
+ base: string;
997
+ body?: string | undefined;
998
+ draft?: boolean | undefined;
999
+ maintainer_can_modify?: boolean | undefined;
1000
+ }, {
1001
+ repo: string;
1002
+ owner: string;
1003
+ title: string;
1004
+ head: string;
1005
+ base: string;
1006
+ body?: string | undefined;
1007
+ draft?: boolean | undefined;
1008
+ maintainer_can_modify?: boolean | undefined;
1009
+ }, string, unknown, "github_create_pull">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1010
+ owner: z.ZodString;
1011
+ repo: z.ZodString;
1012
+ number: z.ZodNumber;
1013
+ title: z.ZodOptional<z.ZodString>;
1014
+ body: z.ZodOptional<z.ZodString>;
1015
+ state: z.ZodOptional<z.ZodEnum<["open", "closed"]>>;
1016
+ base: z.ZodOptional<z.ZodString>;
1017
+ maintainer_can_modify: z.ZodOptional<z.ZodBoolean>;
1018
+ }, "strip", z.ZodTypeAny, {
1019
+ number: number;
1020
+ repo: string;
1021
+ owner: string;
1022
+ title?: string | undefined;
1023
+ state?: "open" | "closed" | undefined;
1024
+ body?: string | undefined;
1025
+ base?: string | undefined;
1026
+ maintainer_can_modify?: boolean | undefined;
1027
+ }, {
1028
+ number: number;
1029
+ repo: string;
1030
+ owner: string;
1031
+ title?: string | undefined;
1032
+ state?: "open" | "closed" | undefined;
1033
+ body?: string | undefined;
1034
+ base?: string | undefined;
1035
+ maintainer_can_modify?: boolean | undefined;
1036
+ }>, {
1037
+ number: number;
1038
+ repo: string;
1039
+ owner: string;
1040
+ title?: string | undefined;
1041
+ state?: "open" | "closed" | undefined;
1042
+ body?: string | undefined;
1043
+ base?: string | undefined;
1044
+ maintainer_can_modify?: boolean | undefined;
1045
+ }, {
1046
+ number: number;
1047
+ repo: string;
1048
+ owner: string;
1049
+ title?: string | undefined;
1050
+ state?: "open" | "closed" | undefined;
1051
+ body?: string | undefined;
1052
+ base?: string | undefined;
1053
+ maintainer_can_modify?: boolean | undefined;
1054
+ }, string, unknown, "github_update_pull">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1055
+ owner: z.ZodString;
1056
+ repo: z.ZodString;
1057
+ number: z.ZodNumber;
1058
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1059
+ team_reviewers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1060
+ }, "strip", z.ZodTypeAny, {
1061
+ number: number;
1062
+ repo: string;
1063
+ owner: string;
1064
+ reviewers?: string[] | undefined;
1065
+ team_reviewers?: string[] | undefined;
1066
+ }, {
1067
+ number: number;
1068
+ repo: string;
1069
+ owner: string;
1070
+ reviewers?: string[] | undefined;
1071
+ team_reviewers?: string[] | undefined;
1072
+ }>, {
1073
+ number: number;
1074
+ repo: string;
1075
+ owner: string;
1076
+ reviewers?: string[] | undefined;
1077
+ team_reviewers?: string[] | undefined;
1078
+ }, {
1079
+ number: number;
1080
+ repo: string;
1081
+ owner: string;
1082
+ reviewers?: string[] | undefined;
1083
+ team_reviewers?: string[] | undefined;
1084
+ }, string, unknown, "github_request_reviewers">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1085
+ owner: z.ZodString;
1086
+ repo: z.ZodString;
1087
+ number: z.ZodNumber;
1088
+ event: z.ZodEnum<["APPROVE", "REQUEST_CHANGES", "COMMENT"]>;
1089
+ body: z.ZodOptional<z.ZodString>;
1090
+ commit_id: z.ZodOptional<z.ZodString>;
1091
+ }, "strip", z.ZodTypeAny, {
1092
+ number: number;
1093
+ repo: string;
1094
+ owner: string;
1095
+ event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT";
1096
+ body?: string | undefined;
1097
+ commit_id?: string | undefined;
1098
+ }, {
1099
+ number: number;
1100
+ repo: string;
1101
+ owner: string;
1102
+ event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT";
1103
+ body?: string | undefined;
1104
+ commit_id?: string | undefined;
1105
+ }>, {
1106
+ number: number;
1107
+ repo: string;
1108
+ owner: string;
1109
+ event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT";
1110
+ body?: string | undefined;
1111
+ commit_id?: string | undefined;
1112
+ }, {
1113
+ number: number;
1114
+ repo: string;
1115
+ owner: string;
1116
+ event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT";
1117
+ body?: string | undefined;
1118
+ commit_id?: string | undefined;
1119
+ }, string, unknown, "github_create_review">];
1120
+ declare const githubExecuteTools: readonly [_langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1121
+ owner: z.ZodString;
1122
+ repo: z.ZodString;
1123
+ number: z.ZodNumber;
1124
+ method: z.ZodOptional<z.ZodEnum<["merge", "squash", "rebase"]>>;
1125
+ commit_title: z.ZodOptional<z.ZodString>;
1126
+ commit_message: z.ZodOptional<z.ZodString>;
1127
+ sha: z.ZodOptional<z.ZodString>;
1128
+ }, "strip", z.ZodTypeAny, {
1129
+ number: number;
1130
+ repo: string;
1131
+ owner: string;
1132
+ method?: "merge" | "squash" | "rebase" | undefined;
1133
+ commit_title?: string | undefined;
1134
+ commit_message?: string | undefined;
1135
+ sha?: string | undefined;
1136
+ }, {
1137
+ number: number;
1138
+ repo: string;
1139
+ owner: string;
1140
+ method?: "merge" | "squash" | "rebase" | undefined;
1141
+ commit_title?: string | undefined;
1142
+ commit_message?: string | undefined;
1143
+ sha?: string | undefined;
1144
+ }>, {
1145
+ number: number;
1146
+ repo: string;
1147
+ owner: string;
1148
+ method?: "merge" | "squash" | "rebase" | undefined;
1149
+ commit_title?: string | undefined;
1150
+ commit_message?: string | undefined;
1151
+ sha?: string | undefined;
1152
+ }, {
1153
+ number: number;
1154
+ repo: string;
1155
+ owner: string;
1156
+ method?: "merge" | "squash" | "rebase" | undefined;
1157
+ commit_title?: string | undefined;
1158
+ commit_message?: string | undefined;
1159
+ sha?: string | undefined;
1160
+ }, string, unknown, "github_merge_pull">];
1161
+ declare const githubTools: readonly [_langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1162
+ q: z.ZodString;
1163
+ repo: z.ZodOptional<z.ZodString>;
1164
+ max_results: z.ZodOptional<z.ZodNumber>;
1165
+ }, "strip", z.ZodTypeAny, {
1166
+ q: string;
1167
+ repo?: string | undefined;
1168
+ max_results?: number | undefined;
1169
+ }, {
1170
+ q: string;
1171
+ repo?: string | undefined;
1172
+ max_results?: number | undefined;
1173
+ }>, {
1174
+ q: string;
1175
+ repo?: string | undefined;
1176
+ max_results?: number | undefined;
1177
+ }, {
1178
+ q: string;
1179
+ repo?: string | undefined;
1180
+ max_results?: number | undefined;
1181
+ }, string, unknown, "github_search_issues">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1182
+ owner: z.ZodString;
1183
+ repo: z.ZodString;
1184
+ number: z.ZodNumber;
1185
+ }, "strip", z.ZodTypeAny, {
1186
+ number: number;
1187
+ repo: string;
1188
+ owner: string;
1189
+ }, {
1190
+ number: number;
1191
+ repo: string;
1192
+ owner: string;
1193
+ }>, {
1194
+ number: number;
1195
+ repo: string;
1196
+ owner: string;
1197
+ }, {
1198
+ number: number;
1199
+ repo: string;
1200
+ owner: string;
1201
+ }, string, unknown, "github_get_issue">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1202
+ owner: z.ZodString;
1203
+ repo: z.ZodString;
1204
+ number: z.ZodNumber;
1205
+ max_results: z.ZodOptional<z.ZodNumber>;
1206
+ }, "strip", z.ZodTypeAny, {
1207
+ number: number;
1208
+ repo: string;
1209
+ owner: string;
1210
+ max_results?: number | undefined;
1211
+ }, {
1212
+ number: number;
1213
+ repo: string;
1214
+ owner: string;
1215
+ max_results?: number | undefined;
1216
+ }>, {
1217
+ number: number;
1218
+ repo: string;
1219
+ owner: string;
1220
+ max_results?: number | undefined;
1221
+ }, {
1222
+ number: number;
1223
+ repo: string;
1224
+ owner: string;
1225
+ max_results?: number | undefined;
1226
+ }, string, unknown, "github_list_issue_comments">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1227
+ owner: z.ZodString;
1228
+ repo: z.ZodString;
1229
+ state: z.ZodOptional<z.ZodEnum<["open", "closed", "all"]>>;
1230
+ head: z.ZodOptional<z.ZodString>;
1231
+ base: z.ZodOptional<z.ZodString>;
1232
+ max_results: z.ZodOptional<z.ZodNumber>;
1233
+ }, "strip", z.ZodTypeAny, {
1234
+ repo: string;
1235
+ owner: string;
1236
+ max_results?: number | undefined;
1237
+ state?: "open" | "closed" | "all" | undefined;
1238
+ head?: string | undefined;
1239
+ base?: string | undefined;
1240
+ }, {
1241
+ repo: string;
1242
+ owner: string;
1243
+ max_results?: number | undefined;
1244
+ state?: "open" | "closed" | "all" | undefined;
1245
+ head?: string | undefined;
1246
+ base?: string | undefined;
1247
+ }>, {
1248
+ repo: string;
1249
+ owner: string;
1250
+ max_results?: number | undefined;
1251
+ state?: "open" | "closed" | "all" | undefined;
1252
+ head?: string | undefined;
1253
+ base?: string | undefined;
1254
+ }, {
1255
+ repo: string;
1256
+ owner: string;
1257
+ max_results?: number | undefined;
1258
+ state?: "open" | "closed" | "all" | undefined;
1259
+ head?: string | undefined;
1260
+ base?: string | undefined;
1261
+ }, string, unknown, "github_list_pulls">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1262
+ owner: z.ZodString;
1263
+ repo: z.ZodString;
1264
+ number: z.ZodNumber;
1265
+ }, "strip", z.ZodTypeAny, {
1266
+ number: number;
1267
+ repo: string;
1268
+ owner: string;
1269
+ }, {
1270
+ number: number;
1271
+ repo: string;
1272
+ owner: string;
1273
+ }>, {
1274
+ number: number;
1275
+ repo: string;
1276
+ owner: string;
1277
+ }, {
1278
+ number: number;
1279
+ repo: string;
1280
+ owner: string;
1281
+ }, string, unknown, "github_get_pull">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1282
+ owner: z.ZodString;
1283
+ repo: z.ZodString;
1284
+ number: z.ZodNumber;
1285
+ max_results: z.ZodOptional<z.ZodNumber>;
1286
+ }, "strip", z.ZodTypeAny, {
1287
+ number: number;
1288
+ repo: string;
1289
+ owner: string;
1290
+ max_results?: number | undefined;
1291
+ }, {
1292
+ number: number;
1293
+ repo: string;
1294
+ owner: string;
1295
+ max_results?: number | undefined;
1296
+ }>, {
1297
+ number: number;
1298
+ repo: string;
1299
+ owner: string;
1300
+ max_results?: number | undefined;
1301
+ }, {
1302
+ number: number;
1303
+ repo: string;
1304
+ owner: string;
1305
+ max_results?: number | undefined;
1306
+ }, string, unknown, "github_list_pull_files">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1307
+ owner: z.ZodString;
1308
+ repo: z.ZodString;
1309
+ number: z.ZodNumber;
1310
+ max_results: z.ZodOptional<z.ZodNumber>;
1311
+ }, "strip", z.ZodTypeAny, {
1312
+ number: number;
1313
+ repo: string;
1314
+ owner: string;
1315
+ max_results?: number | undefined;
1316
+ }, {
1317
+ number: number;
1318
+ repo: string;
1319
+ owner: string;
1320
+ max_results?: number | undefined;
1321
+ }>, {
1322
+ number: number;
1323
+ repo: string;
1324
+ owner: string;
1325
+ max_results?: number | undefined;
1326
+ }, {
1327
+ number: number;
1328
+ repo: string;
1329
+ owner: string;
1330
+ max_results?: number | undefined;
1331
+ }, string, unknown, "github_list_pull_reviews">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1332
+ owner: z.ZodString;
1333
+ repo: z.ZodString;
1334
+ }, "strip", z.ZodTypeAny, {
1335
+ repo: string;
1336
+ owner: string;
1337
+ }, {
1338
+ repo: string;
1339
+ owner: string;
1340
+ }>, {
1341
+ repo: string;
1342
+ owner: string;
1343
+ }, {
1344
+ repo: string;
1345
+ owner: string;
1346
+ }, string, unknown, "github_get_repo">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1347
+ owner: z.ZodString;
1348
+ repo: z.ZodString;
1349
+ max_results: z.ZodOptional<z.ZodNumber>;
1350
+ }, "strip", z.ZodTypeAny, {
1351
+ repo: string;
1352
+ owner: string;
1353
+ max_results?: number | undefined;
1354
+ }, {
1355
+ repo: string;
1356
+ owner: string;
1357
+ max_results?: number | undefined;
1358
+ }>, {
1359
+ repo: string;
1360
+ owner: string;
1361
+ max_results?: number | undefined;
1362
+ }, {
1363
+ repo: string;
1364
+ owner: string;
1365
+ max_results?: number | undefined;
1366
+ }, string, unknown, "github_list_branches">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1367
+ owner: z.ZodString;
1368
+ repo: z.ZodString;
1369
+ path: z.ZodString;
1370
+ ref: z.ZodOptional<z.ZodString>;
1371
+ }, "strip", z.ZodTypeAny, {
1372
+ path: string;
1373
+ repo: string;
1374
+ owner: string;
1375
+ ref?: string | undefined;
1376
+ }, {
1377
+ path: string;
1378
+ repo: string;
1379
+ owner: string;
1380
+ ref?: string | undefined;
1381
+ }>, {
1382
+ path: string;
1383
+ repo: string;
1384
+ owner: string;
1385
+ ref?: string | undefined;
1386
+ }, {
1387
+ path: string;
1388
+ repo: string;
1389
+ owner: string;
1390
+ ref?: string | undefined;
1391
+ }, string, unknown, "github_get_file">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1392
+ q: z.ZodString;
1393
+ repo: z.ZodOptional<z.ZodString>;
1394
+ max_results: z.ZodOptional<z.ZodNumber>;
1395
+ }, "strip", z.ZodTypeAny, {
1396
+ q: string;
1397
+ repo?: string | undefined;
1398
+ max_results?: number | undefined;
1399
+ }, {
1400
+ q: string;
1401
+ repo?: string | undefined;
1402
+ max_results?: number | undefined;
1403
+ }>, {
1404
+ q: string;
1405
+ repo?: string | undefined;
1406
+ max_results?: number | undefined;
1407
+ }, {
1408
+ q: string;
1409
+ repo?: string | undefined;
1410
+ max_results?: number | undefined;
1411
+ }, string, unknown, "github_search_code">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1412
+ owner: z.ZodString;
1413
+ repo: z.ZodString;
1414
+ title: z.ZodString;
1415
+ body: z.ZodOptional<z.ZodString>;
1416
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1417
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1418
+ }, "strip", z.ZodTypeAny, {
1419
+ repo: string;
1420
+ owner: string;
1421
+ title: string;
1422
+ labels?: string[] | undefined;
1423
+ assignees?: string[] | undefined;
1424
+ body?: string | undefined;
1425
+ }, {
1426
+ repo: string;
1427
+ owner: string;
1428
+ title: string;
1429
+ labels?: string[] | undefined;
1430
+ assignees?: string[] | undefined;
1431
+ body?: string | undefined;
1432
+ }>, {
1433
+ repo: string;
1434
+ owner: string;
1435
+ title: string;
1436
+ labels?: string[] | undefined;
1437
+ assignees?: string[] | undefined;
1438
+ body?: string | undefined;
1439
+ }, {
1440
+ repo: string;
1441
+ owner: string;
1442
+ title: string;
1443
+ labels?: string[] | undefined;
1444
+ assignees?: string[] | undefined;
1445
+ body?: string | undefined;
1446
+ }, string, unknown, "github_create_issue">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1447
+ owner: z.ZodString;
1448
+ repo: z.ZodString;
1449
+ number: z.ZodNumber;
1450
+ title: z.ZodOptional<z.ZodString>;
1451
+ body: z.ZodOptional<z.ZodString>;
1452
+ state: z.ZodOptional<z.ZodEnum<["open", "closed"]>>;
1453
+ state_reason: z.ZodOptional<z.ZodEnum<["completed", "not_planned", "reopened"]>>;
1454
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1455
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1456
+ }, "strip", z.ZodTypeAny, {
1457
+ number: number;
1458
+ repo: string;
1459
+ owner: string;
1460
+ title?: string | undefined;
1461
+ state?: "open" | "closed" | undefined;
1462
+ labels?: string[] | undefined;
1463
+ assignees?: string[] | undefined;
1464
+ body?: string | undefined;
1465
+ state_reason?: "completed" | "not_planned" | "reopened" | undefined;
1466
+ }, {
1467
+ number: number;
1468
+ repo: string;
1469
+ owner: string;
1470
+ title?: string | undefined;
1471
+ state?: "open" | "closed" | undefined;
1472
+ labels?: string[] | undefined;
1473
+ assignees?: string[] | undefined;
1474
+ body?: string | undefined;
1475
+ state_reason?: "completed" | "not_planned" | "reopened" | undefined;
1476
+ }>, {
1477
+ number: number;
1478
+ repo: string;
1479
+ owner: string;
1480
+ title?: string | undefined;
1481
+ state?: "open" | "closed" | undefined;
1482
+ labels?: string[] | undefined;
1483
+ assignees?: string[] | undefined;
1484
+ body?: string | undefined;
1485
+ state_reason?: "completed" | "not_planned" | "reopened" | undefined;
1486
+ }, {
1487
+ number: number;
1488
+ repo: string;
1489
+ owner: string;
1490
+ title?: string | undefined;
1491
+ state?: "open" | "closed" | undefined;
1492
+ labels?: string[] | undefined;
1493
+ assignees?: string[] | undefined;
1494
+ body?: string | undefined;
1495
+ state_reason?: "completed" | "not_planned" | "reopened" | undefined;
1496
+ }, string, unknown, "github_update_issue">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1497
+ owner: z.ZodString;
1498
+ repo: z.ZodString;
1499
+ number: z.ZodNumber;
1500
+ body: z.ZodString;
1501
+ }, "strip", z.ZodTypeAny, {
1502
+ number: number;
1503
+ repo: string;
1504
+ owner: string;
1505
+ body: string;
1506
+ }, {
1507
+ number: number;
1508
+ repo: string;
1509
+ owner: string;
1510
+ body: string;
1511
+ }>, {
1512
+ number: number;
1513
+ repo: string;
1514
+ owner: string;
1515
+ body: string;
1516
+ }, {
1517
+ number: number;
1518
+ repo: string;
1519
+ owner: string;
1520
+ body: string;
1521
+ }, string, unknown, "github_add_comment">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1522
+ owner: z.ZodString;
1523
+ repo: z.ZodString;
1524
+ title: z.ZodString;
1525
+ head: z.ZodString;
1526
+ base: z.ZodString;
1527
+ body: z.ZodOptional<z.ZodString>;
1528
+ draft: z.ZodOptional<z.ZodBoolean>;
1529
+ maintainer_can_modify: z.ZodOptional<z.ZodBoolean>;
1530
+ }, "strip", z.ZodTypeAny, {
1531
+ repo: string;
1532
+ owner: string;
1533
+ title: string;
1534
+ head: string;
1535
+ base: string;
1536
+ body?: string | undefined;
1537
+ draft?: boolean | undefined;
1538
+ maintainer_can_modify?: boolean | undefined;
1539
+ }, {
1540
+ repo: string;
1541
+ owner: string;
1542
+ title: string;
1543
+ head: string;
1544
+ base: string;
1545
+ body?: string | undefined;
1546
+ draft?: boolean | undefined;
1547
+ maintainer_can_modify?: boolean | undefined;
1548
+ }>, {
1549
+ repo: string;
1550
+ owner: string;
1551
+ title: string;
1552
+ head: string;
1553
+ base: string;
1554
+ body?: string | undefined;
1555
+ draft?: boolean | undefined;
1556
+ maintainer_can_modify?: boolean | undefined;
1557
+ }, {
1558
+ repo: string;
1559
+ owner: string;
1560
+ title: string;
1561
+ head: string;
1562
+ base: string;
1563
+ body?: string | undefined;
1564
+ draft?: boolean | undefined;
1565
+ maintainer_can_modify?: boolean | undefined;
1566
+ }, string, unknown, "github_create_pull">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1567
+ owner: z.ZodString;
1568
+ repo: z.ZodString;
1569
+ number: z.ZodNumber;
1570
+ title: z.ZodOptional<z.ZodString>;
1571
+ body: z.ZodOptional<z.ZodString>;
1572
+ state: z.ZodOptional<z.ZodEnum<["open", "closed"]>>;
1573
+ base: z.ZodOptional<z.ZodString>;
1574
+ maintainer_can_modify: z.ZodOptional<z.ZodBoolean>;
1575
+ }, "strip", z.ZodTypeAny, {
1576
+ number: number;
1577
+ repo: string;
1578
+ owner: string;
1579
+ title?: string | undefined;
1580
+ state?: "open" | "closed" | undefined;
1581
+ body?: string | undefined;
1582
+ base?: string | undefined;
1583
+ maintainer_can_modify?: boolean | undefined;
1584
+ }, {
1585
+ number: number;
1586
+ repo: string;
1587
+ owner: string;
1588
+ title?: string | undefined;
1589
+ state?: "open" | "closed" | undefined;
1590
+ body?: string | undefined;
1591
+ base?: string | undefined;
1592
+ maintainer_can_modify?: boolean | undefined;
1593
+ }>, {
1594
+ number: number;
1595
+ repo: string;
1596
+ owner: string;
1597
+ title?: string | undefined;
1598
+ state?: "open" | "closed" | undefined;
1599
+ body?: string | undefined;
1600
+ base?: string | undefined;
1601
+ maintainer_can_modify?: boolean | undefined;
1602
+ }, {
1603
+ number: number;
1604
+ repo: string;
1605
+ owner: string;
1606
+ title?: string | undefined;
1607
+ state?: "open" | "closed" | undefined;
1608
+ body?: string | undefined;
1609
+ base?: string | undefined;
1610
+ maintainer_can_modify?: boolean | undefined;
1611
+ }, string, unknown, "github_update_pull">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1612
+ owner: z.ZodString;
1613
+ repo: z.ZodString;
1614
+ number: z.ZodNumber;
1615
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1616
+ team_reviewers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1617
+ }, "strip", z.ZodTypeAny, {
1618
+ number: number;
1619
+ repo: string;
1620
+ owner: string;
1621
+ reviewers?: string[] | undefined;
1622
+ team_reviewers?: string[] | undefined;
1623
+ }, {
1624
+ number: number;
1625
+ repo: string;
1626
+ owner: string;
1627
+ reviewers?: string[] | undefined;
1628
+ team_reviewers?: string[] | undefined;
1629
+ }>, {
1630
+ number: number;
1631
+ repo: string;
1632
+ owner: string;
1633
+ reviewers?: string[] | undefined;
1634
+ team_reviewers?: string[] | undefined;
1635
+ }, {
1636
+ number: number;
1637
+ repo: string;
1638
+ owner: string;
1639
+ reviewers?: string[] | undefined;
1640
+ team_reviewers?: string[] | undefined;
1641
+ }, string, unknown, "github_request_reviewers">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1642
+ owner: z.ZodString;
1643
+ repo: z.ZodString;
1644
+ number: z.ZodNumber;
1645
+ event: z.ZodEnum<["APPROVE", "REQUEST_CHANGES", "COMMENT"]>;
1646
+ body: z.ZodOptional<z.ZodString>;
1647
+ commit_id: z.ZodOptional<z.ZodString>;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ number: number;
1650
+ repo: string;
1651
+ owner: string;
1652
+ event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT";
1653
+ body?: string | undefined;
1654
+ commit_id?: string | undefined;
1655
+ }, {
1656
+ number: number;
1657
+ repo: string;
1658
+ owner: string;
1659
+ event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT";
1660
+ body?: string | undefined;
1661
+ commit_id?: string | undefined;
1662
+ }>, {
1663
+ number: number;
1664
+ repo: string;
1665
+ owner: string;
1666
+ event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT";
1667
+ body?: string | undefined;
1668
+ commit_id?: string | undefined;
1669
+ }, {
1670
+ number: number;
1671
+ repo: string;
1672
+ owner: string;
1673
+ event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT";
1674
+ body?: string | undefined;
1675
+ commit_id?: string | undefined;
1676
+ }, string, unknown, "github_create_review">, _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1677
+ owner: z.ZodString;
1678
+ repo: z.ZodString;
1679
+ number: z.ZodNumber;
1680
+ method: z.ZodOptional<z.ZodEnum<["merge", "squash", "rebase"]>>;
1681
+ commit_title: z.ZodOptional<z.ZodString>;
1682
+ commit_message: z.ZodOptional<z.ZodString>;
1683
+ sha: z.ZodOptional<z.ZodString>;
1684
+ }, "strip", z.ZodTypeAny, {
1685
+ number: number;
1686
+ repo: string;
1687
+ owner: string;
1688
+ method?: "merge" | "squash" | "rebase" | undefined;
1689
+ commit_title?: string | undefined;
1690
+ commit_message?: string | undefined;
1691
+ sha?: string | undefined;
1692
+ }, {
1693
+ number: number;
1694
+ repo: string;
1695
+ owner: string;
1696
+ method?: "merge" | "squash" | "rebase" | undefined;
1697
+ commit_title?: string | undefined;
1698
+ commit_message?: string | undefined;
1699
+ sha?: string | undefined;
1700
+ }>, {
1701
+ number: number;
1702
+ repo: string;
1703
+ owner: string;
1704
+ method?: "merge" | "squash" | "rebase" | undefined;
1705
+ commit_title?: string | undefined;
1706
+ commit_message?: string | undefined;
1707
+ sha?: string | undefined;
1708
+ }, {
1709
+ number: number;
1710
+ repo: string;
1711
+ owner: string;
1712
+ method?: "merge" | "squash" | "rebase" | undefined;
1713
+ commit_title?: string | undefined;
1714
+ commit_message?: string | undefined;
1715
+ sha?: string | undefined;
1716
+ }, string, unknown, "github_merge_pull">];
1717
+
1718
+ export { type AuthResolver, type DecodedBlob, type GitHubAuth, _ghFetch, _resolveGithubAuth, decodeContentsBlob, githubAddCommentTool, githubCreateIssueTool, githubCreatePullTool, githubCreateReviewTool, githubExecuteTools, githubFetch, githubGetFileTool, githubGetIssueTool, githubGetPullTool, githubGetRepoTool, githubListBranchesTool, githubListIssueCommentsTool, githubListPullFilesTool, githubListPullReviewsTool, githubListPullsTool, githubMergePullTool, githubReadTools, githubRequestReviewersTool, githubSearchCodeTool, githubSearchIssuesTool, githubTools, githubUpdateIssueTool, githubUpdatePullTool, githubWriteTools, resolveGithubAuthFromEnv, setAuthResolver, truncate };