pygeai 0.4.0b4__py3-none-any.whl → 0.4.0b6__py3-none-any.whl

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.
@@ -25,7 +25,6 @@ def show_help():
25
25
 
26
26
 
27
27
  def list_agents(option_list: list):
28
- project_id = None
29
28
  status = ""
30
29
  start = ""
31
30
  count = ""
@@ -34,8 +33,6 @@ def list_agents(option_list: list):
34
33
  allow_external = False
35
34
 
36
35
  for option_flag, option_arg in option_list:
37
- if option_flag.name == "project_id":
38
- project_id = option_arg
39
36
  if option_flag.name == "status":
40
37
  status = option_arg
41
38
  if option_flag.name == "start":
@@ -49,12 +46,8 @@ def list_agents(option_list: list):
49
46
  if option_flag.name == "allow_external":
50
47
  allow_external = get_boolean_value(option_arg)
51
48
 
52
- if not project_id:
53
- raise MissingRequirementException("Project ID must be specified.")
54
-
55
49
  client = AgentClient()
56
50
  result = client.list_agents(
57
- project_id=project_id,
58
51
  status=status,
59
52
  start=start,
60
53
  count=count,
@@ -66,12 +59,6 @@ def list_agents(option_list: list):
66
59
 
67
60
 
68
61
  list_agents_options = [
69
- Option(
70
- "project_id",
71
- ["--project-id", "--pid"],
72
- "ID of the project",
73
- True
74
- ),
75
62
  Option(
76
63
  "status",
77
64
  ["--status"],
@@ -112,7 +99,6 @@ list_agents_options = [
112
99
 
113
100
 
114
101
  def create_agent(option_list: list):
115
- project_id = None
116
102
  name = None
117
103
  access_scope = None
118
104
  public_name = None
@@ -128,13 +114,12 @@ def create_agent(option_list: list):
128
114
  agent_data_llm_temperature = None
129
115
  agent_data_llm_top_k = None
130
116
  agent_data_llm_top_p = None
117
+ agent_data_strategy_name = None
131
118
  agent_data_model_name = None
132
119
  agent_data_resource_pools = None
133
120
  automatic_publish = False
134
121
 
135
122
  for option_flag, option_arg in option_list:
136
- if option_flag.name == "project_id":
137
- project_id = option_arg
138
123
  if option_flag.name == "name":
139
124
  name = option_arg
140
125
  if option_flag.name == "access_scope":
@@ -202,6 +187,8 @@ def create_agent(option_list: list):
202
187
  agent_data_llm_top_k = option_arg
203
188
  if option_flag.name == "agent_data_llm_top_p":
204
189
  agent_data_llm_top_p = option_arg
190
+ if option_flag.name == "agent_data_strategy_name":
191
+ agent_data_strategy_name = option_arg
205
192
  if option_flag.name == "agent_data_model_name":
206
193
  agent_data_model_name = option_arg
207
194
  if option_flag.name == "agent_data_resource_pools":
@@ -218,8 +205,6 @@ def create_agent(option_list: list):
218
205
  if option_flag.name == "automatic_publish":
219
206
  automatic_publish = get_boolean_value(option_arg)
220
207
 
221
- if not project_id:
222
- raise MissingRequirementException("Project ID must be specified.")
223
208
  if not (name and access_scope and public_name):
224
209
  raise MissingRequirementException("Cannot create assistant without specifying name, access scope and public name")
225
210
 
@@ -248,7 +233,6 @@ def create_agent(option_list: list):
248
233
 
249
234
  client = AgentClient()
250
235
  result = client.create_agent(
251
- project_id=project_id,
252
236
  name=name,
253
237
  access_scope=access_scope,
254
238
  public_name=public_name,
@@ -257,6 +241,7 @@ def create_agent(option_list: list):
257
241
  description=description,
258
242
  agent_data_prompt=agent_data_prompt,
259
243
  agent_data_llm_config=agent_data_llm_config,
244
+ agent_data_strategy_name=agent_data_strategy_name,
260
245
  agent_data_models=agent_data_models,
261
246
  agent_data_resource_pools=agent_data_resource_pools,
262
247
  automatic_publish=automatic_publish
@@ -265,12 +250,6 @@ def create_agent(option_list: list):
265
250
 
266
251
 
267
252
  create_agent_options = [
268
- Option(
269
- "project_id",
270
- ["--project-id", "--pid"],
271
- "Unique identifier of the project where the agent will be created",
272
- True
273
- ),
274
253
  Option(
275
254
  "name",
276
255
  ["--name", "-n"],
@@ -362,6 +341,12 @@ create_agent_options = [
362
341
  "TopP sampling parameter for LLM (currently unused)",
363
342
  True
364
343
  ),
344
+ Option(
345
+ "agent_data_strategy_name",
346
+ ["--agent-data-strategy-name", "--strategy-name"],
347
+ "Name of the reasoning strategy to use",
348
+ True
349
+ ),
365
350
  Option(
366
351
  "agent_data_model_name",
367
352
  ["--agent-data-model-name", "--adm-name"],
@@ -385,15 +370,12 @@ create_agent_options = [
385
370
 
386
371
 
387
372
  def get_agent(option_list: list):
388
- project_id = None
389
373
  agent_id = None
390
374
  revision = 0
391
375
  version = 0
392
376
  allow_drafts = True
393
377
 
394
378
  for option_flag, option_arg in option_list:
395
- if option_flag.name == "project_id":
396
- project_id = option_arg
397
379
  if option_flag.name == "agent_id":
398
380
  agent_id = option_arg
399
381
  if option_flag.name == "revision":
@@ -403,12 +385,11 @@ def get_agent(option_list: list):
403
385
  if option_flag.name == "allow_drafts":
404
386
  allow_drafts = get_boolean_value(option_arg)
405
387
 
406
- if not (project_id and agent_id):
407
- raise MissingRequirementException("Project ID and Agent id must be specified.")
388
+ if not agent_id:
389
+ raise MissingRequirementException("Agent ID must be specified.")
408
390
 
409
391
  client = AgentClient()
410
392
  result = client.get_agent(
411
- project_id=project_id,
412
393
  agent_id=agent_id,
413
394
  revision=revision,
414
395
  version=version,
@@ -418,12 +399,6 @@ def get_agent(option_list: list):
418
399
 
419
400
 
420
401
  get_agent_options = [
421
- Option(
422
- "project_id",
423
- ["--project-id", "--pid"],
424
- "ID of the project",
425
- True
426
- ),
427
402
  Option(
428
403
  "agent_id",
429
404
  ["--agent-id", "--aid"],
@@ -452,25 +427,20 @@ get_agent_options = [
452
427
 
453
428
 
454
429
  def export_agent(option_list: list):
455
- project_id = None
456
430
  agent_id = None
457
431
  file = None
458
432
 
459
433
  for option_flag, option_arg in option_list:
460
- if option_flag.name == "project_id":
461
- project_id = option_arg
462
434
  if option_flag.name == "agent_id":
463
435
  agent_id = option_arg
464
436
  if option_flag.name == "file":
465
437
  file = option_arg
466
438
 
467
-
468
- if not (project_id and agent_id):
469
- raise MissingRequirementException("Project ID and Agent id must be specified.")
439
+ if not agent_id:
440
+ raise MissingRequirementException("Agent ID must be specified.")
470
441
 
471
442
  client = AgentClient()
472
443
  result = client.export_agent(
473
- project_id=project_id,
474
444
  agent_id=agent_id,
475
445
  )
476
446
  if file:
@@ -488,12 +458,6 @@ def export_agent(option_list: list):
488
458
 
489
459
 
490
460
  export_agent_options = [
491
- Option(
492
- "project_id",
493
- ["--project-id", "--pid"],
494
- "ID of the project",
495
- True
496
- ),
497
461
  Option(
498
462
  "agent_id",
499
463
  ["--agent-id", "--aid"],
@@ -510,18 +474,15 @@ export_agent_options = [
510
474
 
511
475
 
512
476
  def import_agent(option_list: list):
513
- project_id = None
514
477
  file = None
515
478
 
516
479
  for option_flag, option_arg in option_list:
517
- if option_flag.name == "project_id":
518
- project_id = option_arg
519
480
  if option_flag.name == "file":
520
481
  file = option_arg
521
482
 
522
483
 
523
- if not (project_id and file):
524
- raise MissingRequirementException("Project ID and file path to spec must be specified.")
484
+ if not file:
485
+ raise MissingRequirementException("File path to spec must be specified.")
525
486
 
526
487
  try:
527
488
  with open(file, "r") as f:
@@ -532,7 +493,6 @@ def import_agent(option_list: list):
532
493
 
533
494
  client = AgentClient()
534
495
  result = client.import_agent(
535
- project_id=project_id,
536
496
  data=agent_data
537
497
  )
538
498
 
@@ -541,12 +501,6 @@ def import_agent(option_list: list):
541
501
 
542
502
 
543
503
  import_agent_options = [
544
- Option(
545
- "project_id",
546
- ["--project-id", "--pid"],
547
- "ID of the project",
548
- True
549
- ),
550
504
  Option(
551
505
  "file",
552
506
  ["--file", "-f"],
@@ -557,33 +511,23 @@ import_agent_options = [
557
511
 
558
512
 
559
513
  def create_sharing_link(option_list: list):
560
- project_id = None
561
514
  agent_id = None
562
515
 
563
516
  for option_flag, option_arg in option_list:
564
- if option_flag.name == "project_id":
565
- project_id = option_arg
566
517
  if option_flag.name == "agent_id":
567
518
  agent_id = option_arg
568
519
 
569
- if not (project_id and agent_id):
570
- raise MissingRequirementException("Project ID and Agent id must be specified.")
520
+ if not agent_id:
521
+ raise MissingRequirementException("Agent ID must be specified.")
571
522
 
572
523
  client = AgentClient()
573
524
  result = client.create_sharing_link(
574
- project_id=project_id,
575
525
  agent_id=agent_id,
576
526
  )
577
527
  Console.write_stdout(f"Sharing token: \n{result}")
578
528
 
579
529
 
580
530
  create_sharing_link_options = [
581
- Option(
582
- "project_id",
583
- ["--project-id", "--pid"],
584
- "ID of the project",
585
- True
586
- ),
587
531
  Option(
588
532
  "agent_id",
589
533
  ["--agent-id", "--aid"],
@@ -594,24 +538,20 @@ create_sharing_link_options = [
594
538
 
595
539
 
596
540
  def publish_agent_revision(option_list: list):
597
- project_id = None
598
541
  agent_id = None
599
542
  revision = None
600
543
 
601
544
  for option_flag, option_arg in option_list:
602
- if option_flag.name == "project_id":
603
- project_id = option_arg
604
545
  if option_flag.name == "agent_id":
605
546
  agent_id = option_arg
606
547
  if option_flag.name == "revision":
607
548
  revision = option_arg
608
549
 
609
- if not (project_id and agent_id and revision):
610
- raise MissingRequirementException("Project ID, Agent ID and revision must be specified.")
550
+ if not (agent_id and revision):
551
+ raise MissingRequirementException("Agent ID and revision must be specified.")
611
552
 
612
553
  client = AgentClient()
613
554
  result = client.publish_agent_revision(
614
- project_id=project_id,
615
555
  agent_id=agent_id,
616
556
  revision=revision
617
557
  )
@@ -619,12 +559,6 @@ def publish_agent_revision(option_list: list):
619
559
 
620
560
 
621
561
  publish_agent_revision_options = [
622
- Option(
623
- "project_id",
624
- ["--project-id", "--pid"],
625
- "ID of the project",
626
- True
627
- ),
628
562
  Option(
629
563
  "agent_id",
630
564
  ["--agent-id", "--aid"],
@@ -641,33 +575,23 @@ publish_agent_revision_options = [
641
575
 
642
576
 
643
577
  def delete_agent(option_list: list):
644
- project_id = None
645
578
  agent_id = None
646
579
 
647
580
  for option_flag, option_arg in option_list:
648
- if option_flag.name == "project_id":
649
- project_id = option_arg
650
581
  if option_flag.name == "agent_id":
651
582
  agent_id = option_arg
652
583
 
653
- if not (project_id and agent_id):
654
- raise MissingRequirementException("Project ID and Agent ID must be specified.")
584
+ if not agent_id:
585
+ raise MissingRequirementException("Agent ID must be specified.")
655
586
 
656
587
  client = AgentClient()
657
588
  result = client.delete_agent(
658
- project_id=project_id,
659
589
  agent_id=agent_id,
660
590
  )
661
591
  Console.write_stdout(f"Deleted agent detail: \n{result}")
662
592
 
663
593
 
664
594
  delete_agent_options = [
665
- Option(
666
- "project_id",
667
- ["--project-id", "--pid"],
668
- "ID of the project",
669
- True
670
- ),
671
595
  Option(
672
596
  "agent_id",
673
597
  ["--agent-id", "--aid"],
@@ -678,7 +602,6 @@ delete_agent_options = [
678
602
 
679
603
 
680
604
  def update_agent(option_list: list):
681
- project_id = None
682
605
  agent_id = None
683
606
  name = None
684
607
  access_scope = None
@@ -695,14 +618,13 @@ def update_agent(option_list: list):
695
618
  agent_data_llm_temperature = None
696
619
  agent_data_llm_top_k = None
697
620
  agent_data_llm_top_p = None
621
+ agent_data_strategy_name = None
698
622
  agent_data_model_name = None
699
623
  agent_data_resource_pools = None
700
624
  automatic_publish = False
701
625
  upsert = False
702
626
 
703
627
  for option_flag, option_arg in option_list:
704
- if option_flag.name == "project_id":
705
- project_id = option_arg
706
628
  if option_flag.name == "agent_id":
707
629
  agent_id = option_arg
708
630
  if option_flag.name == "name":
@@ -771,7 +693,9 @@ def update_agent(option_list: list):
771
693
  if option_flag.name == "agent_data_llm_top_k":
772
694
  agent_data_llm_top_k = option_arg
773
695
  if option_flag.name == "agent_data_llm_top_p":
774
- agent_data_llm_top_p = option_arg
696
+ agent_data_llm_top_k = option_arg
697
+ if option_flag.name == "agent_data_strategy_name":
698
+ agent_data_strategy_name = option_arg
775
699
  if option_flag.name == "agent_data_model_name":
776
700
  agent_data_model_name = option_arg
777
701
  if option_flag.name == "agent_data_resource_pools":
@@ -790,9 +714,6 @@ def update_agent(option_list: list):
790
714
  if option_flag.name == "upsert":
791
715
  upsert = get_boolean_value(option_arg)
792
716
 
793
- if not project_id:
794
- raise MissingRequirementException("Project ID must be specified.")
795
-
796
717
  if not (name and access_scope and public_name):
797
718
  raise MissingRequirementException("Cannot update assistant without specifying name, access scope and public name")
798
719
 
@@ -821,7 +742,6 @@ def update_agent(option_list: list):
821
742
 
822
743
  client = AgentClient()
823
744
  result = client.update_agent(
824
- project_id=project_id,
825
745
  agent_id=agent_id,
826
746
  name=name,
827
747
  access_scope=access_scope,
@@ -831,6 +751,7 @@ def update_agent(option_list: list):
831
751
  description=description,
832
752
  agent_data_prompt=agent_data_prompt,
833
753
  agent_data_llm_config=agent_data_llm_config,
754
+ agent_data_strategy_name=agent_data_strategy_name,
834
755
  agent_data_models=agent_data_models,
835
756
  agent_data_resource_pools=agent_data_resource_pools,
836
757
  automatic_publish=automatic_publish,
@@ -840,12 +761,6 @@ def update_agent(option_list: list):
840
761
 
841
762
 
842
763
  update_agent_options = [
843
- Option(
844
- "project_id",
845
- ["--project-id", "--pid"],
846
- "Unique identifier of the project where the agent will be created",
847
- True
848
- ),
849
764
  Option(
850
765
  "agent_id",
851
766
  ["--agent-id", "--aid"],
@@ -943,6 +858,12 @@ update_agent_options = [
943
858
  "TopP sampling parameter for LLM (currently unused)",
944
859
  True
945
860
  ),
861
+ Option(
862
+ "agent_data_strategy_name",
863
+ ["--agent-data-strategy-name", "--strategy-name"],
864
+ "Name of the reasoning strategy to use",
865
+ True
866
+ ),
946
867
  Option(
947
868
  "agent_data_model_name",
948
869
  ["--agent-data-model-name", "--adm-name"],
@@ -973,7 +894,6 @@ update_agent_options = [
973
894
 
974
895
 
975
896
  def create_tool(option_list: list):
976
- project_id = None
977
897
  name = None
978
898
  description = None
979
899
  scope = None
@@ -987,8 +907,6 @@ def create_tool(option_list: list):
987
907
  automatic_publish = False
988
908
 
989
909
  for option_flag, option_arg in option_list:
990
- if option_flag.name == "project_id":
991
- project_id = option_arg
992
910
  if option_flag.name == "name":
993
911
  name = option_arg
994
912
  if option_flag.name == "description":
@@ -1030,8 +948,6 @@ def create_tool(option_list: list):
1030
948
  if option_flag.name == "automatic_publish":
1031
949
  automatic_publish = get_boolean_value(option_arg)
1032
950
 
1033
- if not project_id:
1034
- raise MissingRequirementException("Project ID must be specified.")
1035
951
  if not name:
1036
952
  raise MissingRequirementException("Tool name must be specified.")
1037
953
  if access_scope == "public" and not public_name:
@@ -1045,7 +961,6 @@ def create_tool(option_list: list):
1045
961
 
1046
962
  client = ToolClient()
1047
963
  result = client.create_tool(
1048
- project_id=project_id,
1049
964
  name=name,
1050
965
  description=description,
1051
966
  scope=scope,
@@ -1062,12 +977,6 @@ def create_tool(option_list: list):
1062
977
 
1063
978
 
1064
979
  create_tool_options = [
1065
- Option(
1066
- "project_id",
1067
- ["--project-id", "--pid"],
1068
- "Unique identifier of the project where the tool will be created",
1069
- True
1070
- ),
1071
980
  Option(
1072
981
  "name",
1073
982
  ["--name", "-n"],
@@ -1138,7 +1047,6 @@ create_tool_options = [
1138
1047
 
1139
1048
 
1140
1049
  def list_tools(option_list: list):
1141
- project_id = None
1142
1050
  id = ""
1143
1051
  count = "100"
1144
1052
  access_scope = "public"
@@ -1147,8 +1055,6 @@ def list_tools(option_list: list):
1147
1055
  allow_external = True
1148
1056
 
1149
1057
  for option_flag, option_arg in option_list:
1150
- if option_flag.name == "project_id":
1151
- project_id = option_arg
1152
1058
  if option_flag.name == "id":
1153
1059
  id = option_arg
1154
1060
  if option_flag.name == "count":
@@ -1162,15 +1068,11 @@ def list_tools(option_list: list):
1162
1068
  if option_flag.name == "allow_external":
1163
1069
  allow_external = get_boolean_value(option_arg)
1164
1070
 
1165
- if not project_id:
1166
- raise MissingRequirementException("Project ID must be specified.")
1167
-
1168
1071
  if scope and scope not in VALID_SCOPES:
1169
1072
  raise ValueError(f"Scope must be one of {', '.join(VALID_SCOPES)}.")
1170
1073
 
1171
1074
  client = ToolClient()
1172
1075
  result = client.list_tools(
1173
- project_id=project_id,
1174
1076
  id=id,
1175
1077
  count=count,
1176
1078
  access_scope=access_scope,
@@ -1182,12 +1084,6 @@ def list_tools(option_list: list):
1182
1084
 
1183
1085
 
1184
1086
  list_tools_options = [
1185
- Option(
1186
- "project_id",
1187
- ["--project-id", "--pid"],
1188
- "ID of the project",
1189
- True
1190
- ),
1191
1087
  Option(
1192
1088
  "id",
1193
1089
  ["--id"],
@@ -1228,15 +1124,12 @@ list_tools_options = [
1228
1124
 
1229
1125
 
1230
1126
  def get_tool(option_list: list):
1231
- project_id = None
1232
1127
  tool_id = None
1233
1128
  revision = 0
1234
1129
  version = 0
1235
1130
  allow_drafts = True
1236
1131
 
1237
1132
  for option_flag, option_arg in option_list:
1238
- if option_flag.name == "project_id":
1239
- project_id = option_arg
1240
1133
  if option_flag.name == "tool_id":
1241
1134
  tool_id = option_arg
1242
1135
  if option_flag.name == "revision":
@@ -1246,12 +1139,11 @@ def get_tool(option_list: list):
1246
1139
  if option_flag.name == "allow_drafts":
1247
1140
  allow_drafts = get_boolean_value(option_arg)
1248
1141
 
1249
- if not (project_id and tool_id):
1250
- raise MissingRequirementException("Project ID and Tool id must be specified.")
1142
+ if not tool_id:
1143
+ raise MissingRequirementException("Tool ID must be specified.")
1251
1144
 
1252
1145
  client = ToolClient()
1253
1146
  result = client.get_tool(
1254
- project_id=project_id,
1255
1147
  tool_id=tool_id,
1256
1148
  revision=revision,
1257
1149
  version=version,
@@ -1261,12 +1153,6 @@ def get_tool(option_list: list):
1261
1153
 
1262
1154
 
1263
1155
  get_tool_options = [
1264
- Option(
1265
- "project_id",
1266
- ["--project-id", "--pid"],
1267
- "ID of the project",
1268
- True
1269
- ),
1270
1156
  Option(
1271
1157
  "tool_id",
1272
1158
  ["--tool-id", "--tid"],
@@ -1295,25 +1181,21 @@ get_tool_options = [
1295
1181
 
1296
1182
 
1297
1183
  def export_tool(option_list: list):
1298
- project_id = None
1299
1184
  tool_id = None
1300
1185
  file = None
1301
1186
 
1302
1187
  for option_flag, option_arg in option_list:
1303
- if option_flag.name == "project_id":
1304
- project_id = option_arg
1305
1188
  if option_flag.name == "tool_id":
1306
1189
  tool_id = option_arg
1307
1190
  if option_flag.name == "file":
1308
1191
  file = option_arg
1309
1192
 
1310
1193
 
1311
- if not (project_id and tool_id):
1312
- raise MissingRequirementException("Project ID and Tool id must be specified.")
1194
+ if not tool_id:
1195
+ raise MissingRequirementException("Tool ID must be specified.")
1313
1196
 
1314
1197
  client = ToolClient()
1315
1198
  result = client.export_tool(
1316
- project_id=project_id,
1317
1199
  tool_id=tool_id,
1318
1200
  )
1319
1201
  Console.write_stdout(f"Tool spec: \n{result}")
@@ -1330,12 +1212,6 @@ def export_tool(option_list: list):
1330
1212
 
1331
1213
 
1332
1214
  export_tool_options = [
1333
- Option(
1334
- "project_id",
1335
- ["--project-id", "--pid"],
1336
- "ID of the project",
1337
- True
1338
- ),
1339
1215
  Option(
1340
1216
  "tool_id",
1341
1217
  ["--tool-id", "--tid"],
@@ -1353,24 +1229,20 @@ export_tool_options = [
1353
1229
 
1354
1230
 
1355
1231
  def delete_tool(option_list: list):
1356
- project_id = None
1357
1232
  tool_id = None
1358
1233
  tool_name = None
1359
1234
 
1360
1235
  for option_flag, option_arg in option_list:
1361
- if option_flag.name == "project_id":
1362
- project_id = option_arg
1363
- elif option_flag.name == "tool_id":
1236
+ if option_flag.name == "tool_id":
1364
1237
  tool_id = option_arg
1365
1238
  elif option_flag.name == "tool_name":
1366
1239
  tool_name = option_arg
1367
1240
 
1368
- if not project_id or not (tool_id or tool_name):
1369
- raise MissingRequirementException("Project ID and either Tool ID or Tool Name must be specified.")
1241
+ if not (tool_id or tool_name):
1242
+ raise MissingRequirementException("Either Tool ID or Tool Name must be specified.")
1370
1243
 
1371
1244
  client = ToolClient()
1372
1245
  result = client.delete_tool(
1373
- project_id=project_id,
1374
1246
  tool_id=tool_id,
1375
1247
  tool_name=tool_name
1376
1248
  )
@@ -1378,12 +1250,6 @@ def delete_tool(option_list: list):
1378
1250
 
1379
1251
 
1380
1252
  delete_tool_options = [
1381
- Option(
1382
- "project_id",
1383
- ["--project-id", "--pid"],
1384
- "ID of the project",
1385
- True
1386
- ),
1387
1253
  Option(
1388
1254
  "tool_id",
1389
1255
  ["--tool-id", "--tid"],
@@ -1400,7 +1266,6 @@ delete_tool_options = [
1400
1266
 
1401
1267
 
1402
1268
  def update_tool(option_list: list):
1403
- project_id = None
1404
1269
  tool_id = None
1405
1270
  name = None
1406
1271
  description = None
@@ -1416,8 +1281,6 @@ def update_tool(option_list: list):
1416
1281
  upsert = False
1417
1282
 
1418
1283
  for option_flag, option_arg in option_list:
1419
- if option_flag.name == "project_id":
1420
- project_id = option_arg
1421
1284
  if option_flag.name == "tool_id":
1422
1285
  tool_id = option_arg
1423
1286
  if option_flag.name == "name":
@@ -1463,8 +1326,6 @@ def update_tool(option_list: list):
1463
1326
  if option_flag.name == "upsert":
1464
1327
  upsert = get_boolean_value(option_arg)
1465
1328
 
1466
- if not project_id:
1467
- raise MissingRequirementException("Project ID must be specified.")
1468
1329
  if not tool_id:
1469
1330
  raise MissingRequirementException("Tool ID must be specified.")
1470
1331
  if access_scope == "public" and not public_name:
@@ -1478,7 +1339,6 @@ def update_tool(option_list: list):
1478
1339
 
1479
1340
  client = ToolClient()
1480
1341
  result = client.update_tool(
1481
- project_id=project_id,
1482
1342
  tool_id=tool_id,
1483
1343
  name=name,
1484
1344
  description=description,
@@ -1497,12 +1357,6 @@ def update_tool(option_list: list):
1497
1357
 
1498
1358
 
1499
1359
  update_tool_options = [
1500
- Option(
1501
- "project_id",
1502
- ["--project-id", "--pid"],
1503
- "Unique identifier of the project containing the tool",
1504
- True
1505
- ),
1506
1360
  Option(
1507
1361
  "tool_id",
1508
1362
  ["--tool-id", "--tid"],
@@ -1585,24 +1439,20 @@ update_tool_options = [
1585
1439
 
1586
1440
 
1587
1441
  def publish_tool_revision(option_list: list):
1588
- project_id = None
1589
1442
  tool_id = None
1590
1443
  revision = None
1591
1444
 
1592
1445
  for option_flag, option_arg in option_list:
1593
- if option_flag.name == "project_id":
1594
- project_id = option_arg
1595
1446
  if option_flag.name == "tool_id":
1596
1447
  tool_id = option_arg
1597
1448
  if option_flag.name == "revision":
1598
1449
  revision = option_arg
1599
1450
 
1600
- if not (project_id and tool_id and revision):
1601
- raise MissingRequirementException("Project ID, Tool ID and revision must be specified.")
1451
+ if not (tool_id and revision):
1452
+ raise MissingRequirementException("Tool ID and revision must be specified.")
1602
1453
 
1603
1454
  client = ToolClient()
1604
1455
  result = client.publish_tool_revision(
1605
- project_id=project_id,
1606
1456
  tool_id=tool_id,
1607
1457
  revision=revision
1608
1458
  )
@@ -1610,12 +1460,6 @@ def publish_tool_revision(option_list: list):
1610
1460
 
1611
1461
 
1612
1462
  publish_tool_revision_options = [
1613
- Option(
1614
- "project_id",
1615
- ["--project-id", "--pid"],
1616
- "ID of the project",
1617
- True
1618
- ),
1619
1463
  Option(
1620
1464
  "tool_id",
1621
1465
  ["--tool-id", "--tid"],
@@ -1632,7 +1476,6 @@ publish_tool_revision_options = [
1632
1476
 
1633
1477
 
1634
1478
  def get_parameter(option_list: list):
1635
- project_id = None
1636
1479
  tool_id = None
1637
1480
  tool_public_name = None
1638
1481
  allow_drafts = True
@@ -1640,8 +1483,6 @@ def get_parameter(option_list: list):
1640
1483
  version = 0
1641
1484
 
1642
1485
  for option_flag, option_arg in option_list:
1643
- if option_flag.name == "project_id":
1644
- project_id = option_arg
1645
1486
  if option_flag.name == "tool_id":
1646
1487
  tool_id = option_arg
1647
1488
  if option_flag.name == "tool_public_name":
@@ -1653,12 +1494,11 @@ def get_parameter(option_list: list):
1653
1494
  if option_flag.name == "version":
1654
1495
  version = option_arg
1655
1496
 
1656
- if not (project_id and (tool_public_name or tool_id)):
1657
- raise MissingRequirementException("Project ID and Tool public name or ID must be specified.")
1497
+ if not (tool_public_name or tool_id):
1498
+ raise MissingRequirementException("Tool public name or ID must be specified.")
1658
1499
 
1659
1500
  client = ToolClient()
1660
1501
  result = client.get_parameter(
1661
- project_id=project_id,
1662
1502
  tool_id=tool_id,
1663
1503
  tool_public_name=tool_public_name,
1664
1504
  revision=revision,
@@ -1669,12 +1509,6 @@ def get_parameter(option_list: list):
1669
1509
 
1670
1510
 
1671
1511
  get_parameter_options = [
1672
- Option(
1673
- "project_id",
1674
- ["--project-id", "--pid"],
1675
- "ID of the project",
1676
- True
1677
- ),
1678
1512
  Option(
1679
1513
  "tool_id",
1680
1514
  ["--tool-id", "--tid"],
@@ -1709,14 +1543,11 @@ get_parameter_options = [
1709
1543
 
1710
1544
 
1711
1545
  def set_parameter(option_list: list):
1712
- project_id = None
1713
1546
  tool_public_name = None
1714
1547
  tool_id = None
1715
1548
  parameters = list()
1716
1549
 
1717
1550
  for option_flag, option_arg in option_list:
1718
- if option_flag.name == "project_id":
1719
- project_id = option_arg
1720
1551
  if option_flag.name == "tool_id":
1721
1552
  tool_id = option_arg
1722
1553
  if option_flag.name == "tool_public_name":
@@ -1736,8 +1567,6 @@ def set_parameter(option_list: list):
1736
1567
  "\"isRequired\": true, \"type\": \"config\", \"fromSecret\": false, \"value\": \"config_value\"}'"
1737
1568
  )
1738
1569
 
1739
- if not project_id:
1740
- raise MissingRequirementException("Project ID must be specified.")
1741
1570
  if not (tool_public_name or tool_id):
1742
1571
  raise MissingRequirementException("Tool public name or ID must be specified.")
1743
1572
  if not parameters:
@@ -1747,7 +1576,6 @@ def set_parameter(option_list: list):
1747
1576
 
1748
1577
  client = ToolClient()
1749
1578
  result = client.set_parameter(
1750
- project_id=project_id,
1751
1579
  tool_id=tool_id,
1752
1580
  tool_public_name=tool_public_name,
1753
1581
  parameters=tool_parameters
@@ -1756,12 +1584,6 @@ def set_parameter(option_list: list):
1756
1584
 
1757
1585
 
1758
1586
  set_parameter_options = [
1759
- Option(
1760
- "project_id",
1761
- ["--project-id", "--pid"],
1762
- "ID of the project",
1763
- True
1764
- ),
1765
1587
  Option(
1766
1588
  "tool_id",
1767
1589
  ["--tool-id", "--tid"],
@@ -1860,7 +1682,6 @@ list_reasoning_strategies_options = [
1860
1682
 
1861
1683
 
1862
1684
  def create_reasoning_strategy(option_list: list):
1863
- project_id = None
1864
1685
  name = None
1865
1686
  system_prompt = None
1866
1687
  access_scope = "public"
@@ -1869,8 +1690,6 @@ def create_reasoning_strategy(option_list: list):
1869
1690
  automatic_publish = False
1870
1691
 
1871
1692
  for option_flag, option_arg in option_list:
1872
- if option_flag.name == "project_id":
1873
- project_id = option_arg
1874
1693
  if option_flag.name == "name":
1875
1694
  name = option_arg
1876
1695
  if option_flag.name == "system_prompt":
@@ -1893,8 +1712,6 @@ def create_reasoning_strategy(option_list: list):
1893
1712
  if option_flag.name == "automatic_publish":
1894
1713
  automatic_publish = get_boolean_value(option_arg)
1895
1714
 
1896
- if not project_id:
1897
- raise MissingRequirementException("Project ID must be specified.")
1898
1715
  if not name:
1899
1716
  raise MissingRequirementException("Name must be specified.")
1900
1717
  if not system_prompt:
@@ -1914,7 +1731,6 @@ def create_reasoning_strategy(option_list: list):
1914
1731
 
1915
1732
  client = ReasoningStrategyClient()
1916
1733
  result = client.create_reasoning_strategy(
1917
- project_id=project_id,
1918
1734
  name=name,
1919
1735
  system_prompt=system_prompt,
1920
1736
  access_scope=access_scope,
@@ -1926,12 +1742,6 @@ def create_reasoning_strategy(option_list: list):
1926
1742
 
1927
1743
 
1928
1744
  create_reasoning_strategy_options = [
1929
- Option(
1930
- "project_id",
1931
- ["--project-id", "--pid"],
1932
- "ID of the project",
1933
- True
1934
- ),
1935
1745
  Option(
1936
1746
  "name",
1937
1747
  ["--name", "-n"],
@@ -1974,7 +1784,6 @@ create_reasoning_strategy_options = [
1974
1784
 
1975
1785
 
1976
1786
  def update_reasoning_strategy(option_list: list):
1977
- project_id = None
1978
1787
  reasoning_strategy_id = None
1979
1788
  name = None
1980
1789
  system_prompt = None
@@ -1985,8 +1794,6 @@ def update_reasoning_strategy(option_list: list):
1985
1794
  upsert = False
1986
1795
 
1987
1796
  for option_flag, option_arg in option_list:
1988
- if option_flag.name == "project_id":
1989
- project_id = option_arg
1990
1797
  if option_flag.name == "reasoning_strategy_id":
1991
1798
  reasoning_strategy_id = option_arg
1992
1799
  if option_flag.name == "name":
@@ -2014,8 +1821,6 @@ def update_reasoning_strategy(option_list: list):
2014
1821
  # upsert = get_boolean_value(option_arg)
2015
1822
  Console.write_stdout("Upsert is not yet supported for reasoning strategies. Coming soon.")
2016
1823
 
2017
- if not project_id:
2018
- raise MissingRequirementException("Project ID must be specified.")
2019
1824
  if not reasoning_strategy_id:
2020
1825
  raise MissingRequirementException("Reasoning strategy ID must be specified.")
2021
1826
 
@@ -2035,7 +1840,6 @@ def update_reasoning_strategy(option_list: list):
2035
1840
 
2036
1841
  client = ReasoningStrategyClient()
2037
1842
  result = client.update_reasoning_strategy(
2038
- project_id=project_id,
2039
1843
  reasoning_strategy_id=reasoning_strategy_id,
2040
1844
  name=name,
2041
1845
  system_prompt=system_prompt,
@@ -2049,12 +1853,6 @@ def update_reasoning_strategy(option_list: list):
2049
1853
 
2050
1854
 
2051
1855
  update_reasoning_strategy_options = [
2052
- Option(
2053
- "project_id",
2054
- ["--project-id", "--pid"],
2055
- "ID of the project",
2056
- True
2057
- ),
2058
1856
  Option(
2059
1857
  "reasoning_strategy_id",
2060
1858
  ["--reasoning-strategy-id", "--rsid"],
@@ -2109,26 +1907,20 @@ update_reasoning_strategy_options = [
2109
1907
 
2110
1908
 
2111
1909
  def get_reasoning_strategy(option_list: list):
2112
- project_id = None
2113
1910
  reasoning_strategy_id = None
2114
1911
  reasoning_strategy_name = None
2115
1912
 
2116
1913
  for option_flag, option_arg in option_list:
2117
- if option_flag.name == "project_id":
2118
- project_id = option_arg
2119
1914
  if option_flag.name == "reasoning_strategy_id":
2120
1915
  reasoning_strategy_id = option_arg
2121
1916
  if option_flag.name == "reasoning_strategy_name":
2122
1917
  reasoning_strategy_name = option_arg
2123
1918
 
2124
- if not project_id:
2125
- raise MissingRequirementException("Project ID must be specified.")
2126
1919
  if not (reasoning_strategy_id or reasoning_strategy_name):
2127
1920
  raise MissingRequirementException("Either reasoning strategy ID or name must be specified.")
2128
1921
 
2129
1922
  client = ReasoningStrategyClient()
2130
1923
  result = client.get_reasoning_strategy(
2131
- project_id=project_id,
2132
1924
  reasoning_strategy_id=reasoning_strategy_id,
2133
1925
  reasoning_strategy_name=reasoning_strategy_name
2134
1926
  )
@@ -2136,12 +1928,6 @@ def get_reasoning_strategy(option_list: list):
2136
1928
 
2137
1929
 
2138
1930
  get_reasoning_strategy_options = [
2139
- Option(
2140
- "project_id",
2141
- ["--project-id", "--pid"],
2142
- "ID of the project",
2143
- True
2144
- ),
2145
1931
  Option(
2146
1932
  "reasoning_strategy_id",
2147
1933
  ["--reasoning-strategy-id", "--rsid"],
@@ -2161,7 +1947,6 @@ get_reasoning_strategy_options = [
2161
1947
 
2162
1948
 
2163
1949
  def create_process(option_list: list):
2164
- project_id = None
2165
1950
  key = None
2166
1951
  name = None
2167
1952
  description = None
@@ -2175,8 +1960,6 @@ def create_process(option_list: list):
2175
1960
  automatic_publish = False
2176
1961
 
2177
1962
  for option_flag, option_arg in option_list:
2178
- if option_flag.name == "project_id":
2179
- project_id = option_arg
2180
1963
  if option_flag.name == "key":
2181
1964
  key = option_arg
2182
1965
  if option_flag.name == "name":
@@ -2264,8 +2047,6 @@ def create_process(option_list: list):
2264
2047
  if option_flag.name == "automatic_publish":
2265
2048
  automatic_publish = get_boolean_value(option_arg)
2266
2049
 
2267
- if not project_id:
2268
- raise MissingRequirementException("Project ID must be specified.")
2269
2050
  if not key:
2270
2051
  raise MissingRequirementException("Key must be specified.")
2271
2052
  if not name:
@@ -2273,7 +2054,6 @@ def create_process(option_list: list):
2273
2054
 
2274
2055
  client = AgenticProcessClient()
2275
2056
  result = client.create_process(
2276
- project_id=project_id,
2277
2057
  key=key,
2278
2058
  name=name,
2279
2059
  description=description,
@@ -2290,12 +2070,6 @@ def create_process(option_list: list):
2290
2070
 
2291
2071
 
2292
2072
  create_process_options = [
2293
- Option(
2294
- "project_id",
2295
- ["--project-id", "--pid"],
2296
- "ID of the project",
2297
- True
2298
- ),
2299
2073
  Option(
2300
2074
  "key",
2301
2075
  ["--key", "-k"],
@@ -2380,7 +2154,6 @@ create_process_options = [
2380
2154
 
2381
2155
 
2382
2156
  def update_process(option_list: list):
2383
- project_id = None
2384
2157
  process_id = None
2385
2158
  name = None
2386
2159
  key = None
@@ -2396,8 +2169,6 @@ def update_process(option_list: list):
2396
2169
  upsert = False
2397
2170
 
2398
2171
  for option_flag, option_arg in option_list:
2399
- if option_flag.name == "project_id":
2400
- project_id = option_arg
2401
2172
  if option_flag.name == "process_id":
2402
2173
  process_id = option_arg
2403
2174
  if option_flag.name == "name":
@@ -2489,14 +2260,11 @@ def update_process(option_list: list):
2489
2260
  if option_flag.name == "upsert":
2490
2261
  upsert = get_boolean_value(option_arg)
2491
2262
 
2492
- if not project_id:
2493
- raise MissingRequirementException("Project ID must be specified.")
2494
2263
  if not (process_id or name):
2495
2264
  raise MissingRequirementException("Either process ID or name must be specified.")
2496
2265
 
2497
2266
  client = AgenticProcessClient()
2498
2267
  result = client.update_process(
2499
- project_id=project_id,
2500
2268
  process_id=process_id,
2501
2269
  name=name,
2502
2270
  key=key,
@@ -2515,12 +2283,6 @@ def update_process(option_list: list):
2515
2283
 
2516
2284
 
2517
2285
  update_process_options = [
2518
- Option(
2519
- "project_id",
2520
- ["--project-id", "--pid"],
2521
- "ID of the project",
2522
- True
2523
- ),
2524
2286
  Option(
2525
2287
  "process_id",
2526
2288
  ["--process-id", "--pid"],
@@ -2617,7 +2379,6 @@ update_process_options = [
2617
2379
 
2618
2380
 
2619
2381
  def get_process(option_list: list):
2620
- project_id = None
2621
2382
  process_id = None
2622
2383
  process_name = None
2623
2384
  revision = "0"
@@ -2625,8 +2386,6 @@ def get_process(option_list: list):
2625
2386
  allow_drafts = True
2626
2387
 
2627
2388
  for option_flag, option_arg in option_list:
2628
- if option_flag.name == "project_id":
2629
- project_id = option_arg
2630
2389
  if option_flag.name == "process_id":
2631
2390
  process_id = option_arg
2632
2391
  if option_flag.name == "process_name":
@@ -2638,14 +2397,11 @@ def get_process(option_list: list):
2638
2397
  if option_flag.name == "allow_drafts":
2639
2398
  allow_drafts = get_boolean_value(option_arg)
2640
2399
 
2641
- if not project_id:
2642
- raise MissingRequirementException("Project ID must be specified.")
2643
2400
  if not (process_id or process_name):
2644
2401
  raise MissingRequirementException("Either process ID or process name must be specified.")
2645
2402
 
2646
2403
  client = AgenticProcessClient()
2647
2404
  result = client.get_process(
2648
- project_id=project_id,
2649
2405
  process_id=process_id,
2650
2406
  process_name=process_name,
2651
2407
  revision=revision,
@@ -2656,12 +2412,6 @@ def get_process(option_list: list):
2656
2412
 
2657
2413
 
2658
2414
  get_process_options = [
2659
- Option(
2660
- "project_id",
2661
- ["--project-id", "--pid"],
2662
- "ID of the project",
2663
- True
2664
- ),
2665
2415
  Option(
2666
2416
  "process_id",
2667
2417
  ["--process-id", "--pid"],
@@ -2696,7 +2446,6 @@ get_process_options = [
2696
2446
 
2697
2447
 
2698
2448
  def list_processes(option_list: list):
2699
- project_id = None
2700
2449
  id = None
2701
2450
  name = None
2702
2451
  status = None
@@ -2705,8 +2454,6 @@ def list_processes(option_list: list):
2705
2454
  allow_draft = True
2706
2455
 
2707
2456
  for option_flag, option_arg in option_list:
2708
- if option_flag.name == "project_id":
2709
- project_id = option_arg
2710
2457
  if option_flag.name == "id":
2711
2458
  id = option_arg
2712
2459
  if option_flag.name == "name":
@@ -2720,12 +2467,8 @@ def list_processes(option_list: list):
2720
2467
  if option_flag.name == "allow_draft":
2721
2468
  allow_draft = get_boolean_value(option_arg)
2722
2469
 
2723
- if not project_id:
2724
- raise MissingRequirementException("Project ID must be specified.")
2725
-
2726
2470
  client = AgenticProcessClient()
2727
2471
  result = client.list_processes(
2728
- project_id=project_id,
2729
2472
  id=id,
2730
2473
  name=name,
2731
2474
  status=status,
@@ -2737,12 +2480,6 @@ def list_processes(option_list: list):
2737
2480
 
2738
2481
 
2739
2482
  list_processes_options = [
2740
- Option(
2741
- "project_id",
2742
- ["--project-id", "--pid"],
2743
- "ID of the project",
2744
- True
2745
- ),
2746
2483
  Option(
2747
2484
  "id",
2748
2485
  ["--id"],
@@ -2783,15 +2520,12 @@ list_processes_options = [
2783
2520
 
2784
2521
 
2785
2522
  def list_processes_instances(option_list: list):
2786
- project_id = None
2787
2523
  process_id = None
2788
2524
  is_active = True
2789
2525
  start = "0"
2790
2526
  count = "10"
2791
2527
 
2792
2528
  for option_flag, option_arg in option_list:
2793
- if option_flag.name == "project_id":
2794
- project_id = option_arg
2795
2529
  if option_flag.name == "process_id":
2796
2530
  process_id = option_arg
2797
2531
  if option_flag.name == "is_active":
@@ -2801,14 +2535,11 @@ def list_processes_instances(option_list: list):
2801
2535
  if option_flag.name == "count":
2802
2536
  count = option_arg
2803
2537
 
2804
- if not project_id:
2805
- raise MissingRequirementException("Project ID must be specified.")
2806
2538
  if not process_id:
2807
2539
  raise MissingRequirementException("Process ID must be specified.")
2808
2540
 
2809
2541
  client = AgenticProcessClient()
2810
2542
  result = client.list_process_instances(
2811
- project_id=project_id,
2812
2543
  process_id=process_id,
2813
2544
  is_active=is_active,
2814
2545
  start=start,
@@ -2818,12 +2549,6 @@ def list_processes_instances(option_list: list):
2818
2549
 
2819
2550
 
2820
2551
  list_processes_instances_options = [
2821
- Option(
2822
- "project_id",
2823
- ["--project-id", "--pid"],
2824
- "ID of the project",
2825
- True
2826
- ),
2827
2552
  Option(
2828
2553
  "process_id",
2829
2554
  ["--process-id", "--pid"],
@@ -2852,26 +2577,20 @@ list_processes_instances_options = [
2852
2577
 
2853
2578
 
2854
2579
  def delete_process(option_list: list):
2855
- project_id = None
2856
2580
  process_id = None
2857
2581
  process_name = None
2858
2582
 
2859
2583
  for option_flag, option_arg in option_list:
2860
- if option_flag.name == "project_id":
2861
- project_id = option_arg
2862
2584
  if option_flag.name == "process_id":
2863
2585
  process_id = option_arg
2864
2586
  if option_flag.name == "process_name":
2865
2587
  process_name = option_arg
2866
2588
 
2867
- if not project_id:
2868
- raise MissingRequirementException("Project ID must be specified.")
2869
2589
  if not (process_id or process_name):
2870
2590
  raise MissingRequirementException("Either process ID or process name must be specified.")
2871
2591
 
2872
2592
  client = AgenticProcessClient()
2873
2593
  result = client.delete_process(
2874
- project_id=project_id,
2875
2594
  process_id=process_id,
2876
2595
  process_name=process_name
2877
2596
  )
@@ -2879,12 +2598,6 @@ def delete_process(option_list: list):
2879
2598
 
2880
2599
 
2881
2600
  delete_process_options = [
2882
- Option(
2883
- "project_id",
2884
- ["--project-id", "--pid"],
2885
- "ID of the project",
2886
- True
2887
- ),
2888
2601
  Option(
2889
2602
  "process_id",
2890
2603
  ["--process-id", "--pid"],
@@ -2901,14 +2614,11 @@ delete_process_options = [
2901
2614
 
2902
2615
 
2903
2616
  def publish_process_revision(option_list: list):
2904
- project_id = None
2905
2617
  process_id = None
2906
2618
  process_name = None
2907
2619
  revision = None
2908
2620
 
2909
2621
  for option_flag, option_arg in option_list:
2910
- if option_flag.name == "project_id":
2911
- project_id = option_arg
2912
2622
  if option_flag.name == "process_id":
2913
2623
  process_id = option_arg
2914
2624
  if option_flag.name == "process_name":
@@ -2916,8 +2626,6 @@ def publish_process_revision(option_list: list):
2916
2626
  if option_flag.name == "revision":
2917
2627
  revision = option_arg
2918
2628
 
2919
- if not project_id:
2920
- raise MissingRequirementException("Project ID must be specified.")
2921
2629
  if not (process_id or process_name):
2922
2630
  raise MissingRequirementException("Either process ID or process name must be specified.")
2923
2631
  if not revision:
@@ -2925,7 +2633,6 @@ def publish_process_revision(option_list: list):
2925
2633
 
2926
2634
  client = AgenticProcessClient()
2927
2635
  result = client.publish_process_revision(
2928
- project_id=project_id,
2929
2636
  process_id=process_id,
2930
2637
  process_name=process_name,
2931
2638
  revision=revision
@@ -2934,12 +2641,6 @@ def publish_process_revision(option_list: list):
2934
2641
 
2935
2642
 
2936
2643
  publish_process_revision_options = [
2937
- Option(
2938
- "project_id",
2939
- ["--project-id", "--pid"],
2940
- "ID of the project",
2941
- True
2942
- ),
2943
2644
  Option(
2944
2645
  "process_id",
2945
2646
  ["--process-id", "--pid"],
@@ -2965,7 +2666,6 @@ publish_process_revision_options = [
2965
2666
 
2966
2667
 
2967
2668
  def create_task(option_list: list):
2968
- project_id = None
2969
2669
  name = None
2970
2670
  description = None
2971
2671
  title_template = None
@@ -2975,8 +2675,6 @@ def create_task(option_list: list):
2975
2675
  automatic_publish = False
2976
2676
 
2977
2677
  for option_flag, option_arg in option_list:
2978
- if option_flag.name == "project_id":
2979
- project_id = option_arg
2980
2678
  if option_flag.name == "name":
2981
2679
  name = option_arg
2982
2680
  if option_flag.name == "description":
@@ -3002,14 +2700,11 @@ def create_task(option_list: list):
3002
2700
  if option_flag.name == "automatic_publish":
3003
2701
  automatic_publish = get_boolean_value(option_arg)
3004
2702
 
3005
- if not project_id:
3006
- raise MissingRequirementException("Project ID must be specified.")
3007
2703
  if not name:
3008
2704
  raise MissingRequirementException("Task name must be specified.")
3009
2705
 
3010
2706
  client = AgenticProcessClient()
3011
2707
  result = client.create_task(
3012
- project_id=project_id,
3013
2708
  name=name,
3014
2709
  description=description,
3015
2710
  title_template=title_template,
@@ -3022,12 +2717,6 @@ def create_task(option_list: list):
3022
2717
 
3023
2718
 
3024
2719
  create_task_options = [
3025
- Option(
3026
- "project_id",
3027
- ["--project-id", "--pid"],
3028
- "ID of the project",
3029
- True
3030
- ),
3031
2720
  Option(
3032
2721
  "name",
3033
2722
  ["--name", "-n"],
@@ -3074,26 +2763,20 @@ create_task_options = [
3074
2763
 
3075
2764
 
3076
2765
  def get_task(option_list: list):
3077
- project_id = None
3078
2766
  task_id = None
3079
2767
  task_name = None
3080
2768
 
3081
2769
  for option_flag, option_arg in option_list:
3082
- if option_flag.name == "project_id":
3083
- project_id = option_arg
3084
2770
  if option_flag.name == "task_id":
3085
2771
  task_id = option_arg
3086
2772
  if option_flag.name == "task_name":
3087
2773
  task_name = option_arg
3088
2774
 
3089
- if not project_id:
3090
- raise MissingRequirementException("Project ID must be specified.")
3091
2775
  if not (task_id or task_name):
3092
2776
  raise MissingRequirementException("Either task ID or task name must be specified.")
3093
2777
 
3094
2778
  client = AgenticProcessClient()
3095
2779
  result = client.get_task(
3096
- project_id=project_id,
3097
2780
  task_id=task_id,
3098
2781
  task_name=task_name
3099
2782
  )
@@ -3101,12 +2784,6 @@ def get_task(option_list: list):
3101
2784
 
3102
2785
 
3103
2786
  get_task_options = [
3104
- Option(
3105
- "project_id",
3106
- ["--project-id", "--pid"],
3107
- "ID of the project",
3108
- True
3109
- ),
3110
2787
  Option(
3111
2788
  "task_id",
3112
2789
  ["--task-id", "--tid"],
@@ -3123,15 +2800,12 @@ get_task_options = [
3123
2800
 
3124
2801
 
3125
2802
  def list_tasks(option_list: list):
3126
- project_id = None
3127
2803
  id = None
3128
2804
  start = "0"
3129
2805
  count = "100"
3130
2806
  allow_drafts = True
3131
2807
 
3132
2808
  for option_flag, option_arg in option_list:
3133
- if option_flag.name == "project_id":
3134
- project_id = option_arg
3135
2809
  if option_flag.name == "id":
3136
2810
  id = option_arg
3137
2811
  if option_flag.name == "start":
@@ -3141,12 +2815,8 @@ def list_tasks(option_list: list):
3141
2815
  if option_flag.name == "allow_drafts":
3142
2816
  allow_drafts = get_boolean_value(option_arg)
3143
2817
 
3144
- if not project_id:
3145
- raise MissingRequirementException("Project ID must be specified.")
3146
-
3147
2818
  client = AgenticProcessClient()
3148
2819
  result = client.list_tasks(
3149
- project_id=project_id,
3150
2820
  id=id,
3151
2821
  start=start,
3152
2822
  count=count,
@@ -3156,12 +2826,6 @@ def list_tasks(option_list: list):
3156
2826
 
3157
2827
 
3158
2828
  list_tasks_options = [
3159
- Option(
3160
- "project_id",
3161
- ["--project-id", "--pid"],
3162
- "ID of the project",
3163
- True
3164
- ),
3165
2829
  Option(
3166
2830
  "id",
3167
2831
  ["--id"],
@@ -3190,7 +2854,6 @@ list_tasks_options = [
3190
2854
 
3191
2855
 
3192
2856
  def update_task(option_list: list):
3193
- project_id = None
3194
2857
  task_id = None
3195
2858
  name = None
3196
2859
  description = None
@@ -3202,8 +2865,6 @@ def update_task(option_list: list):
3202
2865
  upsert = False
3203
2866
 
3204
2867
  for option_flag, option_arg in option_list:
3205
- if option_flag.name == "project_id":
3206
- project_id = option_arg
3207
2868
  if option_flag.name == "task_id":
3208
2869
  task_id = option_arg
3209
2870
  if option_flag.name == "name":
@@ -3233,14 +2894,11 @@ def update_task(option_list: list):
3233
2894
  if option_flag.name == "upsert":
3234
2895
  upsert = get_boolean_value(option_arg)
3235
2896
 
3236
- if not project_id:
3237
- raise MissingRequirementException("Project ID must be specified.")
3238
2897
  if not (task_id or name):
3239
2898
  raise MissingRequirementException("Either task ID or name must be specified.")
3240
2899
 
3241
2900
  client = AgenticProcessClient()
3242
2901
  result = client.update_task(
3243
- project_id=project_id,
3244
2902
  task_id=task_id,
3245
2903
  name=name,
3246
2904
  description=description,
@@ -3255,12 +2913,6 @@ def update_task(option_list: list):
3255
2913
 
3256
2914
 
3257
2915
  update_task_options = [
3258
- Option(
3259
- "project_id",
3260
- ["--project-id", "--pid"],
3261
- "ID of the project",
3262
- True
3263
- ),
3264
2916
  Option(
3265
2917
  "task_id",
3266
2918
  ["--task-id", "--tid"],
@@ -3319,26 +2971,20 @@ update_task_options = [
3319
2971
 
3320
2972
 
3321
2973
  def delete_task(option_list: list):
3322
- project_id = None
3323
2974
  task_id = None
3324
2975
  task_name = None
3325
2976
 
3326
2977
  for option_flag, option_arg in option_list:
3327
- if option_flag.name == "project_id":
3328
- project_id = option_arg
3329
2978
  if option_flag.name == "task_id":
3330
2979
  task_id = option_arg
3331
2980
  if option_flag.name == "task_name":
3332
2981
  task_name = option_arg
3333
2982
 
3334
- if not project_id:
3335
- raise MissingRequirementException("Project ID must be specified.")
3336
2983
  if not (task_id or task_name):
3337
2984
  raise MissingRequirementException("Either task ID or task name must be specified.")
3338
2985
 
3339
2986
  client = AgenticProcessClient()
3340
2987
  result = client.delete_task(
3341
- project_id=project_id,
3342
2988
  task_id=task_id,
3343
2989
  task_name = task_name
3344
2990
  )
@@ -3346,12 +2992,6 @@ def delete_task(option_list: list):
3346
2992
 
3347
2993
 
3348
2994
  delete_task_options = [
3349
- Option(
3350
- "project_id",
3351
- ["--project-id", "--pid"],
3352
- "ID of the project",
3353
- True
3354
- ),
3355
2995
  Option(
3356
2996
  "task_id",
3357
2997
  ["--task-id", "--tid"],
@@ -3368,14 +3008,11 @@ delete_task_options = [
3368
3008
 
3369
3009
 
3370
3010
  def publish_task_revision(option_list: list):
3371
- project_id = None
3372
3011
  task_id = None
3373
3012
  task_name = None
3374
3013
  revision = None
3375
3014
 
3376
3015
  for option_flag, option_arg in option_list:
3377
- if option_flag.name == "project_id":
3378
- project_id = option_arg
3379
3016
  if option_flag.name == "task_id":
3380
3017
  task_id = option_arg
3381
3018
  if option_flag.name == "task_name":
@@ -3383,8 +3020,6 @@ def publish_task_revision(option_list: list):
3383
3020
  if option_flag.name == "revision":
3384
3021
  revision = option_arg
3385
3022
 
3386
- if not project_id:
3387
- raise MissingRequirementException("Project ID must be specified.")
3388
3023
  if not (task_id or task_name):
3389
3024
  raise MissingRequirementException("Either task ID or task name must be specified.")
3390
3025
  if not revision:
@@ -3392,7 +3027,6 @@ def publish_task_revision(option_list: list):
3392
3027
 
3393
3028
  client = AgenticProcessClient()
3394
3029
  result = client.publish_task_revision(
3395
- project_id=project_id,
3396
3030
  task_id=task_id,
3397
3031
  task_name=task_name,
3398
3032
  revision=revision
@@ -3401,12 +3035,6 @@ def publish_task_revision(option_list: list):
3401
3035
 
3402
3036
 
3403
3037
  publish_task_revision_options = [
3404
- Option(
3405
- "project_id",
3406
- ["--project-id", "--pid"],
3407
- "ID of the project",
3408
- True
3409
- ),
3410
3038
  Option(
3411
3039
  "task_id",
3412
3040
  ["--task-id", "--tid"],
@@ -3430,14 +3058,11 @@ publish_task_revision_options = [
3430
3058
 
3431
3059
  # RUNTIME - Process instances
3432
3060
  def start_instance(option_list: list):
3433
- project_id = None
3434
3061
  process_name = None
3435
3062
  subject = None
3436
3063
  variables = None
3437
3064
 
3438
3065
  for option_flag, option_arg in option_list:
3439
- if option_flag.name == "project_id":
3440
- project_id = option_arg
3441
3066
  if option_flag.name == "process_name":
3442
3067
  process_name = option_arg
3443
3068
  if option_flag.name == "subject":
@@ -3452,14 +3077,11 @@ def start_instance(option_list: list):
3452
3077
  "Variables must be a JSON list: '[{\"key\": \"location\", \"value\": \"Paris\"}]'"
3453
3078
  )
3454
3079
 
3455
- if not project_id:
3456
- raise MissingRequirementException("Project ID must be specified.")
3457
3080
  if not process_name:
3458
3081
  raise MissingRequirementException("Process name must be specified.")
3459
3082
 
3460
3083
  client = AgenticProcessClient()
3461
3084
  result = client.start_instance(
3462
- project_id=project_id,
3463
3085
  process_name=process_name,
3464
3086
  subject=subject,
3465
3087
  variables=variables
@@ -3468,12 +3090,6 @@ def start_instance(option_list: list):
3468
3090
 
3469
3091
 
3470
3092
  start_instance_options = [
3471
- Option(
3472
- "project_id",
3473
- ["--project-id", "--pid"],
3474
- "ID of the project",
3475
- True
3476
- ),
3477
3093
  Option(
3478
3094
  "process_name",
3479
3095
  ["--process-name", "--pn"],
@@ -3496,35 +3112,23 @@ start_instance_options = [
3496
3112
 
3497
3113
 
3498
3114
  def abort_instance(option_list: list):
3499
- project_id = None
3500
3115
  instance_id = None
3501
3116
 
3502
3117
  for option_flag, option_arg in option_list:
3503
- if option_flag.name == "project_id":
3504
- project_id = option_arg
3505
3118
  if option_flag.name == "instance_id":
3506
3119
  instance_id = option_arg
3507
3120
 
3508
- if not project_id:
3509
- raise MissingRequirementException("Project ID must be specified.")
3510
3121
  if not instance_id:
3511
3122
  raise MissingRequirementException("Instance ID must be specified.")
3512
3123
 
3513
3124
  client = AgenticProcessClient()
3514
3125
  result = client.abort_instance(
3515
- project_id=project_id,
3516
3126
  instance_id=instance_id
3517
3127
  )
3518
3128
  Console.write_stdout(f"Abort instance result: \n{result}")
3519
3129
 
3520
3130
 
3521
3131
  abort_instance_options = [
3522
- Option(
3523
- "project_id",
3524
- ["--project-id", "--pid"],
3525
- "ID of the project",
3526
- True
3527
- ),
3528
3132
  Option(
3529
3133
  "instance_id",
3530
3134
  ["--instance-id", "--iid"],
@@ -3535,35 +3139,23 @@ abort_instance_options = [
3535
3139
 
3536
3140
 
3537
3141
  def get_instance(option_list: list):
3538
- project_id = None
3539
3142
  instance_id = None
3540
3143
 
3541
3144
  for option_flag, option_arg in option_list:
3542
- if option_flag.name == "project_id":
3543
- project_id = option_arg
3544
3145
  if option_flag.name == "instance_id":
3545
3146
  instance_id = option_arg
3546
3147
 
3547
- if not project_id:
3548
- raise MissingRequirementException("Project ID must be specified.")
3549
3148
  if not instance_id:
3550
3149
  raise MissingRequirementException("Instance ID must be specified.")
3551
3150
 
3552
3151
  client = AgenticProcessClient()
3553
3152
  result = client.get_instance(
3554
- project_id=project_id,
3555
3153
  instance_id=instance_id
3556
3154
  )
3557
3155
  Console.write_stdout(f"Instance detail: \n{result}")
3558
3156
 
3559
3157
 
3560
3158
  get_instance_options = [
3561
- Option(
3562
- "project_id",
3563
- ["--project-id", "--pid"],
3564
- "ID of the project",
3565
- True
3566
- ),
3567
3159
  Option(
3568
3160
  "instance_id",
3569
3161
  ["--instance-id", "--iid"],
@@ -3574,35 +3166,23 @@ get_instance_options = [
3574
3166
 
3575
3167
 
3576
3168
  def get_instance_history(option_list: list):
3577
- project_id = None
3578
3169
  instance_id = None
3579
3170
 
3580
3171
  for option_flag, option_arg in option_list:
3581
- if option_flag.name == "project_id":
3582
- project_id = option_arg
3583
3172
  if option_flag.name == "instance_id":
3584
3173
  instance_id = option_arg
3585
3174
 
3586
- if not project_id:
3587
- raise MissingRequirementException("Project ID must be specified.")
3588
3175
  if not instance_id:
3589
3176
  raise MissingRequirementException("Instance ID must be specified.")
3590
3177
 
3591
3178
  client = AgenticProcessClient()
3592
3179
  result = client.get_instance_history(
3593
- project_id=project_id,
3594
3180
  instance_id=instance_id
3595
3181
  )
3596
3182
  Console.write_stdout(f"Instance history: \n{result}")
3597
3183
 
3598
3184
 
3599
3185
  get_instance_history_options = [
3600
- Option(
3601
- "project_id",
3602
- ["--project-id", "--pid"],
3603
- "ID of the project",
3604
- True
3605
- ),
3606
3186
  Option(
3607
3187
  "instance_id",
3608
3188
  ["--instance-id", "--iid"],
@@ -3612,35 +3192,23 @@ get_instance_history_options = [
3612
3192
  ]
3613
3193
 
3614
3194
  def get_thread_information(option_list: list):
3615
- project_id = None
3616
3195
  thread_id = None
3617
3196
 
3618
3197
  for option_flag, option_arg in option_list:
3619
- if option_flag.name == "project_id":
3620
- project_id = option_arg
3621
3198
  if option_flag.name == "thread_id":
3622
3199
  thread_id = option_arg
3623
3200
 
3624
- if not project_id:
3625
- raise MissingRequirementException("Project ID must be specified.")
3626
3201
  if not thread_id:
3627
3202
  raise MissingRequirementException("Thread ID must be specified.")
3628
3203
 
3629
3204
  client = AgenticProcessClient()
3630
3205
  result = client.get_thread_information(
3631
- project_id=project_id,
3632
3206
  thread_id=thread_id
3633
3207
  )
3634
3208
  Console.write_stdout(f"Thread information: \n{result}")
3635
3209
 
3636
3210
 
3637
3211
  get_thread_information_options = [
3638
- Option(
3639
- "project_id",
3640
- ["--project-id", "--pid"],
3641
- "ID of the project",
3642
- True
3643
- ),
3644
3212
  Option(
3645
3213
  "thread_id",
3646
3214
  ["--thread-id", "--tid"],
@@ -3651,20 +3219,15 @@ get_thread_information_options = [
3651
3219
 
3652
3220
 
3653
3221
  def send_user_signal(option_list: list):
3654
- project_id = None
3655
3222
  instance_id = None
3656
3223
  signal_name = None
3657
3224
 
3658
3225
  for option_flag, option_arg in option_list:
3659
- if option_flag.name == "project_id":
3660
- project_id = option_arg
3661
3226
  if option_flag.name == "instance_id":
3662
3227
  instance_id = option_arg
3663
3228
  if option_flag.name == "signal_name":
3664
3229
  signal_name = option_arg
3665
3230
 
3666
- if not project_id:
3667
- raise MissingRequirementException("Project ID must be specified.")
3668
3231
  if not instance_id:
3669
3232
  raise MissingRequirementException("Instance ID must be specified.")
3670
3233
  if not signal_name:
@@ -3672,7 +3235,6 @@ def send_user_signal(option_list: list):
3672
3235
 
3673
3236
  client = AgenticProcessClient()
3674
3237
  result = client.send_user_signal(
3675
- project_id=project_id,
3676
3238
  instance_id=instance_id,
3677
3239
  signal_name=signal_name
3678
3240
  )
@@ -3680,12 +3242,6 @@ def send_user_signal(option_list: list):
3680
3242
 
3681
3243
 
3682
3244
  send_user_signal_options = [
3683
- Option(
3684
- "project_id",
3685
- ["--project-id", "--pid"],
3686
- "ID of the project",
3687
- True
3688
- ),
3689
3245
  Option(
3690
3246
  "instance_id",
3691
3247
  ["--instance-id", "--iid"],
@@ -3704,14 +3260,11 @@ send_user_signal_options = [
3704
3260
 
3705
3261
 
3706
3262
  def create_kb(option_list: list):
3707
- project_id = None
3708
3263
  name = None
3709
3264
  artifacts = None
3710
3265
  metadata = None
3711
3266
 
3712
3267
  for option_flag, option_arg in option_list:
3713
- if option_flag.name == "project_id":
3714
- project_id = option_arg
3715
3268
  if option_flag.name == "name":
3716
3269
  name = option_arg
3717
3270
  if option_flag.name == "artifacts":
@@ -3733,14 +3286,11 @@ def create_kb(option_list: list):
3733
3286
  "Metadata must be a JSON list of strings: '[\"meta1\", \"meta2\"]'"
3734
3287
  )
3735
3288
 
3736
- if not project_id:
3737
- raise MissingRequirementException("Project ID must be specified.")
3738
3289
  if not name:
3739
3290
  raise MissingRequirementException("Name must be specified.")
3740
3291
 
3741
3292
  client = AgenticProcessClient()
3742
3293
  result = client.create_kb(
3743
- project_id=project_id,
3744
3294
  name=name,
3745
3295
  artifacts=artifacts,
3746
3296
  metadata=metadata
@@ -3749,12 +3299,6 @@ def create_kb(option_list: list):
3749
3299
 
3750
3300
 
3751
3301
  create_kb_options = [
3752
- Option(
3753
- "project_id",
3754
- ["--project-id", "--pid"],
3755
- "ID of the project",
3756
- True
3757
- ),
3758
3302
  Option(
3759
3303
  "name",
3760
3304
  ["--name", "-n"],
@@ -3777,26 +3321,20 @@ create_kb_options = [
3777
3321
 
3778
3322
 
3779
3323
  def get_kb(option_list: list):
3780
- project_id = None
3781
3324
  kb_id = None
3782
3325
  kb_name = None
3783
3326
 
3784
3327
  for option_flag, option_arg in option_list:
3785
- if option_flag.name == "project_id":
3786
- project_id = option_arg
3787
3328
  if option_flag.name == "kb_id":
3788
3329
  kb_id = option_arg
3789
3330
  if option_flag.name == "kb_name":
3790
3331
  kb_name = option_arg
3791
3332
 
3792
- if not project_id:
3793
- raise MissingRequirementException("Project ID must be specified.")
3794
3333
  if not (kb_id or kb_name):
3795
3334
  raise MissingRequirementException("Either KB ID or KB name must be specified.")
3796
3335
 
3797
3336
  client = AgenticProcessClient()
3798
3337
  result = client.get_kb(
3799
- project_id=project_id,
3800
3338
  kb_id=kb_id,
3801
3339
  kb_name=kb_name
3802
3340
  )
@@ -3804,12 +3342,6 @@ def get_kb(option_list: list):
3804
3342
 
3805
3343
 
3806
3344
  get_kb_options = [
3807
- Option(
3808
- "project_id",
3809
- ["--project-id", "--pid"],
3810
- "ID of the project",
3811
- True
3812
- ),
3813
3345
  Option(
3814
3346
  "kb_id",
3815
3347
  ["--kb-id", "--kid"],
@@ -3826,14 +3358,11 @@ get_kb_options = [
3826
3358
 
3827
3359
 
3828
3360
  def list_kbs(option_list: list):
3829
- project_id = None
3830
3361
  name = None
3831
3362
  start = "0"
3832
3363
  count = "100"
3833
3364
 
3834
3365
  for option_flag, option_arg in option_list:
3835
- if option_flag.name == "project_id":
3836
- project_id = option_arg
3837
3366
  if option_flag.name == "name":
3838
3367
  name = option_arg
3839
3368
  if option_flag.name == "start":
@@ -3841,12 +3370,8 @@ def list_kbs(option_list: list):
3841
3370
  if option_flag.name == "count":
3842
3371
  count = option_arg
3843
3372
 
3844
- if not project_id:
3845
- raise MissingRequirementException("Project ID must be specified.")
3846
-
3847
3373
  client = AgenticProcessClient()
3848
3374
  result = client.list_kbs(
3849
- project_id=project_id,
3850
3375
  name=name,
3851
3376
  start=start,
3852
3377
  count=count
@@ -3855,12 +3380,6 @@ def list_kbs(option_list: list):
3855
3380
 
3856
3381
 
3857
3382
  list_kbs_options = [
3858
- Option(
3859
- "project_id",
3860
- ["--project-id", "--pid"],
3861
- "ID of the project",
3862
- True
3863
- ),
3864
3383
  Option(
3865
3384
  "name",
3866
3385
  ["--name", "-n"],
@@ -3883,26 +3402,20 @@ list_kbs_options = [
3883
3402
 
3884
3403
 
3885
3404
  def delete_kb(option_list: list):
3886
- project_id = None
3887
3405
  kb_id = None
3888
3406
  kb_name = None
3889
3407
 
3890
3408
  for option_flag, option_arg in option_list:
3891
- if option_flag.name == "project_id":
3892
- project_id = option_arg
3893
3409
  if option_flag.name == "kb_id":
3894
3410
  kb_id = option_arg
3895
3411
  if option_flag.name == "kb_name":
3896
3412
  kb_name = option_arg
3897
3413
 
3898
- if not project_id:
3899
- raise MissingRequirementException("Project ID must be specified.")
3900
3414
  if not (kb_id or kb_name):
3901
3415
  raise MissingRequirementException("Either KB ID or KB name must be specified.")
3902
3416
 
3903
3417
  client = AgenticProcessClient()
3904
3418
  result = client.delete_kb(
3905
- project_id=project_id,
3906
3419
  kb_id=kb_id,
3907
3420
  kb_name=kb_name
3908
3421
  )
@@ -3910,12 +3423,6 @@ def delete_kb(option_list: list):
3910
3423
 
3911
3424
 
3912
3425
  delete_kb_options = [
3913
- Option(
3914
- "project_id",
3915
- ["--project-id", "--pid"],
3916
- "ID of the project",
3917
- True
3918
- ),
3919
3426
  Option(
3920
3427
  "kb_id",
3921
3428
  ["--kb-id", "--kid"],
@@ -3934,7 +3441,6 @@ delete_kb_options = [
3934
3441
 
3935
3442
 
3936
3443
  def list_jobs(option_list: list):
3937
- project_id = None
3938
3444
  start = "0"
3939
3445
  count = "100"
3940
3446
  topic = None
@@ -3942,8 +3448,6 @@ def list_jobs(option_list: list):
3942
3448
  name = None
3943
3449
 
3944
3450
  for option_flag, option_arg in option_list:
3945
- if option_flag.name == "project_id":
3946
- project_id = option_arg
3947
3451
  if option_flag.name == "start":
3948
3452
  start = option_arg
3949
3453
  if option_flag.name == "count":
@@ -3955,12 +3459,8 @@ def list_jobs(option_list: list):
3955
3459
  if option_flag.name == "name":
3956
3460
  name = option_arg
3957
3461
 
3958
- if not project_id:
3959
- raise MissingRequirementException("Project ID must be specified.")
3960
-
3961
3462
  client = AgenticProcessClient()
3962
3463
  result = client.list_jobs(
3963
- project_id=project_id,
3964
3464
  start=start,
3965
3465
  count=count,
3966
3466
  topic=topic,
@@ -3971,12 +3471,6 @@ def list_jobs(option_list: list):
3971
3471
 
3972
3472
 
3973
3473
  list_jobs_options = [
3974
- Option(
3975
- "project_id",
3976
- ["--project-id", "--pid"],
3977
- "ID of the project",
3978
- True
3979
- ),
3980
3474
  Option(
3981
3475
  "start",
3982
3476
  ["--start", "-s"],