pygeai 0.6.0b11__py3-none-any.whl → 0.6.0b13__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.
- pygeai/_docs/source/content/ai_lab/cli.rst +4 -4
- pygeai/_docs/source/content/ai_lab/models.rst +169 -35
- pygeai/_docs/source/content/ai_lab/runner.rst +2 -2
- pygeai/_docs/source/content/ai_lab/spec.rst +9 -9
- pygeai/_docs/source/content/ai_lab/usage.rst +34 -34
- pygeai/_docs/source/content/ai_lab.rst +1 -1
- pygeai/_docs/source/content/analytics.rst +598 -0
- pygeai/_docs/source/content/api_reference/chat.rst +428 -2
- pygeai/_docs/source/content/api_reference/embeddings.rst +1 -1
- pygeai/_docs/source/content/api_reference/project.rst +184 -0
- pygeai/_docs/source/content/api_reference/rag.rst +2 -2
- pygeai/_docs/source/content/authentication.rst +295 -0
- pygeai/_docs/source/content/cli.rst +79 -2
- pygeai/_docs/source/content/debugger.rst +1 -1
- pygeai/_docs/source/content/migration.rst +19 -2
- pygeai/_docs/source/index.rst +2 -0
- pygeai/_docs/source/pygeai.analytics.rst +53 -0
- pygeai/_docs/source/pygeai.cli.commands.rst +8 -0
- pygeai/_docs/source/pygeai.rst +1 -0
- pygeai/_docs/source/pygeai.tests.analytics.rst +45 -0
- pygeai/_docs/source/pygeai.tests.auth.rst +8 -0
- pygeai/_docs/source/pygeai.tests.rst +1 -1
- pygeai/analytics/__init__.py +0 -0
- pygeai/analytics/clients.py +505 -0
- pygeai/analytics/endpoints.py +35 -0
- pygeai/analytics/managers.py +606 -0
- pygeai/analytics/mappers.py +207 -0
- pygeai/analytics/responses.py +240 -0
- pygeai/assistant/managers.py +1 -1
- pygeai/chat/managers.py +1 -1
- pygeai/cli/commands/analytics.py +525 -0
- pygeai/cli/commands/base.py +16 -0
- pygeai/cli/commands/common.py +28 -24
- pygeai/cli/commands/migrate.py +75 -6
- pygeai/cli/commands/organization.py +265 -0
- pygeai/cli/commands/validators.py +144 -1
- pygeai/cli/error_handler.py +41 -6
- pygeai/cli/geai.py +106 -18
- pygeai/cli/parsers.py +75 -31
- pygeai/cli/texts/help.py +75 -6
- pygeai/core/base/clients.py +18 -4
- pygeai/core/base/session.py +59 -7
- pygeai/core/common/config.py +25 -2
- pygeai/core/common/exceptions.py +64 -1
- pygeai/core/embeddings/managers.py +1 -1
- pygeai/core/files/managers.py +1 -1
- pygeai/core/rerank/managers.py +1 -1
- pygeai/core/services/rest.py +20 -2
- pygeai/evaluation/clients.py +5 -3
- pygeai/lab/agents/clients.py +3 -3
- pygeai/lab/agents/endpoints.py +2 -2
- pygeai/lab/agents/mappers.py +50 -2
- pygeai/lab/clients.py +5 -2
- pygeai/lab/managers.py +8 -10
- pygeai/lab/models.py +70 -2
- pygeai/lab/tools/clients.py +1 -59
- pygeai/migration/__init__.py +3 -1
- pygeai/migration/strategies.py +72 -3
- pygeai/organization/clients.py +110 -1
- pygeai/organization/endpoints.py +11 -7
- pygeai/organization/limits/managers.py +1 -1
- pygeai/organization/managers.py +135 -3
- pygeai/organization/mappers.py +28 -2
- pygeai/organization/responses.py +11 -1
- pygeai/tests/analytics/__init__.py +0 -0
- pygeai/tests/analytics/test_clients.py +86 -0
- pygeai/tests/analytics/test_managers.py +94 -0
- pygeai/tests/analytics/test_mappers.py +84 -0
- pygeai/tests/analytics/test_responses.py +73 -0
- pygeai/tests/auth/test_oauth.py +172 -0
- pygeai/tests/cli/commands/test_migrate.py +14 -1
- pygeai/tests/cli/commands/test_organization.py +69 -1
- pygeai/tests/cli/test_error_handler.py +4 -4
- pygeai/tests/cli/test_geai_driver.py +1 -1
- pygeai/tests/lab/agents/test_mappers.py +128 -1
- pygeai/tests/lab/test_models.py +2 -0
- pygeai/tests/lab/tools/test_clients.py +2 -31
- pygeai/tests/organization/test_clients.py +180 -1
- pygeai/tests/organization/test_managers.py +40 -0
- pygeai/tests/snippets/analytics/__init__.py +0 -0
- pygeai/tests/snippets/analytics/get_agent_usage_per_user.py +16 -0
- pygeai/tests/snippets/analytics/get_agents_created_and_modified.py +11 -0
- pygeai/tests/snippets/analytics/get_average_cost_per_request.py +10 -0
- pygeai/tests/snippets/analytics/get_overall_error_rate.py +10 -0
- pygeai/tests/snippets/analytics/get_top_10_agents_by_requests.py +12 -0
- pygeai/tests/snippets/analytics/get_total_active_users.py +10 -0
- pygeai/tests/snippets/analytics/get_total_cost.py +10 -0
- pygeai/tests/snippets/analytics/get_total_requests_per_day.py +12 -0
- pygeai/tests/snippets/analytics/get_total_tokens.py +12 -0
- pygeai/tests/snippets/chat/get_response_complete_example.py +67 -0
- pygeai/tests/snippets/chat/get_response_with_instructions.py +19 -0
- pygeai/tests/snippets/chat/get_response_with_metadata.py +24 -0
- pygeai/tests/snippets/chat/get_response_with_parallel_tools.py +58 -0
- pygeai/tests/snippets/chat/get_response_with_reasoning.py +21 -0
- pygeai/tests/snippets/chat/get_response_with_store.py +38 -0
- pygeai/tests/snippets/chat/get_response_with_truncation.py +24 -0
- pygeai/tests/snippets/lab/agents/create_agent_with_permissions.py +39 -0
- pygeai/tests/snippets/lab/agents/create_agent_with_properties.py +46 -0
- pygeai/tests/snippets/lab/agents/get_agent_with_new_fields.py +62 -0
- pygeai/tests/snippets/lab/agents/update_agent_properties.py +50 -0
- pygeai/tests/snippets/organization/add_project_member.py +10 -0
- pygeai/tests/snippets/organization/add_project_member_batch.py +44 -0
- {pygeai-0.6.0b11.dist-info → pygeai-0.6.0b13.dist-info}/METADATA +1 -1
- {pygeai-0.6.0b11.dist-info → pygeai-0.6.0b13.dist-info}/RECORD +108 -98
- pygeai/_docs/source/pygeai.tests.snippets.assistants.data_analyst.rst +0 -37
- pygeai/_docs/source/pygeai.tests.snippets.assistants.rag.rst +0 -85
- pygeai/_docs/source/pygeai.tests.snippets.assistants.rst +0 -78
- pygeai/_docs/source/pygeai.tests.snippets.auth.rst +0 -10
- pygeai/_docs/source/pygeai.tests.snippets.chat.rst +0 -125
- pygeai/_docs/source/pygeai.tests.snippets.dbg.rst +0 -45
- pygeai/_docs/source/pygeai.tests.snippets.embeddings.rst +0 -61
- pygeai/_docs/source/pygeai.tests.snippets.evaluation.dataset.rst +0 -197
- pygeai/_docs/source/pygeai.tests.snippets.evaluation.plan.rst +0 -133
- pygeai/_docs/source/pygeai.tests.snippets.evaluation.result.rst +0 -37
- pygeai/_docs/source/pygeai.tests.snippets.evaluation.rst +0 -20
- pygeai/_docs/source/pygeai.tests.snippets.extras.rst +0 -37
- pygeai/_docs/source/pygeai.tests.snippets.files.rst +0 -53
- pygeai/_docs/source/pygeai.tests.snippets.gam.rst +0 -21
- pygeai/_docs/source/pygeai.tests.snippets.lab.agents.rst +0 -93
- pygeai/_docs/source/pygeai.tests.snippets.lab.processes.jobs.rst +0 -21
- pygeai/_docs/source/pygeai.tests.snippets.lab.processes.kbs.rst +0 -45
- pygeai/_docs/source/pygeai.tests.snippets.lab.processes.rst +0 -46
- pygeai/_docs/source/pygeai.tests.snippets.lab.rst +0 -82
- pygeai/_docs/source/pygeai.tests.snippets.lab.samples.rst +0 -21
- pygeai/_docs/source/pygeai.tests.snippets.lab.strategies.rst +0 -45
- pygeai/_docs/source/pygeai.tests.snippets.lab.tools.rst +0 -85
- pygeai/_docs/source/pygeai.tests.snippets.lab.use_cases.rst +0 -117
- pygeai/_docs/source/pygeai.tests.snippets.migrate.rst +0 -10
- pygeai/_docs/source/pygeai.tests.snippets.organization.rst +0 -109
- pygeai/_docs/source/pygeai.tests.snippets.rag.rst +0 -85
- pygeai/_docs/source/pygeai.tests.snippets.rerank.rst +0 -21
- pygeai/_docs/source/pygeai.tests.snippets.rst +0 -32
- pygeai/_docs/source/pygeai.tests.snippets.secrets.rst +0 -10
- pygeai/_docs/source/pygeai.tests.snippets.usage_limit.rst +0 -77
- {pygeai-0.6.0b11.dist-info → pygeai-0.6.0b13.dist-info}/WHEEL +0 -0
- {pygeai-0.6.0b11.dist-info → pygeai-0.6.0b13.dist-info}/entry_points.txt +0 -0
- {pygeai-0.6.0b11.dist-info → pygeai-0.6.0b13.dist-info}/licenses/LICENSE +0 -0
- {pygeai-0.6.0b11.dist-info → pygeai-0.6.0b13.dist-info}/top_level.txt +0 -0
|
@@ -41,7 +41,7 @@ Command Line
|
|
|
41
41
|
--automatic-publish 0
|
|
42
42
|
|
|
43
43
|
Low-Level Service Layer
|
|
44
|
-
|
|
44
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
45
45
|
|
|
46
46
|
.. code-block:: python
|
|
47
47
|
|
|
@@ -78,7 +78,7 @@ Low-Level Service Layer
|
|
|
78
78
|
print(response)
|
|
79
79
|
|
|
80
80
|
High-Level Service Layer
|
|
81
|
-
|
|
81
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
82
82
|
|
|
83
83
|
.. code-block:: python
|
|
84
84
|
|
|
@@ -138,7 +138,7 @@ Command Line
|
|
|
138
138
|
--automatic-publish 0
|
|
139
139
|
|
|
140
140
|
Low-Level Service Layer
|
|
141
|
-
|
|
141
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
142
142
|
|
|
143
143
|
.. code-block:: python
|
|
144
144
|
|
|
@@ -160,7 +160,7 @@ Low-Level Service Layer
|
|
|
160
160
|
print(response)
|
|
161
161
|
|
|
162
162
|
High-Level Service Layer
|
|
163
|
-
|
|
163
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
164
164
|
|
|
165
165
|
.. code-block:: python
|
|
166
166
|
|
|
@@ -202,7 +202,7 @@ Command Line
|
|
|
202
202
|
--allow-external 1
|
|
203
203
|
|
|
204
204
|
Low-Level Service Layer
|
|
205
|
-
|
|
205
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
206
206
|
|
|
207
207
|
.. code-block:: python
|
|
208
208
|
|
|
@@ -217,7 +217,7 @@ Low-Level Service Layer
|
|
|
217
217
|
print(response)
|
|
218
218
|
|
|
219
219
|
High-Level Service Layer
|
|
220
|
-
|
|
220
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
221
221
|
|
|
222
222
|
.. code-block:: python
|
|
223
223
|
|
|
@@ -251,7 +251,7 @@ Command Line
|
|
|
251
251
|
--agent-id "agent-123"
|
|
252
252
|
|
|
253
253
|
Low-Level Service Layer
|
|
254
|
-
|
|
254
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
255
255
|
|
|
256
256
|
.. code-block:: python
|
|
257
257
|
|
|
@@ -264,7 +264,7 @@ Low-Level Service Layer
|
|
|
264
264
|
print(response)
|
|
265
265
|
|
|
266
266
|
High-Level Service Layer
|
|
267
|
-
|
|
267
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
268
268
|
|
|
269
269
|
.. code-block:: python
|
|
270
270
|
|
|
@@ -291,7 +291,7 @@ Command Line
|
|
|
291
291
|
--agent-id "agent-123"
|
|
292
292
|
|
|
293
293
|
Low-Level Service Layer
|
|
294
|
-
|
|
294
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
295
295
|
|
|
296
296
|
.. code-block:: python
|
|
297
297
|
|
|
@@ -304,7 +304,7 @@ Low-Level Service Layer
|
|
|
304
304
|
print(response)
|
|
305
305
|
|
|
306
306
|
High-Level Service Layer
|
|
307
|
-
|
|
307
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
308
308
|
|
|
309
309
|
.. code-block:: python
|
|
310
310
|
|
|
@@ -339,7 +339,7 @@ Command Line
|
|
|
339
339
|
--automatic-publish 0
|
|
340
340
|
|
|
341
341
|
Low-Level Service Layer
|
|
342
|
-
|
|
342
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
343
343
|
|
|
344
344
|
.. code-block:: python
|
|
345
345
|
|
|
@@ -359,7 +359,7 @@ Low-Level Service Layer
|
|
|
359
359
|
print(response)
|
|
360
360
|
|
|
361
361
|
High-Level Service Layer
|
|
362
|
-
|
|
362
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
363
363
|
|
|
364
364
|
.. code-block:: python
|
|
365
365
|
|
|
@@ -417,7 +417,7 @@ Command Line
|
|
|
417
417
|
--automatic-publish 0
|
|
418
418
|
|
|
419
419
|
Low-Level Service Layer
|
|
420
|
-
|
|
420
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
421
421
|
|
|
422
422
|
.. code-block:: python
|
|
423
423
|
|
|
@@ -437,7 +437,7 @@ Low-Level Service Layer
|
|
|
437
437
|
print(response)
|
|
438
438
|
|
|
439
439
|
High-Level Service Layer
|
|
440
|
-
|
|
440
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
441
441
|
|
|
442
442
|
.. code-block:: python
|
|
443
443
|
|
|
@@ -482,7 +482,7 @@ Command Line
|
|
|
482
482
|
--tool-id "tool-456"
|
|
483
483
|
|
|
484
484
|
Low-Level Service Layer
|
|
485
|
-
|
|
485
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
486
486
|
|
|
487
487
|
.. code-block:: python
|
|
488
488
|
|
|
@@ -495,7 +495,7 @@ Low-Level Service Layer
|
|
|
495
495
|
print(response)
|
|
496
496
|
|
|
497
497
|
High-Level Service Layer
|
|
498
|
-
|
|
498
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
499
499
|
|
|
500
500
|
.. code-block:: python
|
|
501
501
|
|
|
@@ -522,7 +522,7 @@ Command Line
|
|
|
522
522
|
--tool-id "tool-456"
|
|
523
523
|
|
|
524
524
|
Low-Level Service Layer
|
|
525
|
-
|
|
525
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
526
526
|
|
|
527
527
|
.. code-block:: python
|
|
528
528
|
|
|
@@ -535,7 +535,7 @@ Low-Level Service Layer
|
|
|
535
535
|
print(response)
|
|
536
536
|
|
|
537
537
|
High-Level Service Layer
|
|
538
|
-
|
|
538
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
539
539
|
|
|
540
540
|
.. code-block:: python
|
|
541
541
|
|
|
@@ -568,7 +568,7 @@ Command Line
|
|
|
568
568
|
--automatic-publish 0
|
|
569
569
|
|
|
570
570
|
Low-Level Service Layer
|
|
571
|
-
|
|
571
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
572
572
|
|
|
573
573
|
.. code-block:: python
|
|
574
574
|
|
|
@@ -586,7 +586,7 @@ Low-Level Service Layer
|
|
|
586
586
|
print(response)
|
|
587
587
|
|
|
588
588
|
High-Level Service Layer
|
|
589
|
-
|
|
589
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
590
590
|
|
|
591
591
|
.. code-block:: python
|
|
592
592
|
|
|
@@ -628,7 +628,7 @@ Command Line
|
|
|
628
628
|
--automatic-publish 0
|
|
629
629
|
|
|
630
630
|
Low-Level Service Layer
|
|
631
|
-
|
|
631
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
632
632
|
|
|
633
633
|
.. code-block:: python
|
|
634
634
|
|
|
@@ -647,7 +647,7 @@ Low-Level Service Layer
|
|
|
647
647
|
print(response)
|
|
648
648
|
|
|
649
649
|
High-Level Service Layer
|
|
650
|
-
|
|
650
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
651
651
|
|
|
652
652
|
.. code-block:: python
|
|
653
653
|
|
|
@@ -686,7 +686,7 @@ Command Line
|
|
|
686
686
|
--task-id "task-789"
|
|
687
687
|
|
|
688
688
|
Low-Level Service Layer
|
|
689
|
-
|
|
689
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
690
690
|
|
|
691
691
|
.. code-block:: python
|
|
692
692
|
|
|
@@ -699,7 +699,7 @@ Low-Level Service Layer
|
|
|
699
699
|
print(response)
|
|
700
700
|
|
|
701
701
|
High-Level Service Layer
|
|
702
|
-
|
|
702
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
703
703
|
|
|
704
704
|
.. code-block:: python
|
|
705
705
|
|
|
@@ -726,7 +726,7 @@ Command Line
|
|
|
726
726
|
--task-id "task-789"
|
|
727
727
|
|
|
728
728
|
Low-Level Service Layer
|
|
729
|
-
|
|
729
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
730
730
|
|
|
731
731
|
.. code-block:: python
|
|
732
732
|
|
|
@@ -739,7 +739,7 @@ Low-Level Service Layer
|
|
|
739
739
|
print(response)
|
|
740
740
|
|
|
741
741
|
High-Level Service Layer
|
|
742
|
-
|
|
742
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
743
743
|
|
|
744
744
|
.. code-block:: python
|
|
745
745
|
|
|
@@ -781,7 +781,7 @@ Command Line
|
|
|
781
781
|
--automatic-publish 0
|
|
782
782
|
|
|
783
783
|
Low-Level Service Layer
|
|
784
|
-
|
|
784
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
785
785
|
|
|
786
786
|
.. code-block:: python
|
|
787
787
|
|
|
@@ -814,7 +814,7 @@ Low-Level Service Layer
|
|
|
814
814
|
print(response)
|
|
815
815
|
|
|
816
816
|
High-Level Service Layer
|
|
817
|
-
|
|
817
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
818
818
|
|
|
819
819
|
.. code-block:: python
|
|
820
820
|
|
|
@@ -883,7 +883,7 @@ Command Line
|
|
|
883
883
|
--automatic-publish 0
|
|
884
884
|
|
|
885
885
|
Low-Level Service Layer
|
|
886
|
-
|
|
886
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
887
887
|
|
|
888
888
|
.. code-block:: python
|
|
889
889
|
|
|
@@ -907,7 +907,7 @@ Low-Level Service Layer
|
|
|
907
907
|
print(response)
|
|
908
908
|
|
|
909
909
|
High-Level Service Layer
|
|
910
|
-
|
|
910
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
911
911
|
|
|
912
912
|
.. code-block:: python
|
|
913
913
|
|
|
@@ -945,7 +945,7 @@ Command Line
|
|
|
945
945
|
--process-id "process-101"
|
|
946
946
|
|
|
947
947
|
Low-Level Service Layer
|
|
948
|
-
|
|
948
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
949
949
|
|
|
950
950
|
.. code-block:: python
|
|
951
951
|
|
|
@@ -958,7 +958,7 @@ Low-Level Service Layer
|
|
|
958
958
|
print(response)
|
|
959
959
|
|
|
960
960
|
High-Level Service Layer
|
|
961
|
-
|
|
961
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
962
962
|
|
|
963
963
|
.. code-block:: python
|
|
964
964
|
|
|
@@ -985,7 +985,7 @@ Command Line
|
|
|
985
985
|
--process-id "process-101"
|
|
986
986
|
|
|
987
987
|
Low-Level Service Layer
|
|
988
|
-
|
|
988
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
|
989
989
|
|
|
990
990
|
.. code-block:: python
|
|
991
991
|
|
|
@@ -998,7 +998,7 @@ Low-Level Service Layer
|
|
|
998
998
|
print(response)
|
|
999
999
|
|
|
1000
1000
|
High-Level Service Layer
|
|
1001
|
-
|
|
1001
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1002
1002
|
|
|
1003
1003
|
.. code-block:: python
|
|
1004
1004
|
|
|
@@ -21,7 +21,7 @@ The Lab’s core modules are:
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
Interacting with the Lab via PyGEAI SDK
|
|
24
|
-
|
|
24
|
+
---------------------------------------
|
|
25
25
|
|
|
26
26
|
The PyGEAI SDK’s `lab` module provides a streamlined interface for developers to engage with the Globant Enterprise AI Lab. Designed to align with Python conventions, it offers a command-line tool that facilitates interaction with the Lab’s resources, including agents, tools, reasoning strategies, processes, tasks, and runtime instances. The `lab` module supports a range of operations, ensuring developers can efficiently manage the Lab’s ecosystem.
|
|
27
27
|
|