glaip-sdk 0.1.0__py3-none-any.whl → 0.6.10__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.
- glaip_sdk/__init__.py +5 -2
- glaip_sdk/_version.py +10 -3
- glaip_sdk/agents/__init__.py +27 -0
- glaip_sdk/agents/base.py +1191 -0
- glaip_sdk/branding.py +15 -6
- glaip_sdk/cli/account_store.py +540 -0
- glaip_sdk/cli/agent_config.py +2 -6
- glaip_sdk/cli/auth.py +265 -45
- glaip_sdk/cli/commands/__init__.py +2 -2
- glaip_sdk/cli/commands/accounts.py +746 -0
- glaip_sdk/cli/commands/agents.py +251 -173
- glaip_sdk/cli/commands/common_config.py +101 -0
- glaip_sdk/cli/commands/configure.py +735 -143
- glaip_sdk/cli/commands/mcps.py +266 -134
- glaip_sdk/cli/commands/models.py +13 -9
- glaip_sdk/cli/commands/tools.py +67 -88
- glaip_sdk/cli/commands/transcripts.py +755 -0
- glaip_sdk/cli/commands/update.py +3 -8
- glaip_sdk/cli/config.py +49 -7
- glaip_sdk/cli/constants.py +38 -0
- glaip_sdk/cli/context.py +8 -0
- glaip_sdk/cli/core/__init__.py +79 -0
- glaip_sdk/cli/core/context.py +124 -0
- glaip_sdk/cli/core/output.py +846 -0
- glaip_sdk/cli/core/prompting.py +649 -0
- glaip_sdk/cli/core/rendering.py +187 -0
- glaip_sdk/cli/display.py +45 -32
- glaip_sdk/cli/hints.py +57 -0
- glaip_sdk/cli/io.py +14 -17
- glaip_sdk/cli/main.py +232 -143
- glaip_sdk/cli/masking.py +21 -33
- glaip_sdk/cli/mcp_validators.py +5 -15
- glaip_sdk/cli/pager.py +12 -19
- glaip_sdk/cli/parsers/__init__.py +1 -3
- glaip_sdk/cli/parsers/json_input.py +11 -22
- glaip_sdk/cli/resolution.py +3 -9
- glaip_sdk/cli/rich_helpers.py +1 -3
- glaip_sdk/cli/slash/__init__.py +0 -9
- glaip_sdk/cli/slash/accounts_controller.py +578 -0
- glaip_sdk/cli/slash/accounts_shared.py +75 -0
- glaip_sdk/cli/slash/agent_session.py +65 -29
- glaip_sdk/cli/slash/prompt.py +24 -10
- glaip_sdk/cli/slash/remote_runs_controller.py +566 -0
- glaip_sdk/cli/slash/session.py +807 -225
- glaip_sdk/cli/slash/tui/__init__.py +9 -0
- glaip_sdk/cli/slash/tui/accounts.tcss +86 -0
- glaip_sdk/cli/slash/tui/accounts_app.py +876 -0
- glaip_sdk/cli/slash/tui/background_tasks.py +72 -0
- glaip_sdk/cli/slash/tui/loading.py +58 -0
- glaip_sdk/cli/slash/tui/remote_runs_app.py +628 -0
- glaip_sdk/cli/transcript/__init__.py +12 -52
- glaip_sdk/cli/transcript/cache.py +258 -60
- glaip_sdk/cli/transcript/capture.py +72 -21
- glaip_sdk/cli/transcript/history.py +815 -0
- glaip_sdk/cli/transcript/launcher.py +1 -3
- glaip_sdk/cli/transcript/viewer.py +79 -499
- glaip_sdk/cli/update_notifier.py +177 -24
- glaip_sdk/cli/utils.py +242 -1308
- glaip_sdk/cli/validators.py +16 -18
- glaip_sdk/client/__init__.py +2 -1
- glaip_sdk/client/_agent_payloads.py +53 -37
- glaip_sdk/client/agent_runs.py +147 -0
- glaip_sdk/client/agents.py +320 -92
- glaip_sdk/client/base.py +78 -35
- glaip_sdk/client/main.py +19 -10
- glaip_sdk/client/mcps.py +123 -15
- glaip_sdk/client/run_rendering.py +136 -101
- glaip_sdk/client/shared.py +21 -0
- glaip_sdk/client/tools.py +163 -34
- glaip_sdk/client/validators.py +20 -48
- glaip_sdk/config/constants.py +11 -0
- glaip_sdk/exceptions.py +1 -3
- glaip_sdk/mcps/__init__.py +21 -0
- glaip_sdk/mcps/base.py +345 -0
- glaip_sdk/models/__init__.py +90 -0
- glaip_sdk/models/agent.py +47 -0
- glaip_sdk/models/agent_runs.py +116 -0
- glaip_sdk/models/common.py +42 -0
- glaip_sdk/models/mcp.py +33 -0
- glaip_sdk/models/tool.py +33 -0
- glaip_sdk/payload_schemas/__init__.py +1 -13
- glaip_sdk/payload_schemas/agent.py +1 -3
- glaip_sdk/registry/__init__.py +55 -0
- glaip_sdk/registry/agent.py +164 -0
- glaip_sdk/registry/base.py +139 -0
- glaip_sdk/registry/mcp.py +253 -0
- glaip_sdk/registry/tool.py +232 -0
- glaip_sdk/rich_components.py +58 -2
- glaip_sdk/runner/__init__.py +59 -0
- glaip_sdk/runner/base.py +84 -0
- glaip_sdk/runner/deps.py +115 -0
- glaip_sdk/runner/langgraph.py +706 -0
- glaip_sdk/runner/mcp_adapter/__init__.py +13 -0
- glaip_sdk/runner/mcp_adapter/base_mcp_adapter.py +43 -0
- glaip_sdk/runner/mcp_adapter/langchain_mcp_adapter.py +257 -0
- glaip_sdk/runner/mcp_adapter/mcp_config_builder.py +95 -0
- glaip_sdk/runner/tool_adapter/__init__.py +18 -0
- glaip_sdk/runner/tool_adapter/base_tool_adapter.py +44 -0
- glaip_sdk/runner/tool_adapter/langchain_tool_adapter.py +219 -0
- glaip_sdk/tools/__init__.py +22 -0
- glaip_sdk/tools/base.py +435 -0
- glaip_sdk/utils/__init__.py +58 -12
- glaip_sdk/utils/a2a/__init__.py +34 -0
- glaip_sdk/utils/a2a/event_processor.py +188 -0
- glaip_sdk/utils/agent_config.py +4 -14
- glaip_sdk/utils/bundler.py +267 -0
- glaip_sdk/utils/client.py +111 -0
- glaip_sdk/utils/client_utils.py +46 -28
- glaip_sdk/utils/datetime_helpers.py +58 -0
- glaip_sdk/utils/discovery.py +78 -0
- glaip_sdk/utils/display.py +25 -21
- glaip_sdk/utils/export.py +143 -0
- glaip_sdk/utils/general.py +1 -36
- glaip_sdk/utils/import_export.py +15 -16
- glaip_sdk/utils/import_resolver.py +492 -0
- glaip_sdk/utils/instructions.py +101 -0
- glaip_sdk/utils/rendering/__init__.py +115 -1
- glaip_sdk/utils/rendering/formatting.py +7 -35
- glaip_sdk/utils/rendering/layout/__init__.py +64 -0
- glaip_sdk/utils/rendering/{renderer → layout}/panels.py +10 -3
- glaip_sdk/utils/rendering/{renderer → layout}/progress.py +73 -12
- glaip_sdk/utils/rendering/layout/summary.py +74 -0
- glaip_sdk/utils/rendering/layout/transcript.py +606 -0
- glaip_sdk/utils/rendering/models.py +3 -6
- glaip_sdk/utils/rendering/renderer/__init__.py +9 -49
- glaip_sdk/utils/rendering/renderer/base.py +258 -1577
- glaip_sdk/utils/rendering/renderer/config.py +1 -5
- glaip_sdk/utils/rendering/renderer/debug.py +30 -34
- glaip_sdk/utils/rendering/renderer/factory.py +138 -0
- glaip_sdk/utils/rendering/renderer/stream.py +10 -51
- glaip_sdk/utils/rendering/renderer/summary_window.py +79 -0
- glaip_sdk/utils/rendering/renderer/thinking.py +273 -0
- glaip_sdk/utils/rendering/renderer/toggle.py +1 -3
- glaip_sdk/utils/rendering/renderer/tool_panels.py +442 -0
- glaip_sdk/utils/rendering/renderer/transcript_mode.py +162 -0
- glaip_sdk/utils/rendering/state.py +204 -0
- glaip_sdk/utils/rendering/step_tree_state.py +1 -3
- glaip_sdk/utils/rendering/steps/__init__.py +34 -0
- glaip_sdk/utils/rendering/{steps.py → steps/event_processor.py} +76 -517
- glaip_sdk/utils/rendering/steps/format.py +176 -0
- glaip_sdk/utils/rendering/steps/manager.py +387 -0
- glaip_sdk/utils/rendering/timing.py +36 -0
- glaip_sdk/utils/rendering/viewer/__init__.py +21 -0
- glaip_sdk/utils/rendering/viewer/presenter.py +184 -0
- glaip_sdk/utils/resource_refs.py +29 -26
- glaip_sdk/utils/runtime_config.py +425 -0
- glaip_sdk/utils/serialization.py +32 -46
- glaip_sdk/utils/sync.py +142 -0
- glaip_sdk/utils/tool_detection.py +33 -0
- glaip_sdk/utils/validation.py +20 -28
- {glaip_sdk-0.1.0.dist-info → glaip_sdk-0.6.10.dist-info}/METADATA +42 -4
- glaip_sdk-0.6.10.dist-info/RECORD +159 -0
- {glaip_sdk-0.1.0.dist-info → glaip_sdk-0.6.10.dist-info}/WHEEL +1 -1
- glaip_sdk/models.py +0 -259
- glaip_sdk-0.1.0.dist-info/RECORD +0 -82
- {glaip_sdk-0.1.0.dist-info → glaip_sdk-0.6.10.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
glaip_sdk/__init__.py,sha256=0PAFfodqAEdggIiV1Es_JryDokZrhYLFFIXosqdguJU,420
|
|
2
|
+
glaip_sdk/_version.py,sha256=5CHGCxx_36fgmMWuEx6jJ2CzzM-i9eBFyQWFwBi23XE,2259
|
|
3
|
+
glaip_sdk/agents/__init__.py,sha256=VfYov56edbWuySXFEbWJ_jLXgwnFzPk1KB-9-mfsUCc,776
|
|
4
|
+
glaip_sdk/agents/base.py,sha256=5ZX7bVf64AB1DodBriHrzJg5QYvpTai_vYk6Br0JmAU,42338
|
|
5
|
+
glaip_sdk/branding.py,sha256=tLqYCIHMkUf8p2smpuAGNptwaKUN38G4mlh0A0DOl_w,7823
|
|
6
|
+
glaip_sdk/cli/__init__.py,sha256=xCCfuF1Yc7mpCDcfhHZTX0vizvtrDSLeT8MJ3V7m5A0,156
|
|
7
|
+
glaip_sdk/cli/account_store.py,sha256=TK4iTV93Q1uD9mCY_2ZMT6EazHKU2jX0qhgWfEM4V-4,18459
|
|
8
|
+
glaip_sdk/cli/agent_config.py,sha256=YAbFKrTNTRqNA6b0i0Q3pH-01rhHDRi5v8dxSFwGSwM,2401
|
|
9
|
+
glaip_sdk/cli/auth.py,sha256=e3Ctkjz3HBFk2mJE5xYpg78flot_luByLhqJ_bVtIsM,24149
|
|
10
|
+
glaip_sdk/cli/commands/__init__.py,sha256=6Z3ASXDut0lAbUX_umBFtxPzzFyqoiZfVeTahThFu1A,219
|
|
11
|
+
glaip_sdk/cli/commands/accounts.py,sha256=J89chwJWWpEv6TBXaGPUJH-aLrM9Ymxp4jywp5YUUEo,24685
|
|
12
|
+
glaip_sdk/cli/commands/agents.py,sha256=WCOzllyh_Znwlju5camT4vE6OeRJbsAmjWwcyiAqWs4,48429
|
|
13
|
+
glaip_sdk/cli/commands/common_config.py,sha256=chCa0B5t6JER-pGPzItUK7fk_qQgTwf7bIRU004PrUI,3731
|
|
14
|
+
glaip_sdk/cli/commands/configure.py,sha256=Y3ST1I33rXqlLvUyhKFOl9JUjDe01QCrL1dzOjO1E-c,30304
|
|
15
|
+
glaip_sdk/cli/commands/mcps.py,sha256=tttqQnfM89iI9Pm94u8YRhiHMQNYNouecFX0brsT4cQ,42551
|
|
16
|
+
glaip_sdk/cli/commands/models.py,sha256=vfcGprK5CHprQ0CNpNzQlNNTELvdgKC7JxTG_ijOwmE,2009
|
|
17
|
+
glaip_sdk/cli/commands/tools.py,sha256=_VBqG-vIjnn-gqvDlSTvcU7_F4N3ANGGKEECcQVR-BM,18430
|
|
18
|
+
glaip_sdk/cli/commands/transcripts.py,sha256=ofxZLus1xLB061NxrLo1J6LPEb2VIxJTjmz7hLKgPmc,26377
|
|
19
|
+
glaip_sdk/cli/commands/update.py,sha256=rIZo_x-tvpvcwpQLpwYwso1ix6qTHuNNTL4egmn5fEM,1812
|
|
20
|
+
glaip_sdk/cli/config.py,sha256=s0_xBB1e5YE4I_Wc4q-ayY3dwsBU1JrHAF-8ySlim7Y,3040
|
|
21
|
+
glaip_sdk/cli/constants.py,sha256=zqcVtzfj6huW97gbCmhkFqntge1H-c1vnkGqTazADgU,895
|
|
22
|
+
glaip_sdk/cli/context.py,sha256=--Y5vc6lgoAV7cRoUAr9UxSQaLmkMg29FolA7EwoRqM,3803
|
|
23
|
+
glaip_sdk/cli/core/__init__.py,sha256=HTQqpijKNts6bYnwY97rpP3J324phoQmGFi6OXqi0E4,2116
|
|
24
|
+
glaip_sdk/cli/core/context.py,sha256=I22z5IhZ09g5FPtMycDGU9Aj20Qv3TOQLhA5enaU2qk,3970
|
|
25
|
+
glaip_sdk/cli/core/output.py,sha256=9pkwT4mm-MEQ-dWjJrTDQL7-SVzePTkYnaY6vzSDztY,28045
|
|
26
|
+
glaip_sdk/cli/core/prompting.py,sha256=U6cxTSBNSa5-55M4W9zWCD_QSkkV912xTeOIRwXSDW8,21046
|
|
27
|
+
glaip_sdk/cli/core/rendering.py,sha256=QgbYzTcKH8wa7-BdR3UgiS3KBx1QYZjDcV2Hyy5ox_Q,5878
|
|
28
|
+
glaip_sdk/cli/display.py,sha256=ojgWdGeD5KUnGOmWNqqK4JP-1EaWHWX--DWze3BmIz0,12137
|
|
29
|
+
glaip_sdk/cli/hints.py,sha256=ca4krG103IS43s5BSLr0-N7uRMpte1_LY4nAXVvgDxo,1596
|
|
30
|
+
glaip_sdk/cli/io.py,sha256=ChP6CRKbtuENsNomNEaMDfPDU0iqO-WuVvl4_y7F2io,3871
|
|
31
|
+
glaip_sdk/cli/main.py,sha256=Kuz65r6gcAUQNSunEpJTOXp4eXrGv-yda_91J9YJYHs,21579
|
|
32
|
+
glaip_sdk/cli/masking.py,sha256=2lrXQ-pfL7N-vNEQRT1s4Xq3JPDPDT8RC61OdaTtkkc,4060
|
|
33
|
+
glaip_sdk/cli/mcp_validators.py,sha256=cwbz7p_p7_9xVuuF96OBQOdmEgo5UObU6iWWQ2X03PI,10047
|
|
34
|
+
glaip_sdk/cli/pager.py,sha256=XygkAB6UW3bte7I4KmK7-PUGCJiq2Pv-4-MfyXAmXCw,7925
|
|
35
|
+
glaip_sdk/cli/parsers/__init__.py,sha256=NzLrSH6GOdNoewXtKNpB6GwrauA8rb_IGYV6cz5Hn3o,113
|
|
36
|
+
glaip_sdk/cli/parsers/json_input.py,sha256=kxoxeIlgfsaH2jhe6apZAgSxAtwlpSINLTMRsZZYboQ,5630
|
|
37
|
+
glaip_sdk/cli/resolution.py,sha256=K-VaEHm9SYY_qfb9538VNHykL4_2N6F8iQqI1zMx_64,2402
|
|
38
|
+
glaip_sdk/cli/rich_helpers.py,sha256=kO47N8e506rxrN6Oc9mbAWN3Qb536oQPWZy1s9A616g,819
|
|
39
|
+
glaip_sdk/cli/slash/__init__.py,sha256=J9TPL2UcNTkW8eifG6nRmAEGHhyEgdYMYk4cHaaObC0,386
|
|
40
|
+
glaip_sdk/cli/slash/accounts_controller.py,sha256=-7v_4nTAVCqXySbOLtTfMpUpsqCzDTWmZYkBU880AzI,24803
|
|
41
|
+
glaip_sdk/cli/slash/accounts_shared.py,sha256=Mq5HxlI0YsVEQ0KKISWvyBZhzOFFWCzwRbhF5xwvUbM,2626
|
|
42
|
+
glaip_sdk/cli/slash/agent_session.py,sha256=ZK51zrwhFtun26Lu3a70Kcp3VFh0jwu37crWDKx7Ivk,11377
|
|
43
|
+
glaip_sdk/cli/slash/prompt.py,sha256=q4f1c2zr7ZMUeO6AgOBF2Nz4qgMOXrVPt6WzPRQMbAM,8501
|
|
44
|
+
glaip_sdk/cli/slash/remote_runs_controller.py,sha256=Ok6CezIeF1CPGQ8-QN3TRx5kGGEACOrgyPwH_BRRCyI,21354
|
|
45
|
+
glaip_sdk/cli/slash/session.py,sha256=JieIjUCTMW350LDqdSOdfPP8U0OJSmRYvqPBbddO2bw,64333
|
|
46
|
+
glaip_sdk/cli/slash/tui/__init__.py,sha256=ljBAeAFY2qNDkbJrZh5NgXxjwUlsv9-UxgKNIv0AF1Q,274
|
|
47
|
+
glaip_sdk/cli/slash/tui/accounts.tcss,sha256=xuQjQ0tBM08K1DUv6lI5Sfu1zgZzQxg60c9-RlEWB4s,1160
|
|
48
|
+
glaip_sdk/cli/slash/tui/accounts_app.py,sha256=QDaOpVStS6Z51tfXcS8GRRjTrVfMO26-guHepqysU9k,33715
|
|
49
|
+
glaip_sdk/cli/slash/tui/background_tasks.py,sha256=SAe1mV2vXB3mJcSGhelU950vf8Lifjhws9iomyIVFKw,2422
|
|
50
|
+
glaip_sdk/cli/slash/tui/loading.py,sha256=nW5pv_Tnl9FUOPR3Qf2O5gt1AGHSo3b5-Uofg34F6AE,1909
|
|
51
|
+
glaip_sdk/cli/slash/tui/remote_runs_app.py,sha256=RCrI-c5ilKV6Iy1lz2Aok9xo2Ou02vqcXACMXTdodnE,24716
|
|
52
|
+
glaip_sdk/cli/transcript/__init__.py,sha256=yiYHyNtebMCu3BXu56Xm5RBC2tDc865q8UGPnoe6QRs,920
|
|
53
|
+
glaip_sdk/cli/transcript/cache.py,sha256=Wi1uln6HP1U6F-MRTrfnxi9bn6XJTxwWXhREIRPoMqQ,17439
|
|
54
|
+
glaip_sdk/cli/transcript/capture.py,sha256=t8j_62cC6rhb51oCluZd17N04vcXqyjkhPRcRd3ZcmM,10291
|
|
55
|
+
glaip_sdk/cli/transcript/export.py,sha256=reCvrZVzli8_LzYe5ZNdaa-MwZ1ov2RjnDzKZWr_6-E,1117
|
|
56
|
+
glaip_sdk/cli/transcript/history.py,sha256=2FBjawxP8CX9gRPMUMP8bDjG50BGM2j2zk6IfHvAMH4,26211
|
|
57
|
+
glaip_sdk/cli/transcript/launcher.py,sha256=z5ivkPXDQJpATIqtRLUK8jH3p3WIZ72PvOPqYRDMJvw,2327
|
|
58
|
+
glaip_sdk/cli/transcript/viewer.py,sha256=HKL3U-FrhluKSmxLdE_kTbdTalG-LCE0wu1MXsf22Ao,13189
|
|
59
|
+
glaip_sdk/cli/update_notifier.py,sha256=FnTjzS8YT94RmP6c5aU_XNIyRi7FRHvAskMy-VJikl8,10064
|
|
60
|
+
glaip_sdk/cli/utils.py,sha256=iemmKkpPndoZFBasoVqV7QArplchtr08yYWLA2efMzg,11996
|
|
61
|
+
glaip_sdk/cli/validators.py,sha256=d-kq4y7HWMo6Gc7wLXWUsCt8JwFvJX_roZqRm1Nko1I,5622
|
|
62
|
+
glaip_sdk/client/__init__.py,sha256=F-eE_dRSzA0cc1it06oi0tZetZBHmSUjWSHGhJMLCls,263
|
|
63
|
+
glaip_sdk/client/_agent_payloads.py,sha256=cH7CvNRn0JvudwKLr072E7W2QGWO9r-4xDxWMvXoPKE,17865
|
|
64
|
+
glaip_sdk/client/agent_runs.py,sha256=tZSFEZZ3Yx0uYRgnwkLe-X0TlmgKJQ-ivzb6SrVnxY8,4862
|
|
65
|
+
glaip_sdk/client/agents.py,sha256=33Wr5BYLN6uSN_Vwdine-9KKT030nDnsEArytN9g0lc,47580
|
|
66
|
+
glaip_sdk/client/base.py,sha256=BhNaC2TJJ2jVWRTYmfxD3WjYgAyIuWNz9YURdNXXjJo,18245
|
|
67
|
+
glaip_sdk/client/main.py,sha256=RTREAOgGouYm4lFKkpNBQ9dmxalnBsIpSSaQLWVFSmU,9054
|
|
68
|
+
glaip_sdk/client/mcps.py,sha256=gFRuLOGeh6ieIhR4PeD6yNVT6NhvUMTqPq9iuu1vkAY,13019
|
|
69
|
+
glaip_sdk/client/run_rendering.py,sha256=ubBO-NzyZoYRELNwxVvrQFRGQVJCuLfqqJNiXrBZDoQ,14223
|
|
70
|
+
glaip_sdk/client/shared.py,sha256=esHlsR0LEfL-pFDaWebQjKKOLl09jsRY-2pllBUn4nU,522
|
|
71
|
+
glaip_sdk/client/tools.py,sha256=kK0rBwX1e_5AlGQRjlO6rNz6gDlohhXWdlxN9AwotdE,22585
|
|
72
|
+
glaip_sdk/client/validators.py,sha256=ioF9VCs-LG2yLkaRDd7Hff74lojDZZ0_Q3CiLbdm1RY,8381
|
|
73
|
+
glaip_sdk/config/constants.py,sha256=Y03c6op0e7K0jTQ8bmWXhWAqsnjWxkAhWniq8Z0iEKY,1081
|
|
74
|
+
glaip_sdk/exceptions.py,sha256=iAChFClkytXRBLP0vZq1_YjoZxA9i4m4bW1gDLiGR1g,2321
|
|
75
|
+
glaip_sdk/icons.py,sha256=J5THz0ReAmDwIiIooh1_G3Le-mwTJyEjhJDdJ13KRxM,524
|
|
76
|
+
glaip_sdk/mcps/__init__.py,sha256=4jYrt8K__oxrxexHRcmnRBXt-W_tbJN61H9Kf2lVh4Q,551
|
|
77
|
+
glaip_sdk/mcps/base.py,sha256=jWwHjDF67_mtDGRp9p5SolANjVeB8jt1PSwPBtX876M,11654
|
|
78
|
+
glaip_sdk/models/__init__.py,sha256=-qO4Yr1-fkyaYC9RcT3nYhplDjoXATrIFZr4JrqflHI,2577
|
|
79
|
+
glaip_sdk/models/agent.py,sha256=vtmUSDrrib1hvm0xnofIuOebqlrs-gIaLsny8hzg1iE,1523
|
|
80
|
+
glaip_sdk/models/agent_runs.py,sha256=MYgab07k8MfExjvI5_o6HxsksJZ3tl2TDZefVxzGc1g,3807
|
|
81
|
+
glaip_sdk/models/common.py,sha256=O30MEGO2nKcGhKbnPNkoGzwNvDVUBjM-uU-Tpigaz5Y,1180
|
|
82
|
+
glaip_sdk/models/mcp.py,sha256=ti_8MUf4k7qbR1gPs9JhqhybMcLUhZxEELtHQrTv2-U,944
|
|
83
|
+
glaip_sdk/models/tool.py,sha256=w3nL2DqyCtGgDPCd40Asi9obRGghQjLlC9Vt_p32Mpc,951
|
|
84
|
+
glaip_sdk/payload_schemas/__init__.py,sha256=nTJmzwn2BbEpzZdq-8U24eVHQHxqYO3_-SABMV9lS_Q,142
|
|
85
|
+
glaip_sdk/payload_schemas/agent.py,sha256=Nap68mI2Ba8eNGOhk79mGrYUoYUahcUJLof3DLWtVO4,3198
|
|
86
|
+
glaip_sdk/registry/__init__.py,sha256=mjvElYE-wwmbriGe-c6qy4on0ccEuWxW_EWWrSbptCw,1667
|
|
87
|
+
glaip_sdk/registry/agent.py,sha256=F0axW4BIUODqnttIOzxnoS5AqQkLZ1i48FTeZNnYkhA,5203
|
|
88
|
+
glaip_sdk/registry/base.py,sha256=0x2ZBhiERGUcf9mQeWlksSYs5TxDG6FxBYQToYZa5D4,4143
|
|
89
|
+
glaip_sdk/registry/mcp.py,sha256=kNJmiijIbZL9Btx5o2tFtbaT-WG6O4Xf_nl3wz356Ow,7978
|
|
90
|
+
glaip_sdk/registry/tool.py,sha256=rxrVxnO_VwO6E5kccqxxEUC337J9qbKpje-Gwl5a3sY,7699
|
|
91
|
+
glaip_sdk/rich_components.py,sha256=44Z0V1ZQleVh9gUDGwRR5mriiYFnVGOhm7fFxZYbP8c,4052
|
|
92
|
+
glaip_sdk/runner/__init__.py,sha256=8RrngoGfpF8x9X27RPdX4gJjch75ZvhtVt_6UV0ULLQ,1615
|
|
93
|
+
glaip_sdk/runner/base.py,sha256=KIjcSAyDCP9_mn2H4rXR5gu1FZlwD9pe0gkTBmr6Yi4,2663
|
|
94
|
+
glaip_sdk/runner/deps.py,sha256=3ZDWyvWu4LFJOGHd18tv3VzVo8NY5gb1VeZIelMknyI,3934
|
|
95
|
+
glaip_sdk/runner/langgraph.py,sha256=N9jhuCI-7dS6gzrsKzG6xT3CGWKuo7GEpEwfszgORVo,26050
|
|
96
|
+
glaip_sdk/runner/mcp_adapter/__init__.py,sha256=Rdttfg3N6kg3-DaTCKqaGXKByZyBt0Mwf6FV8s_5kI8,462
|
|
97
|
+
glaip_sdk/runner/mcp_adapter/base_mcp_adapter.py,sha256=ic56fKgb3zgVZZQm3ClWUZi7pE1t4EVq8mOg6AM6hdA,1374
|
|
98
|
+
glaip_sdk/runner/mcp_adapter/langchain_mcp_adapter.py,sha256=b58GuadPz7q7aXoJyTYs0eeJ_oqp-wLR1tcr_5cbV1s,9723
|
|
99
|
+
glaip_sdk/runner/mcp_adapter/mcp_config_builder.py,sha256=fQcRaueDuyUzXUSVn9N8QxfaYNIteEO_R_uibx_0Icw,3440
|
|
100
|
+
glaip_sdk/runner/tool_adapter/__init__.py,sha256=scv8sSPxSWjlSNEace03R230YbmWgphLgqINKvDjWmM,480
|
|
101
|
+
glaip_sdk/runner/tool_adapter/base_tool_adapter.py,sha256=nL--eicV0St5_0PZZSEhRurHDZHNwhGN2cKOUh0C5IY,1400
|
|
102
|
+
glaip_sdk/runner/tool_adapter/langchain_tool_adapter.py,sha256=goSSDOpubuplsKpfemlbesf_bZBdpDKSTqLILvApcjA,7438
|
|
103
|
+
glaip_sdk/tools/__init__.py,sha256=rhGzEqQFCzeMrxmikBuNrMz4PyYczwic28boDKVmoHs,585
|
|
104
|
+
glaip_sdk/tools/base.py,sha256=bvumLJ-DiQTmuYKgq2yCnlwrTZ9nYXpOwWU0e1vWR5g,15185
|
|
105
|
+
glaip_sdk/utils/__init__.py,sha256=ntohV7cxlY2Yksi2nFuFm_Mg2XVJbBbSJVRej7Mi9YE,2770
|
|
106
|
+
glaip_sdk/utils/a2a/__init__.py,sha256=_X8AvDOsHeppo5n7rP5TeisVxlAdkZDTFReBk_9lmxo,876
|
|
107
|
+
glaip_sdk/utils/a2a/event_processor.py,sha256=9Mjvvd4_4VDYeOkAI7_vF7N7_Dn0Kn23ramKyK32b3c,5993
|
|
108
|
+
glaip_sdk/utils/agent_config.py,sha256=RhcHsSOVwOaSC2ggnPuHn36Aa0keGJhs8KGb2InvzRk,7262
|
|
109
|
+
glaip_sdk/utils/bundler.py,sha256=fQWAv0e5qNjF1Lah-FGoA9W5Q59YaHbQfX_4ZB84YRw,9120
|
|
110
|
+
glaip_sdk/utils/client.py,sha256=otPUOIDvLCCsvFBNR8YMZFtRrORggmvvlFjl3YeeTqQ,3121
|
|
111
|
+
glaip_sdk/utils/client_utils.py,sha256=hzHxxNuM37mK4HhgIdS0qg4AqjAA5ai2irPO6Nr1Uzo,15350
|
|
112
|
+
glaip_sdk/utils/datetime_helpers.py,sha256=QLknNLEAY56628-MTRKnCXAffATkF33erOqBubKmU98,1544
|
|
113
|
+
glaip_sdk/utils/discovery.py,sha256=DbnPuCXuS5mwTZ9fMfsPHQDJltFV99Wf8Em0YttktVU,1994
|
|
114
|
+
glaip_sdk/utils/display.py,sha256=zu3SYqxj9hPyEN8G1vIXv_yXBkV8jLLCXEg2rs8NlzM,4485
|
|
115
|
+
glaip_sdk/utils/export.py,sha256=1NxxE3wGsA1auzecG5oJw5ELB4VmPljoeIkGhrGOh1I,5006
|
|
116
|
+
glaip_sdk/utils/general.py,sha256=3HSVIopUsIymPaim-kP2lqLX75TkkdIVLe6g3UKabZ0,1507
|
|
117
|
+
glaip_sdk/utils/import_export.py,sha256=RCvoydm_6_L7_J1igcE6IYDunqgS5mQUbWT4VGrytMw,5510
|
|
118
|
+
glaip_sdk/utils/import_resolver.py,sha256=rvNNLjSB1pbQTgkjEy9C8O_P475FefaBpctkiQAom8Y,16250
|
|
119
|
+
glaip_sdk/utils/instructions.py,sha256=MTk93lsq3I8aRnvnRMSXXNMzcpnaIM_Pm3Aiiiq3GBc,2997
|
|
120
|
+
glaip_sdk/utils/rendering/__init__.py,sha256=cJhhBEf46RnmUGJ1fivGkFuCoOn2pkJkSuRWoo1xlhE,3608
|
|
121
|
+
glaip_sdk/utils/rendering/formatting.py,sha256=tP-CKkKFDhiAHS1vpJQ3D6NmPVl0TX1ZOwBOoxia2eE,8009
|
|
122
|
+
glaip_sdk/utils/rendering/layout/__init__.py,sha256=Lz8eLXDO28wyK36BhKJ6o9YmsRjmQZrNhvZ2wwSjvPw,1609
|
|
123
|
+
glaip_sdk/utils/rendering/layout/panels.py,sha256=c7EhMznVxIiclrFERJuc3qem21t7sQI6BDcmujtdSAk,3905
|
|
124
|
+
glaip_sdk/utils/rendering/layout/progress.py,sha256=GhOhUPNQd8-e6JxTJsV76s6wIYhtTw2G1C3BY9yhtRk,6418
|
|
125
|
+
glaip_sdk/utils/rendering/layout/summary.py,sha256=K-gkDxwUxF67-4nF20y6hv95QEwRZCQI9Eb4KbA8eQY,2325
|
|
126
|
+
glaip_sdk/utils/rendering/layout/transcript.py,sha256=vbfywtbWCDzLY9B5Vvf4crhomftFq-UEz7zqySiLrD8,19052
|
|
127
|
+
glaip_sdk/utils/rendering/models.py,sha256=LtBgF0CyFnVW_oLAR8O62P-h8auCJwlgZaMUhmE8V-0,2882
|
|
128
|
+
glaip_sdk/utils/rendering/renderer/__init__.py,sha256=lpf0GnNGcPb8gq_hJM6Puflwy3eTigVK9qXP01nWRv0,1754
|
|
129
|
+
glaip_sdk/utils/rendering/renderer/base.py,sha256=YwUz0gS4C55BWEDmwD-gp35Tp_QCryxhld2gV--y8lE,38968
|
|
130
|
+
glaip_sdk/utils/rendering/renderer/config.py,sha256=FgSAZpG1g7Atm2MXg0tY0lOEciY90MR-RO6YuGFhp0E,626
|
|
131
|
+
glaip_sdk/utils/rendering/renderer/console.py,sha256=4cLOw4Q1fkHkApuj6dWW8eYpeYdcT0t2SO5MbVt5UTc,1844
|
|
132
|
+
glaip_sdk/utils/rendering/renderer/debug.py,sha256=qyqFXltYzKEqajwlu8QFSBU3P46JzMzIZqurejhx14o,5907
|
|
133
|
+
glaip_sdk/utils/rendering/renderer/factory.py,sha256=3p1Uga_UEN-wwTNerNaDB3qf3-yu1a9DfH4weXxeRdA,4711
|
|
134
|
+
glaip_sdk/utils/rendering/renderer/stream.py,sha256=htqm8pujXGKJncO86d-dfHixv9btACBgwPbO_brUQio,7812
|
|
135
|
+
glaip_sdk/utils/rendering/renderer/summary_window.py,sha256=ffBsVHaUyy2RfIuXLjhfiO31HeeprVcPP_pe4cjDLsU,2286
|
|
136
|
+
glaip_sdk/utils/rendering/renderer/thinking.py,sha256=09dYbtzpOrG5SlhuqpW9uqPCpiijPQuIntsNboMDDJ8,9399
|
|
137
|
+
glaip_sdk/utils/rendering/renderer/toggle.py,sha256=N3LB4g1r8EdDkQyItQdrP5gig6Sszz9uZ6WJuD0KUmk,5396
|
|
138
|
+
glaip_sdk/utils/rendering/renderer/tool_panels.py,sha256=ev7gZsakUMxfG4JoS_bBDey_MwMDyOLwVhTO536v608,17246
|
|
139
|
+
glaip_sdk/utils/rendering/renderer/transcript_mode.py,sha256=FBZVQYrXF5YH79g3gYizE6P_yL5k9ZSGViCmZhv6C4g,6013
|
|
140
|
+
glaip_sdk/utils/rendering/state.py,sha256=54ViIHCGoBHQE4yMOrB2ToK3FZuv7SsD0Qcyq3CEKe4,6540
|
|
141
|
+
glaip_sdk/utils/rendering/step_tree_state.py,sha256=EItKFTV2FYvm5pSyHbXk7lkzJ-0DW_s-VENIBZe8sp4,4062
|
|
142
|
+
glaip_sdk/utils/rendering/steps/__init__.py,sha256=y1BJUPeT4bclXPmsy6B66KNZWiY8W5p-LnLnlrxynP8,840
|
|
143
|
+
glaip_sdk/utils/rendering/steps/event_processor.py,sha256=sGOHpxm7WmKxxY68l9Su6_YbDkXcoFblwkv1fToSX5k,29048
|
|
144
|
+
glaip_sdk/utils/rendering/steps/format.py,sha256=Chnq7OBaj8XMeBntSBxrX5zSmrYeGcOszooNeBe7_pM,5654
|
|
145
|
+
glaip_sdk/utils/rendering/steps/manager.py,sha256=BiBmTeQMQhjRMykgICXsXNYh1hGsss-fH9BIGVMWFi0,13194
|
|
146
|
+
glaip_sdk/utils/rendering/timing.py,sha256=__F1eFPoocm7Dps7Y1O_gJV24HsNTbx_FMiqEDN4T9o,1063
|
|
147
|
+
glaip_sdk/utils/rendering/viewer/__init__.py,sha256=XrxmE2cMAozqrzo1jtDFm8HqNtvDcYi2mAhXLXn5CjI,457
|
|
148
|
+
glaip_sdk/utils/rendering/viewer/presenter.py,sha256=mlLMTjnyeyPVtsyrAbz1BJu9lFGQSlS-voZ-_Cuugv0,5725
|
|
149
|
+
glaip_sdk/utils/resource_refs.py,sha256=vF34kyAtFBLnaKnQVrsr2st1JiSxVbIZ4yq0DelJvCI,5966
|
|
150
|
+
glaip_sdk/utils/run_renderer.py,sha256=d_VMI6LbvHPUUeRmGqh5wK_lHqDEIAcym2iqpbtDad0,1365
|
|
151
|
+
glaip_sdk/utils/runtime_config.py,sha256=Gl9-CQ4lYZ39vRSgtdfcSU3CXshVDDuTOdSzjvsCgG0,14070
|
|
152
|
+
glaip_sdk/utils/serialization.py,sha256=z-qpvWLSBrGK3wbUclcA1UIKLXJedTnMSwPdq-FF4lo,13308
|
|
153
|
+
glaip_sdk/utils/sync.py,sha256=3VKqs1UfNGWSobgRXohBKP7mMMzdUW3SU0bJQ1uxOgw,4872
|
|
154
|
+
glaip_sdk/utils/tool_detection.py,sha256=g410GNug_PhLye8rd9UU-LVFIKq3jHPbmSItEkLxPTc,807
|
|
155
|
+
glaip_sdk/utils/validation.py,sha256=hB_k3lvHdIFUiSwHStrC0Eqnhx0OG2UvwqASeem0HuQ,6859
|
|
156
|
+
glaip_sdk-0.6.10.dist-info/METADATA,sha256=_jG2ijWHtyGN1NgL1F9l-D5iG2EEv87RzWcp6aI2jxE,7920
|
|
157
|
+
glaip_sdk-0.6.10.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
158
|
+
glaip_sdk-0.6.10.dist-info/entry_points.txt,sha256=EGs8NO8J1fdFMWA3CsF7sKBEvtHb_fujdCoNPhfMouE,47
|
|
159
|
+
glaip_sdk-0.6.10.dist-info/RECORD,,
|
glaip_sdk/models.py
DELETED
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""Data models for AIP SDK.
|
|
3
|
-
|
|
4
|
-
Authors:
|
|
5
|
-
Raymond Christopher (raymond.christopher@gdplabs.id)
|
|
6
|
-
"""
|
|
7
|
-
|
|
8
|
-
from collections.abc import AsyncGenerator
|
|
9
|
-
from datetime import datetime
|
|
10
|
-
from typing import Any
|
|
11
|
-
|
|
12
|
-
from pydantic import BaseModel
|
|
13
|
-
|
|
14
|
-
from glaip_sdk.config.constants import DEFAULT_AGENT_RUN_TIMEOUT
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class Agent(BaseModel):
|
|
18
|
-
"""Agent model for API responses."""
|
|
19
|
-
|
|
20
|
-
id: str
|
|
21
|
-
name: str
|
|
22
|
-
instruction: str | None = None
|
|
23
|
-
description: str | None = None # Add missing description field
|
|
24
|
-
type: str | None = None
|
|
25
|
-
framework: str | None = None
|
|
26
|
-
version: str | None = None
|
|
27
|
-
tools: list[dict[str, Any]] | None = None # Backend returns ToolReference objects
|
|
28
|
-
agents: list[dict[str, Any]] | None = None # Backend returns AgentReference objects
|
|
29
|
-
mcps: list[dict[str, Any]] | None = None # Backend returns MCPReference objects
|
|
30
|
-
tool_configs: dict[str, Any] | None = (
|
|
31
|
-
None # Backend returns tool configurations keyed by tool UUID
|
|
32
|
-
)
|
|
33
|
-
agent_config: dict[str, Any] | None = None
|
|
34
|
-
timeout: int = DEFAULT_AGENT_RUN_TIMEOUT
|
|
35
|
-
metadata: dict[str, Any] | None = None
|
|
36
|
-
language_model_id: str | None = None
|
|
37
|
-
a2a_profile: dict[str, Any] | None = None
|
|
38
|
-
created_at: datetime | None = None # Backend returns creation timestamp
|
|
39
|
-
updated_at: datetime | None = None # Backend returns last update timestamp
|
|
40
|
-
_client: Any = None
|
|
41
|
-
|
|
42
|
-
def _set_client(self, client: Any) -> "Agent":
|
|
43
|
-
"""Set the client reference for this resource."""
|
|
44
|
-
self._client = client
|
|
45
|
-
return self
|
|
46
|
-
|
|
47
|
-
def run(self, message: str, verbose: bool = False, **kwargs) -> str:
|
|
48
|
-
"""Run the agent with a message.
|
|
49
|
-
|
|
50
|
-
Args:
|
|
51
|
-
message: The message to send to the agent
|
|
52
|
-
verbose: Enable verbose output and event JSON logging
|
|
53
|
-
**kwargs: Additional arguments passed to run_agent
|
|
54
|
-
"""
|
|
55
|
-
if not self._client:
|
|
56
|
-
raise RuntimeError(
|
|
57
|
-
"No client available. Use client.get_agent_by_id() to get a client-connected agent."
|
|
58
|
-
)
|
|
59
|
-
# Automatically pass the agent name for better renderer display
|
|
60
|
-
kwargs.setdefault("agent_name", self.name)
|
|
61
|
-
# Pass the agent's configured timeout if not explicitly overridden
|
|
62
|
-
if "timeout" not in kwargs:
|
|
63
|
-
kwargs["timeout"] = self.timeout
|
|
64
|
-
# Pass verbose flag through to enable event JSON output
|
|
65
|
-
return self._client.run_agent(self.id, message, verbose=verbose, **kwargs)
|
|
66
|
-
|
|
67
|
-
async def arun(self, message: str, **kwargs) -> AsyncGenerator[dict, None]:
|
|
68
|
-
"""Async run the agent with a message, yielding streaming JSON chunks.
|
|
69
|
-
|
|
70
|
-
Args:
|
|
71
|
-
message: The message to send to the agent
|
|
72
|
-
**kwargs: Additional arguments passed to arun_agent
|
|
73
|
-
|
|
74
|
-
Yields:
|
|
75
|
-
Dictionary containing parsed JSON chunks from the streaming response
|
|
76
|
-
|
|
77
|
-
Raises:
|
|
78
|
-
RuntimeError: When no client is available
|
|
79
|
-
AgentTimeoutError: When agent execution times out
|
|
80
|
-
Exception: For other unexpected errors
|
|
81
|
-
"""
|
|
82
|
-
if not self._client:
|
|
83
|
-
raise RuntimeError(
|
|
84
|
-
"No client available. Use client.get_agent_by_id() to get a client-connected agent."
|
|
85
|
-
)
|
|
86
|
-
# Automatically pass the agent name for better context
|
|
87
|
-
kwargs.setdefault("agent_name", self.name)
|
|
88
|
-
# Pass the agent's configured timeout if not explicitly overridden
|
|
89
|
-
if "timeout" not in kwargs:
|
|
90
|
-
kwargs["timeout"] = self.timeout
|
|
91
|
-
|
|
92
|
-
async for chunk in self._client.arun_agent(self.id, message, **kwargs):
|
|
93
|
-
yield chunk
|
|
94
|
-
|
|
95
|
-
def update(self, **kwargs) -> "Agent":
|
|
96
|
-
"""Update agent attributes."""
|
|
97
|
-
if not self._client:
|
|
98
|
-
raise RuntimeError(
|
|
99
|
-
"No client available. Use client.get_agent_by_id() to get a client-connected agent."
|
|
100
|
-
)
|
|
101
|
-
updated_agent = self._client.update_agent(self.id, **kwargs)
|
|
102
|
-
# Update current instance with new data
|
|
103
|
-
for key, value in updated_agent.model_dump().items():
|
|
104
|
-
if hasattr(self, key):
|
|
105
|
-
setattr(self, key, value)
|
|
106
|
-
return self
|
|
107
|
-
|
|
108
|
-
def delete(self) -> None:
|
|
109
|
-
"""Delete the agent."""
|
|
110
|
-
if not self._client:
|
|
111
|
-
raise RuntimeError(
|
|
112
|
-
"No client available. Use client.get_agent_by_id() to get a client-connected agent."
|
|
113
|
-
)
|
|
114
|
-
self._client.delete_agent(self.id)
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
class Tool(BaseModel):
|
|
118
|
-
"""Tool model for API responses."""
|
|
119
|
-
|
|
120
|
-
id: str
|
|
121
|
-
name: str
|
|
122
|
-
tool_type: str | None = None
|
|
123
|
-
description: str | None = None
|
|
124
|
-
framework: str | None = None
|
|
125
|
-
version: str | None = None
|
|
126
|
-
tool_script: str | None = None
|
|
127
|
-
tool_file: str | None = None
|
|
128
|
-
tags: str | list[str] | None = None
|
|
129
|
-
_client: Any = None # Will hold client reference
|
|
130
|
-
|
|
131
|
-
def _set_client(self, client: Any) -> "Tool":
|
|
132
|
-
"""Set the client reference for this resource."""
|
|
133
|
-
self._client = client
|
|
134
|
-
return self
|
|
135
|
-
|
|
136
|
-
def get_script(self) -> str:
|
|
137
|
-
"""Get the tool script content."""
|
|
138
|
-
if self.tool_script:
|
|
139
|
-
return self.tool_script
|
|
140
|
-
elif self.tool_file:
|
|
141
|
-
return f"Script content from file: {self.tool_file}"
|
|
142
|
-
else:
|
|
143
|
-
return "No script content available"
|
|
144
|
-
|
|
145
|
-
def update(self, **kwargs) -> "Tool":
|
|
146
|
-
"""Update tool attributes.
|
|
147
|
-
|
|
148
|
-
Supports both metadata updates and file uploads.
|
|
149
|
-
Pass 'file' parameter to update tool code via file upload.
|
|
150
|
-
"""
|
|
151
|
-
if not self._client:
|
|
152
|
-
raise RuntimeError(
|
|
153
|
-
"No client available. Use client.get_tool_by_id() to get a client-connected tool."
|
|
154
|
-
)
|
|
155
|
-
|
|
156
|
-
# Check if file upload is requested
|
|
157
|
-
if "file" in kwargs:
|
|
158
|
-
file_path = kwargs.pop("file") # Remove file from kwargs for metadata
|
|
159
|
-
updated_tool = self._client.tools.update_tool_via_file(
|
|
160
|
-
self.id, file_path, **kwargs
|
|
161
|
-
)
|
|
162
|
-
else:
|
|
163
|
-
# Regular metadata update
|
|
164
|
-
updated_tool = self._client.tools.update_tool(self.id, **kwargs)
|
|
165
|
-
|
|
166
|
-
# Update current instance with new data
|
|
167
|
-
for key, value in updated_tool.model_dump().items():
|
|
168
|
-
if hasattr(self, key):
|
|
169
|
-
setattr(self, key, value)
|
|
170
|
-
return self
|
|
171
|
-
|
|
172
|
-
def delete(self) -> None:
|
|
173
|
-
"""Delete the tool."""
|
|
174
|
-
if not self._client:
|
|
175
|
-
raise RuntimeError(
|
|
176
|
-
"No client available. Use client.get_tool_by_id() to get a client-connected tool."
|
|
177
|
-
)
|
|
178
|
-
self._client.delete_tool(self.id)
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
class MCP(BaseModel):
|
|
182
|
-
"""MCP model for API responses."""
|
|
183
|
-
|
|
184
|
-
id: str
|
|
185
|
-
name: str
|
|
186
|
-
description: str | None = None
|
|
187
|
-
config: dict[str, Any] | None = None
|
|
188
|
-
transport: str | None = None # "sse" or "http"
|
|
189
|
-
authentication: dict[str, Any] | None = None
|
|
190
|
-
metadata: dict[str, Any] | None = None
|
|
191
|
-
_client: Any = None # Will hold client reference
|
|
192
|
-
|
|
193
|
-
def _set_client(self, client: Any) -> "MCP":
|
|
194
|
-
"""Set the client reference for this resource."""
|
|
195
|
-
self._client = client
|
|
196
|
-
return self
|
|
197
|
-
|
|
198
|
-
def get_tools(self) -> list[dict[str, Any]]:
|
|
199
|
-
"""Get tools available from this MCP."""
|
|
200
|
-
if not self._client:
|
|
201
|
-
raise RuntimeError(
|
|
202
|
-
"No client available. Use client.get_mcp_by_id() to get a client-connected MCP."
|
|
203
|
-
)
|
|
204
|
-
# This would delegate to the client's MCP tools endpoint
|
|
205
|
-
# For now, return empty list as placeholder
|
|
206
|
-
return []
|
|
207
|
-
|
|
208
|
-
def update(self, **kwargs) -> "MCP":
|
|
209
|
-
"""Update MCP attributes."""
|
|
210
|
-
if not self._client:
|
|
211
|
-
raise RuntimeError(
|
|
212
|
-
"No client available. Use client.get_mcp_by_id() to get a client-connected MCP."
|
|
213
|
-
)
|
|
214
|
-
updated_mcp = self._client.update_mcp(self.id, **kwargs)
|
|
215
|
-
# Update current instance with new data
|
|
216
|
-
for key, value in updated_mcp.model_dump().items():
|
|
217
|
-
if hasattr(self, key):
|
|
218
|
-
setattr(self, key, value)
|
|
219
|
-
return self
|
|
220
|
-
|
|
221
|
-
def delete(self) -> None:
|
|
222
|
-
"""Delete the MCP."""
|
|
223
|
-
if not self._client:
|
|
224
|
-
raise RuntimeError(
|
|
225
|
-
"No client available. Use client.get_mcp_by_id() to get a client-connected MCP."
|
|
226
|
-
)
|
|
227
|
-
self._client.delete_mcp(self.id)
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
class LanguageModelResponse(BaseModel):
|
|
231
|
-
"""Language model response model."""
|
|
232
|
-
|
|
233
|
-
name: str
|
|
234
|
-
provider: str
|
|
235
|
-
description: str | None = None
|
|
236
|
-
capabilities: list[str] | None = None
|
|
237
|
-
max_tokens: int | None = None
|
|
238
|
-
supports_streaming: bool = False
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
class TTYRenderer:
|
|
242
|
-
"""Simple TTY renderer for non-Rich environments."""
|
|
243
|
-
|
|
244
|
-
def __init__(self, use_color: bool = True):
|
|
245
|
-
"""Initialize the TTY renderer.
|
|
246
|
-
|
|
247
|
-
Args:
|
|
248
|
-
use_color: Whether to use color output
|
|
249
|
-
"""
|
|
250
|
-
self.use_color = use_color
|
|
251
|
-
|
|
252
|
-
def render_message(self, message: str, event_type: str = "message") -> None:
|
|
253
|
-
"""Render a message with optional color."""
|
|
254
|
-
if event_type == "error":
|
|
255
|
-
print(f"ERROR: {message}", flush=True)
|
|
256
|
-
elif event_type == "done":
|
|
257
|
-
print(f"\n✅ {message}", flush=True)
|
|
258
|
-
else:
|
|
259
|
-
print(message, flush=True)
|
glaip_sdk-0.1.0.dist-info/RECORD
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
glaip_sdk/__init__.py,sha256=-Itm_1dz4QwhIUmqagvCwwvSjKYKYJI3lZSHD2bwtko,366
|
|
2
|
-
glaip_sdk/_version.py,sha256=J-UdD2Nya3c8WAXCrTRY-2bWpKGvTYY_JIaubZ4OoEw,1999
|
|
3
|
-
glaip_sdk/branding.py,sha256=BvLcD-z1D8CnYhNSGs0B1LeIrXgG1bHJ-fr4AInNhwE,7356
|
|
4
|
-
glaip_sdk/cli/__init__.py,sha256=xCCfuF1Yc7mpCDcfhHZTX0vizvtrDSLeT8MJ3V7m5A0,156
|
|
5
|
-
glaip_sdk/cli/agent_config.py,sha256=VHjebw68wAdhGUzYdPH8qz10oADZPRgUQcPW6F7iHIU,2421
|
|
6
|
-
glaip_sdk/cli/auth.py,sha256=eMqMXss3v36yyimSgm4PN8uG85UvIFn1U_XOXUvcZmI,16026
|
|
7
|
-
glaip_sdk/cli/commands/__init__.py,sha256=N2go38u3C0MPxfDXk-K2zz93OnqSTpQyOE6dIC82lHg,191
|
|
8
|
-
glaip_sdk/cli/commands/agents.py,sha256=nIjJJor89TZ4RI3QUhpexIPxijImou8gW9STyHBRjy0,44449
|
|
9
|
-
glaip_sdk/cli/commands/configure.py,sha256=xpryuPXzuwfCKyolxRqh-WpzxIv7sBVp7ZUjlnNrkcQ,9338
|
|
10
|
-
glaip_sdk/cli/commands/mcps.py,sha256=_gqylQvKR5UHNbvfeh-EAUsfwW2vzJK8Ll7TrQwsKf8,37822
|
|
11
|
-
glaip_sdk/cli/commands/models.py,sha256=EUC-_3QPAjtqId4WobWbQZVPjgQ9Eo_srcGIRlhhPq8,1790
|
|
12
|
-
glaip_sdk/cli/commands/tools.py,sha256=rWWgzyfLp_WOMYxU1XluombLkRzWQH8WrohlWc75piU,19212
|
|
13
|
-
glaip_sdk/cli/commands/update.py,sha256=nV0C08bHDYn5byFP_N8rzdKbDc5_tDKXC19L_HftJX8,1869
|
|
14
|
-
glaip_sdk/cli/config.py,sha256=vCanx4Pv_juPX4W9O-SL658-Bq49MqyCsawPtKscpJU,1313
|
|
15
|
-
glaip_sdk/cli/context.py,sha256=M4weRf8dmp5bMtPLRF3w1StnRB7Lo8FPFq2GQMv3Rv8,3617
|
|
16
|
-
glaip_sdk/cli/display.py,sha256=0iysRFznPpkShRHp6MEc0Obao14D9k_Tx1lKoraF5f4,11273
|
|
17
|
-
glaip_sdk/cli/io.py,sha256=V8tIo0rc6t0CHGPM3cwhmlZAvzh4UPnlemUsrSFFtg8,3675
|
|
18
|
-
glaip_sdk/cli/main.py,sha256=O1q9h0LRAVxW8cwsAEXEGy6NDCchVZQHe3OXGNAGS8M,17305
|
|
19
|
-
glaip_sdk/cli/masking.py,sha256=BOZjwUqxQf3LQlYgUMwq7UYgve8x4_1Qk04ixiJJPZ8,4399
|
|
20
|
-
glaip_sdk/cli/mcp_validators.py,sha256=SeDbgXkRuBXyDtCmUMpL-1Vh7fmGldz-shAaHhOqbCc,10125
|
|
21
|
-
glaip_sdk/cli/pager.py,sha256=HZpdmgKjj367k0aZXXO9hyo38qyvWl0fUCD_VSeqJfs,8083
|
|
22
|
-
glaip_sdk/cli/parsers/__init__.py,sha256=Ycd4HDfYmA7GUGFt0ndBPBo5uTbv15XsXnYUj-a89ug,183
|
|
23
|
-
glaip_sdk/cli/parsers/json_input.py,sha256=ZBhJNUR4bKDX3A5s9lRvuCicaztvQyP0lWuiNYMIO08,5721
|
|
24
|
-
glaip_sdk/cli/resolution.py,sha256=cRkz5u8TNzjD4ybOywtisUXPKV0V-jXqKB68nRUF3O4,2465
|
|
25
|
-
glaip_sdk/cli/rich_helpers.py,sha256=ByUOmK16IisoXWE7nEiI55BF1KWDrm6KCYAxqHu0XOU,825
|
|
26
|
-
glaip_sdk/cli/slash/__init__.py,sha256=3kAXgOAnXmWkDheNtRuWqCooyIDaNYZMLTrbdhMGz9w,738
|
|
27
|
-
glaip_sdk/cli/slash/agent_session.py,sha256=Q1WUOthWMc6PglFwN_LCg60Yi51nvzPdjVdeumo_I8Y,9491
|
|
28
|
-
glaip_sdk/cli/slash/prompt.py,sha256=JBwRvIJgK0MR2Wx0wt7XAqAKpVL2Etp28ifwtklIM9M,7669
|
|
29
|
-
glaip_sdk/cli/slash/session.py,sha256=9Ti2cldFCSZKPE52ewlerkGwMLIwpd51SuQQVLb7nXU,41415
|
|
30
|
-
glaip_sdk/cli/transcript/__init__.py,sha256=zQNgAETJsj2tO3OmuINgXiCQCmh_ODzI6HQPPmxMXVs,1816
|
|
31
|
-
glaip_sdk/cli/transcript/cache.py,sha256=_YGv2M-tZASljGrzbJCgiV59KmIf0w-r6Qq0bqtkZqc,9860
|
|
32
|
-
glaip_sdk/cli/transcript/capture.py,sha256=EtSac3BBYGvcZTyCe9orPvKOZKZ8ooGBOlpKlmxAg_o,8325
|
|
33
|
-
glaip_sdk/cli/transcript/export.py,sha256=reCvrZVzli8_LzYe5ZNdaa-MwZ1ov2RjnDzKZWr_6-E,1117
|
|
34
|
-
glaip_sdk/cli/transcript/launcher.py,sha256=OBaTBcNywy8NbwfdYD4IIOlksXbLT_K3poGJDP6bNyE,2333
|
|
35
|
-
glaip_sdk/cli/transcript/viewer.py,sha256=tsPj4QmvwgTxYW_c4Ljt5uoCg3WeAR3vX3JHKBUnr-Q,27016
|
|
36
|
-
glaip_sdk/cli/update_notifier.py,sha256=Zy4VJVGI4rfYFnMQ3J2IwXLKhDZ95ODSTXgfg7gdrxU,4175
|
|
37
|
-
glaip_sdk/cli/utils.py,sha256=0WaFszJdvJvDCAn5AyNsSWiQpoaNspBbvXOCjXmJGRg,41009
|
|
38
|
-
glaip_sdk/cli/validators.py,sha256=USbBgY86AwuDHO-Q_g8g7hu-ot4NgITBsWjTWIl62ms,5569
|
|
39
|
-
glaip_sdk/client/__init__.py,sha256=nYLXfBVTTWwKjP0e63iumPYO4k5FifwWaELQPaPIKIg,188
|
|
40
|
-
glaip_sdk/client/_agent_payloads.py,sha256=sYlMzrfAdd8KC37qxokLy2uDd3aOhzQirnv7UYlvwYc,16385
|
|
41
|
-
glaip_sdk/client/agents.py,sha256=nGXYIAkz3jDL2glNyoROGjiAUpLwXdeqYrnc4Qxl8o0,37628
|
|
42
|
-
glaip_sdk/client/base.py,sha256=OPRlAWhZ77rUK0MRGA83-zW5NVhxJ1RgdfcfGOYr8rI,16267
|
|
43
|
-
glaip_sdk/client/main.py,sha256=tELAA36rzthnNKTgwZ6lLPb3Au8Wh1mF8Kz-9N-YtCg,8652
|
|
44
|
-
glaip_sdk/client/mcps.py,sha256=-O-I15qjbwfSA69mouHY6g5_qgPWC4rM98VJLpOkh1A,8975
|
|
45
|
-
glaip_sdk/client/run_rendering.py,sha256=govFrOImeB-KtnbHtf82dIjGJ26KMT4B7qJA7ZOucBE,12296
|
|
46
|
-
glaip_sdk/client/tools.py,sha256=rWxfNO30sS468513IoE5PfEaqNq6HBwmcHVh4FzhvYQ,17532
|
|
47
|
-
glaip_sdk/client/validators.py,sha256=NtPsWjQLjj25LiUnmR-WuS8lL5p4MVRaYT9UVRmj9bo,8809
|
|
48
|
-
glaip_sdk/config/constants.py,sha256=B9CSlYG8LYjQuo_vNpqy-eSks3ej37FMcvJMy6d_F4U,888
|
|
49
|
-
glaip_sdk/exceptions.py,sha256=ILquxC4QGPFR9eY6RpeXzkQsblfsvZMGFqz38ZjeW3E,2345
|
|
50
|
-
glaip_sdk/icons.py,sha256=J5THz0ReAmDwIiIooh1_G3Le-mwTJyEjhJDdJ13KRxM,524
|
|
51
|
-
glaip_sdk/models.py,sha256=uXWsC5VdXSxPci8GRYOofZrIdsFgradayrIzJyhc7u8,9188
|
|
52
|
-
glaip_sdk/payload_schemas/__init__.py,sha256=fJamlkpS3IfS9xyKAQaUbnalvrtG5Ied69OUVAA3xvs,395
|
|
53
|
-
glaip_sdk/payload_schemas/agent.py,sha256=nlizuv2w4SVzmMJSE90rE6Ll0Hfpcr5hvPsW_NtXCV0,3204
|
|
54
|
-
glaip_sdk/rich_components.py,sha256=rU3CD55WZlwjY81usctfX-S0bmsQ2Yd4nWEXhueGv7U,2090
|
|
55
|
-
glaip_sdk/utils/__init__.py,sha256=HLL4AX31lWo9gJn1dL1S-IPs2q4yPxqeHVCLJfSYyx4,892
|
|
56
|
-
glaip_sdk/utils/agent_config.py,sha256=p3uK5qC0M5uQv9uY7-U8ej11Vh81fwKAPSsYcRoNdlk,7342
|
|
57
|
-
glaip_sdk/utils/client_utils.py,sha256=OATfWztkcGlGNnrrLdM7C5eyCT7EoBD4xCLrl4rdo2w,13976
|
|
58
|
-
glaip_sdk/utils/display.py,sha256=afHuUUKs6eQrCMh16r88kNufbEtOH6WQLT9yatPP610,4027
|
|
59
|
-
glaip_sdk/utils/general.py,sha256=V5hJrIpYDvDsldU_nChHpuvV2AwhFLUI7Qvcaihq_8A,2270
|
|
60
|
-
glaip_sdk/utils/import_export.py,sha256=jEhl5U6hWWMR1wo5AXpV-_jN_56DcWcemOa2UaFHapk,5217
|
|
61
|
-
glaip_sdk/utils/rendering/__init__.py,sha256=vXjwk5rPhhfPyD8S0DnV4GFFEtPJp4HCCg1Um9SXfs0,70
|
|
62
|
-
glaip_sdk/utils/rendering/formatting.py,sha256=3UKsWmtw7aJA41RV1qrqVDu9zqarMpxb7tIYPrDm9PQ,8849
|
|
63
|
-
glaip_sdk/utils/rendering/models.py,sha256=qH_TFm7J36G_O2blGIBUavbM6RQXil4aNazEjlKnaPI,2870
|
|
64
|
-
glaip_sdk/utils/rendering/renderer/__init__.py,sha256=UHJEw3co3ESSQja8DZRHByO_R1s7sDlYxobnSOt1G24,2857
|
|
65
|
-
glaip_sdk/utils/rendering/renderer/base.py,sha256=XDTp08zPFwGM0zby9ut9nZ61pihUpHPe08onzTybC9g,84375
|
|
66
|
-
glaip_sdk/utils/rendering/renderer/config.py,sha256=ePomLA3iBHkjk5bJftvuMx_qVtT83nbj4YrFSZqGRAs,734
|
|
67
|
-
glaip_sdk/utils/rendering/renderer/console.py,sha256=4cLOw4Q1fkHkApuj6dWW8eYpeYdcT0t2SO5MbVt5UTc,1844
|
|
68
|
-
glaip_sdk/utils/rendering/renderer/debug.py,sha256=uVaBs33mfXo44lWm4Fi5LXcrlfVmT1_Kp_IXf09RzfI,5651
|
|
69
|
-
glaip_sdk/utils/rendering/renderer/panels.py,sha256=Bv_dpUKiKlL6r0_aZ2okY7Ov7pp5-MxFjjftTWG71L4,3790
|
|
70
|
-
glaip_sdk/utils/rendering/renderer/progress.py,sha256=RnnAnw5rFd24Ij0U8Qm2oFHud8mmzDQ9Fwg3QFrRJNg,4128
|
|
71
|
-
glaip_sdk/utils/rendering/renderer/stream.py,sha256=_dKICrMFhnhaz9mZXVctk6gWxeoWPt3HftoMPSNnEvE,8660
|
|
72
|
-
glaip_sdk/utils/rendering/renderer/toggle.py,sha256=ko5IpSDQUxTh5WmmrMYNgvgxYomrptLTSmoUosg3yLM,5418
|
|
73
|
-
glaip_sdk/utils/rendering/step_tree_state.py,sha256=j-O0P3KQ1hy-vKPiu-jbl6P9r0HWWChh05uXLPHvc-M,4076
|
|
74
|
-
glaip_sdk/utils/rendering/steps.py,sha256=CV1E96jiSllDsxUyBe5mDP-17jAQhxRkZr59WeUg4CQ,42778
|
|
75
|
-
glaip_sdk/utils/resource_refs.py,sha256=0YzblJNfRhz9xhpaKE9aE68XEV-6_ssr0fIkiMVOka0,5489
|
|
76
|
-
glaip_sdk/utils/run_renderer.py,sha256=d_VMI6LbvHPUUeRmGqh5wK_lHqDEIAcym2iqpbtDad0,1365
|
|
77
|
-
glaip_sdk/utils/serialization.py,sha256=3Bwxw2M0qR59Rx0GS0hrnWZz46Ht-gpda9dva07Pr_A,12893
|
|
78
|
-
glaip_sdk/utils/validation.py,sha256=6jv1fExRllOK6sIvU7YX3a-Sf0AlFHar4KYiTC0Pzs4,6987
|
|
79
|
-
glaip_sdk-0.1.0.dist-info/METADATA,sha256=3EmpdWW7BOec2_yqpwp-ts3nwF_-JZkIp5d_4SBGKes,6023
|
|
80
|
-
glaip_sdk-0.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
81
|
-
glaip_sdk-0.1.0.dist-info/entry_points.txt,sha256=EGs8NO8J1fdFMWA3CsF7sKBEvtHb_fujdCoNPhfMouE,47
|
|
82
|
-
glaip_sdk-0.1.0.dist-info/RECORD,,
|
|
File without changes
|