scale-gp-beta 0.1.0a40__py3-none-any.whl → 0.1.0a42__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.
@@ -0,0 +1,38 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+ from .shared.identity import Identity
9
+
10
+ __all__ = ["BuildCreateResponse"]
11
+
12
+
13
+ class BuildCreateResponse(BaseModel):
14
+ account_id: str
15
+
16
+ build_id: str
17
+
18
+ created_at: datetime
19
+
20
+ created_by: Identity
21
+ """The identity that created the entity."""
22
+
23
+ image_name: str
24
+
25
+ image_tag: str
26
+
27
+ image_url: str
28
+
29
+ status: str
30
+ """The current build status from the cloud provider"""
31
+
32
+ build_end_time: Optional[datetime] = None
33
+ """When the cloud provider finished the build"""
34
+
35
+ build_start_time: Optional[datetime] = None
36
+ """When the cloud provider started the build"""
37
+
38
+ object: Optional[Literal["agentex_cloud_build"]] = None
@@ -0,0 +1,19 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Literal, TypedDict
6
+
7
+ __all__ = ["BuildListParams"]
8
+
9
+
10
+ class BuildListParams(TypedDict, total=False):
11
+ ending_before: str
12
+
13
+ limit: int
14
+
15
+ sort_by: str
16
+
17
+ sort_order: Literal["asc", "desc"]
18
+
19
+ starting_after: str
@@ -0,0 +1,38 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+ from .shared.identity import Identity
9
+
10
+ __all__ = ["BuildListResponse"]
11
+
12
+
13
+ class BuildListResponse(BaseModel):
14
+ account_id: str
15
+
16
+ build_id: str
17
+
18
+ created_at: datetime
19
+
20
+ created_by: Identity
21
+ """The identity that created the entity."""
22
+
23
+ image_name: str
24
+
25
+ image_tag: str
26
+
27
+ image_url: str
28
+
29
+ status: str
30
+ """The current build status from the cloud provider"""
31
+
32
+ build_end_time: Optional[datetime] = None
33
+ """When the cloud provider finished the build"""
34
+
35
+ build_start_time: Optional[datetime] = None
36
+ """When the cloud provider started the build"""
37
+
38
+ object: Optional[Literal["agentex_cloud_build"]] = None
@@ -0,0 +1,38 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+ from .shared.identity import Identity
9
+
10
+ __all__ = ["BuildRetrieveResponse"]
11
+
12
+
13
+ class BuildRetrieveResponse(BaseModel):
14
+ account_id: str
15
+
16
+ build_id: str
17
+
18
+ created_at: datetime
19
+
20
+ created_by: Identity
21
+ """The identity that created the entity."""
22
+
23
+ image_name: str
24
+
25
+ image_tag: str
26
+
27
+ image_url: str
28
+
29
+ status: str
30
+ """The current build status from the cloud provider"""
31
+
32
+ build_end_time: Optional[datetime] = None
33
+ """When the cloud provider finished the build"""
34
+
35
+ build_start_time: Optional[datetime] = None
36
+ """When the cloud provider started the build"""
37
+
38
+ object: Optional[Literal["agentex_cloud_build"]] = None
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .._models import BaseModel
4
+
5
+ __all__ = ["StreamChunk"]
6
+
7
+
8
+ class StreamChunk(BaseModel):
9
+ """A single log line from the build process."""
10
+
11
+ line: str
12
+ """The log line content"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: scale-gp-beta
3
- Version: 0.1.0a40
3
+ Version: 0.1.0a42
4
4
  Summary: The official Python library for the Scale GP API
5
5
  Project-URL: Homepage, https://github.com/scaleapi/sgp-python-beta
6
6
  Project-URL: Repository, https://github.com/scaleapi/sgp-python-beta
@@ -44,6 +44,15 @@ and offers both synchronous and asynchronous clients powered by [httpx](https://
44
44
 
45
45
  It is generated with [Stainless](https://www.stainless.com/).
46
46
 
47
+ ## MCP Server
48
+
49
+ Use the Scale GP MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
50
+
51
+ [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=scale-gp-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInNjYWxlLWdwLW1jcCJdfQ)
52
+ [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22scale-gp-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22scale-gp-mcp%22%5D%7D)
53
+
54
+ > Note: You may need to set environment variables in your MCP client.
55
+
47
56
  ## Documentation
48
57
 
49
58
  The REST API documentation can be found on [docs.gp.scale.com](https://docs.gp.scale.com). The full API of this library can be found in [api.md](https://github.com/scaleapi/sgp-python-beta/tree/main/api.md).
@@ -52,7 +61,7 @@ The REST API documentation can be found on [docs.gp.scale.com](https://docs.gp.s
52
61
 
53
62
  ```sh
54
63
  # install from PyPI
55
- pip install --pre scale-gp-beta
64
+ pip install '--pre scale-gp-beta'
56
65
  ```
57
66
 
58
67
  ## Usage
@@ -358,7 +367,7 @@ You can enable this by installing `aiohttp`:
358
367
 
359
368
  ```sh
360
369
  # install from PyPI
361
- pip install --pre scale-gp-beta[aiohttp]
370
+ pip install '--pre scale-gp-beta[aiohttp]'
362
371
  ```
363
372
 
364
373
  Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
@@ -386,6 +395,44 @@ async def main() -> None:
386
395
  asyncio.run(main())
387
396
  ```
388
397
 
398
+ ## Streaming responses
399
+
400
+ We provide support for streaming responses using Server Side Events (SSE).
401
+
402
+ ```python
403
+ from scale_gp_beta import SGPClient
404
+
405
+ client = SGPClient(
406
+ account_id="My Account ID",
407
+ )
408
+
409
+ stream = client.chat.completions.create(
410
+ messages=[{"foo": "bar"}],
411
+ model="model",
412
+ stream=True,
413
+ )
414
+ for completion in stream:
415
+ print(completion)
416
+ ```
417
+
418
+ The async client uses the exact same interface.
419
+
420
+ ```python
421
+ from scale_gp_beta import AsyncSGPClient
422
+
423
+ client = AsyncSGPClient(
424
+ account_id="My Account ID",
425
+ )
426
+
427
+ stream = await client.chat.completions.create(
428
+ messages=[{"foo": "bar"}],
429
+ model="model",
430
+ stream=True,
431
+ )
432
+ async for completion in stream:
433
+ print(completion)
434
+ ```
435
+
389
436
  ## Using types
390
437
 
391
438
  Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typing.html#typing.TypedDict). Responses are [Pydantic models](https://docs.pydantic.dev) which also provide helper methods for things like:
@@ -1,17 +1,17 @@
1
1
  scale_gp_beta/__init__.py,sha256=MFsKxnaLkZ-Rqv127bA2T0OpHD3me1OnwIom-0I2gB0,2742
2
- scale_gp_beta/_base_client.py,sha256=kgmMG_sRxHSOpDZ5bRlQuHLsUU4Fyvj65xyWZjJUaXs,67254
3
- scale_gp_beta/_client.py,sha256=CDVgOH_HDZQtzirfkzLB4xUwArlcRUui7JYOvSwoyBo,39792
2
+ scale_gp_beta/_base_client.py,sha256=J1u-5BLJ_gL10TknCyP420e8kRngnTzGh6bY5AcZez8,73416
3
+ scale_gp_beta/_client.py,sha256=dzyLzPqwlvAjC0Z3rdSAl7clxuRv0EOyr4hRGrak3vU,41188
4
4
  scale_gp_beta/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
5
5
  scale_gp_beta/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
6
6
  scale_gp_beta/_exceptions.py,sha256=95GM5CLFtP-QMjjmzsr5ajjZOyEZvyaETfGmqNPR8YM,3226
7
7
  scale_gp_beta/_files.py,sha256=HOCL7NYupx5rmxPWzvzifOW_LkRj0zBssmxqLFtYURI,3616
8
- scale_gp_beta/_models.py,sha256=3D65psj_C02Mw0K2zpBWrn1khmrvtEXgTTQ6P4r3tUY,31837
8
+ scale_gp_beta/_models.py,sha256=R3MpO2z4XhTAnD3ObEks32suRXleF1g7BEgQTOLIxTs,32112
9
9
  scale_gp_beta/_qs.py,sha256=craIKyvPktJ94cvf9zn8j8ekG9dWJzhWv0ob34lIOv4,4828
10
10
  scale_gp_beta/_resource.py,sha256=siZly_U6D0AOVLAzaOsqUdEFFzVMbWRj-ml30nvRp7E,1118
11
11
  scale_gp_beta/_response.py,sha256=GemuybPk0uemovTlGHyHkj-ScYTTDJA0jqH5FQqIPwQ,28852
12
- scale_gp_beta/_streaming.py,sha256=-_hEXPmI3ouK-z-AqZgV-7E0nsg0hGFbSay_4DS0G4E,10233
13
- scale_gp_beta/_types.py,sha256=0FzYp68NWFG94MjRqPn3u7XVdEymv8OqM_94Qhy9HnM,7302
14
- scale_gp_beta/_version.py,sha256=4rgpyTZJ7kotJDT3YdaDpS00Lh8o4i5hnA_li-WPNg4,174
12
+ scale_gp_beta/_streaming.py,sha256=xX-SwwToqjKjZCpAuUixrO5qTWgdHzOMErAadnKk4Yw,10317
13
+ scale_gp_beta/_types.py,sha256=91u4yp566AoT5VoDhNGZbmJ213XzpSbyPHgZLCBqAs8,7601
14
+ scale_gp_beta/_version.py,sha256=ld1qdiUAH4VxEkLUUYjrZLQwiOJh-ooM2jdekXQG_mA,174
15
15
  scale_gp_beta/pagination.py,sha256=t-U86PYxl20VRsz8VXOMJJDe7HxkX7ISFMvRNbBNy9s,4054
16
16
  scale_gp_beta/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  scale_gp_beta/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
@@ -43,7 +43,8 @@ scale_gp_beta/lib/tracing/integrations/openai/__init__.py,sha256=47DEQpj8HBSa-_T
43
43
  scale_gp_beta/lib/tracing/integrations/openai/openai_span_type_map.py,sha256=WIPVdOd1aaVmenZuK3PJ7pZMnk_uJRX5vQXj0s6O9ow,792
44
44
  scale_gp_beta/lib/tracing/integrations/openai/openai_tracing_sgp_processor.py,sha256=o-Fp_V7U9cC1kKP0_750GQInKGlF7KAdpIbGTmyu2tg,5270
45
45
  scale_gp_beta/lib/tracing/integrations/openai/utils.py,sha256=DqCb7_QX-OT4y34K9wtoXIv7-Yk_IOvSbQvC96Sgpy8,2183
46
- scale_gp_beta/resources/__init__.py,sha256=93-Ld9MSd_dX_jld0IQD_Ckm4n5NvoR2dy0AiNUYDrg,7003
46
+ scale_gp_beta/resources/__init__.py,sha256=7OBbTu19SH3ZS6kO0VWCPIOUk66prBJpLy6PVP4W8ZA,7440
47
+ scale_gp_beta/resources/build.py,sha256=1LNowzczQYRXKN0xqquhsAqqQh78Jxa_Njab1hoXsGs,22276
47
48
  scale_gp_beta/resources/completions.py,sha256=wtVhUh5LMwXolICQhpeCZUlzRM-ChLSvLiQm92sO-EQ,30934
48
49
  scale_gp_beta/resources/credentials.py,sha256=Eax7ouhJQ61CHy-mQlmBiylBKiNfGhBFoWlBiuHHQH4,32903
49
50
  scale_gp_beta/resources/dataset_items.py,sha256=-cJJ1ikJ5mDUGIRkhqTuY652h0EAP5Wa-lmH2gA782w,23278
@@ -62,9 +63,15 @@ scale_gp_beta/resources/chat/completions.py,sha256=yOnyGK2QBaFNL0el5aL1A5T6JmBKo
62
63
  scale_gp_beta/resources/files/__init__.py,sha256=VgAtqUimN5Kf_-lmEaNBnu_ApGegKsJQ1zNf-42MXFA,1002
63
64
  scale_gp_beta/resources/files/content.py,sha256=QDtcnsK2my4-ndmwyaR6zyQnV1fEjIJ7CSDoyXUcYxg,5762
64
65
  scale_gp_beta/resources/files/files.py,sha256=dowTYD-xKhCI17zINYZywUtzv7VwofjV1tY6AfncHjE,24603
65
- scale_gp_beta/types/__init__.py,sha256=UawYclVqYJ0aRV2gVIRH9dahG8qf302hHzXVB9d8vug,6449
66
+ scale_gp_beta/types/__init__.py,sha256=DWbXOTnI7vqsLfOJnKHVotfq4PxIJdO5K_fxicy3-I0,6952
66
67
  scale_gp_beta/types/approval_status.py,sha256=rI70l7e2ey2ax8tR_sBkziVSirq_QaDDV1bHgNrfCWQ,227
67
68
  scale_gp_beta/types/assessment_type.py,sha256=_4V6RZ5wUyU0UYrDjCoIRdaiiZtZVpY6DMsW1QClq-c,271
69
+ scale_gp_beta/types/build_cancel_response.py,sha256=ghlldFT3BpPZbbDa0Ag0Jj4gJKXXe9rDxX9BPN9j29Q,867
70
+ scale_gp_beta/types/build_create_params.py,sha256=3alD9BW5k1rHJxgUE4qj4Bj4xeMevV2jY0makgJzrHs,628
71
+ scale_gp_beta/types/build_create_response.py,sha256=-llE80GkT8AnycW4Bl8XacbhnkJQCdV8oNxG2MnsFe8,867
72
+ scale_gp_beta/types/build_list_params.py,sha256=Vwq0wtyTrHPcaRpr-qIBBjf2BRqISbgo7J5S8qUAHG8,374
73
+ scale_gp_beta/types/build_list_response.py,sha256=SBAAuCRpQw3C6dbE43GhPGQMAHQ9YYTtZ8xAlcgbYro,863
74
+ scale_gp_beta/types/build_retrieve_response.py,sha256=wnSjOzg2Cq61FCBu48Pn1v2a6LKFj5Hyz5jsqSLJGVA,871
68
75
  scale_gp_beta/types/completion.py,sha256=1UOFGSkAmTCfhKGSQQLEU-PHGdnWLV1y0usa1UizBBQ,5406
69
76
  scale_gp_beta/types/completion_create_params.py,sha256=XWyto29VVJQ5nJTykSXPwlW5b4CZxGU7GSlk1hMwDxo,3114
70
77
  scale_gp_beta/types/component.py,sha256=0dLrvTEHpF628wZ-CIniOpsOzKfnLlaZy4OPIFDzoF0,403
@@ -139,6 +146,7 @@ scale_gp_beta/types/span_type.py,sha256=Y4cFVO66V_KJQ2stokdspyBunh4kxgSDt2EZg960
139
146
  scale_gp_beta/types/span_update_params.py,sha256=xpk0NKNsw_RAXIZN1U1ddqUHpPE--W9_Y3i1tTZKLZg,574
140
147
  scale_gp_beta/types/span_upsert_batch_params.py,sha256=JdXDZapv7kRYYgU5Stltyagtw4PPuCZLUy7Qo8019bQ,1329
141
148
  scale_gp_beta/types/span_upsert_batch_response.py,sha256=Gkndmd_cyfodeGaCJu4sF4TsgB22hgHVlmoek3e_Kkc,366
149
+ scale_gp_beta/types/stream_chunk.py,sha256=3D9ElvLwGCPwvymBiLClUs3fhGXIoNTXx0TiS7C91iI,276
142
150
  scale_gp_beta/types/chat/__init__.py,sha256=YmEJo3C_C7aRkImUaKB5BG97oOGkV0q3sHimL8cMa4g,688
143
151
  scale_gp_beta/types/chat/chat_completion.py,sha256=JM1meIbWU2ImWkSO2m78666ltpUgDzgj1RpN5y3EaZM,16335
144
152
  scale_gp_beta/types/chat/chat_completion_chunk.py,sha256=w7kGJcwoGuj_wl9kEACNspEvy8RV-h1wlwMW3dhC-xY,12025
@@ -150,7 +158,7 @@ scale_gp_beta/types/chat/model_definition.py,sha256=OWcZ4StZ4K2wfL7FqHNK-HqxLjy9
150
158
  scale_gp_beta/types/files/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
151
159
  scale_gp_beta/types/shared/__init__.py,sha256=6-walu4YgOTaOj7wsidywTj67PyBJaNYFqasfiTP9-4,130
152
160
  scale_gp_beta/types/shared/identity.py,sha256=4XDoJjsPI4lkwyaYyNstw7OunIzJjVWujPoZPrNdoQA,348
153
- scale_gp_beta-0.1.0a40.dist-info/METADATA,sha256=JGb8RavPrGHLbGHxNlmPLkmoSYSpSusgk6Lt8fQQSQI,27988
154
- scale_gp_beta-0.1.0a40.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
155
- scale_gp_beta-0.1.0a40.dist-info/licenses/LICENSE,sha256=x49Bj8r_ZpqfzThbmfHyZ_bE88XvHdIMI_ANyLHFFRE,11338
156
- scale_gp_beta-0.1.0a40.dist-info/RECORD,,
161
+ scale_gp_beta-0.1.0a42.dist-info/METADATA,sha256=r3OH5p8Riqmmud4qooNUGofX-AGyFBEcEVWPt0_sbok,30328
162
+ scale_gp_beta-0.1.0a42.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
163
+ scale_gp_beta-0.1.0a42.dist-info/licenses/LICENSE,sha256=LvNy55OMOsNOGUqjHCwQ6uYO0IuU9LJp1CJRpoz0abY,11338
164
+ scale_gp_beta-0.1.0a42.dist-info/RECORD,,
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2025 Scale GP
189
+ Copyright 2026 Scale GP
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.