Skip to content

Commit bc40c90

Browse files
committed
Release 0.0.81
1 parent 298049a commit bc40c90

File tree

14 files changed

+334
-32
lines changed

14 files changed

+334
-32
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "axiomatic"
33

44
[tool.poetry]
55
name = "axiomatic"
6-
version = "0.0.80"
6+
version = "0.0.81"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,66 @@ client.tools.status(
975975
</dl>
976976

977977

978+
</dd>
979+
</dl>
980+
</details>
981+
982+
<details><summary><code>client.tools.<a href="src/axiomatic/tools/client.py">list</a>()</code></summary>
983+
<dl>
984+
<dd>
985+
986+
#### 📝 Description
987+
988+
<dl>
989+
<dd>
990+
991+
<dl>
992+
<dd>
993+
994+
Get the list of available tools to execute code.
995+
</dd>
996+
</dl>
997+
</dd>
998+
</dl>
999+
1000+
#### 🔌 Usage
1001+
1002+
<dl>
1003+
<dd>
1004+
1005+
<dl>
1006+
<dd>
1007+
1008+
```python
1009+
from axiomatic import Axiomatic
1010+
1011+
client = Axiomatic(
1012+
api_key="YOUR_API_KEY",
1013+
)
1014+
client.tools.list()
1015+
1016+
```
1017+
</dd>
1018+
</dl>
1019+
</dd>
1020+
</dl>
1021+
1022+
#### ⚙️ Parameters
1023+
1024+
<dl>
1025+
<dd>
1026+
1027+
<dl>
1028+
<dd>
1029+
1030+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1031+
1032+
</dd>
1033+
</dl>
1034+
</dd>
1035+
</dl>
1036+
1037+
9781038
</dd>
9791039
</dl>
9801040
</details>

src/axiomatic/__init__.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from .types import (
4+
AxesInfo,
45
Bundle,
56
BundleSettingsValue,
6-
ColorToPoints,
77
Computation,
88
ComputationArgumentsValue,
99
CostFunction,
@@ -14,6 +14,8 @@
1414
ExecuteCodeResponse,
1515
ExtractConstantsResponse,
1616
ExtractTextResponse,
17+
ExtractedPoint,
18+
ExtractedPoints,
1719
FindMappingResponse,
1820
FindUserResponse,
1921
FormalizeCircuitResponse,
@@ -40,7 +42,8 @@
4042
PicInstanceSettingsValue,
4143
PicWarnings,
4244
Placement,
43-
Points,
45+
PlotInfo,
46+
PlotParserOutput,
4447
RefineCodeResponse,
4548
RefineComponentCodeResponse,
4649
ScheduleJobResponse,
@@ -56,6 +59,7 @@
5659
StructureFunctionCallArgumentsValue,
5760
StructureFunctionCallExpectedResult,
5861
SummarizerResponse,
62+
ToolsListResponse,
5963
UnformalizableStatement,
6064
UserRequirement,
6165
ValidateNetlistResponse,
@@ -74,11 +78,11 @@
7478

7579
__all__ = [
7680
"AsyncAxiomatic",
81+
"AxesInfo",
7782
"Axiomatic",
7883
"AxiomaticEnvironment",
7984
"Bundle",
8085
"BundleSettingsValue",
81-
"ColorToPoints",
8286
"Computation",
8387
"ComputationArgumentsValue",
8488
"CostFunction",
@@ -89,6 +93,8 @@
8993
"ExecuteCodeResponse",
9094
"ExtractConstantsResponse",
9195
"ExtractTextResponse",
96+
"ExtractedPoint",
97+
"ExtractedPoints",
9298
"FindMappingResponse",
9399
"FindUserResponse",
94100
"FormalizeCircuitResponse",
@@ -115,7 +121,8 @@
115121
"PicInstanceSettingsValue",
116122
"PicWarnings",
117123
"Placement",
118-
"Points",
124+
"PlotInfo",
125+
"PlotParserOutput",
119126
"RefineCodeResponse",
120127
"RefineComponentCodeResponse",
121128
"ScheduleJobResponse",
@@ -131,6 +138,7 @@
131138
"StructureFunctionCallArgumentsValue",
132139
"StructureFunctionCallExpectedResult",
133140
"SummarizerResponse",
141+
"ToolsListResponse",
134142
"UnformalizableStatement",
135143
"UnprocessableEntityError",
136144
"UserRequirement",

src/axiomatic/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1616
headers: typing.Dict[str, str] = {
1717
"X-Fern-Language": "Python",
1818
"X-Fern-SDK-Name": "axiomatic",
19-
"X-Fern-SDK-Version": "0.0.80",
19+
"X-Fern-SDK-Version": "0.0.81",
2020
}
2121
headers["X-API-Key"] = self.api_key
2222
return headers

src/axiomatic/document/plot/client.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from ...core.client_wrapper import SyncClientWrapper
55
from ... import core
66
from ...core.request_options import RequestOptions
7-
from ...types.color_to_points import ColorToPoints
7+
from ...types.plot_parser_output import PlotParserOutput
88
from ...core.pydantic_utilities import parse_obj_as
99
from ...errors.unprocessable_entity_error import UnprocessableEntityError
1010
from ...types.http_validation_error import HttpValidationError
@@ -28,7 +28,7 @@ def points(
2828
plot_info: typing.Optional[str] = None,
2929
get_img_coords: typing.Optional[bool] = None,
3030
request_options: typing.Optional[RequestOptions] = None,
31-
) -> ColorToPoints:
31+
) -> PlotParserOutput:
3232
"""
3333
Extracts points from plots
3434
@@ -51,7 +51,7 @@ def points(
5151
5252
Returns
5353
-------
54-
ColorToPoints
54+
PlotParserOutput
5555
Successful Response
5656
5757
Examples
@@ -81,9 +81,9 @@ def points(
8181
try:
8282
if 200 <= _response.status_code < 300:
8383
return typing.cast(
84-
ColorToPoints,
84+
PlotParserOutput,
8585
parse_obj_as(
86-
type_=ColorToPoints, # type: ignore
86+
type_=PlotParserOutput, # type: ignore
8787
object_=_response.json(),
8888
),
8989
)
@@ -115,7 +115,7 @@ async def points(
115115
plot_info: typing.Optional[str] = None,
116116
get_img_coords: typing.Optional[bool] = None,
117117
request_options: typing.Optional[RequestOptions] = None,
118-
) -> ColorToPoints:
118+
) -> PlotParserOutput:
119119
"""
120120
Extracts points from plots
121121
@@ -138,7 +138,7 @@ async def points(
138138
139139
Returns
140140
-------
141-
ColorToPoints
141+
PlotParserOutput
142142
Successful Response
143143
144144
Examples
@@ -176,9 +176,9 @@ async def main() -> None:
176176
try:
177177
if 200 <= _response.status_code < 300:
178178
return typing.cast(
179-
ColorToPoints,
179+
PlotParserOutput,
180180
parse_obj_as(
181-
type_=ColorToPoints, # type: ignore
181+
type_=PlotParserOutput, # type: ignore
182182
object_=_response.json(),
183183
),
184184
)

src/axiomatic/tools/client.py

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from ..core.api_error import ApiError
1212
from ..types.status_response import StatusResponse
1313
from ..core.jsonable_encoder import jsonable_encoder
14+
from ..types.tools_list_response import ToolsListResponse
1415
from ..core.client_wrapper import AsyncClientWrapper
1516

1617
# this is used as the default value for optional parameters
@@ -146,6 +147,48 @@ def status(self, job_id: str, *, request_options: typing.Optional[RequestOptions
146147
raise ApiError(status_code=_response.status_code, body=_response.text)
147148
raise ApiError(status_code=_response.status_code, body=_response_json)
148149

150+
def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> ToolsListResponse:
151+
"""
152+
Get the list of available tools to execute code.
153+
154+
Parameters
155+
----------
156+
request_options : typing.Optional[RequestOptions]
157+
Request-specific configuration.
158+
159+
Returns
160+
-------
161+
ToolsListResponse
162+
Successful Response
163+
164+
Examples
165+
--------
166+
from axiomatic import Axiomatic
167+
168+
client = Axiomatic(
169+
api_key="YOUR_API_KEY",
170+
)
171+
client.tools.list()
172+
"""
173+
_response = self._client_wrapper.httpx_client.request(
174+
"jobs/list/tools",
175+
method="GET",
176+
request_options=request_options,
177+
)
178+
try:
179+
if 200 <= _response.status_code < 300:
180+
return typing.cast(
181+
ToolsListResponse,
182+
parse_obj_as(
183+
type_=ToolsListResponse, # type: ignore
184+
object_=_response.json(),
185+
),
186+
)
187+
_response_json = _response.json()
188+
except JSONDecodeError:
189+
raise ApiError(status_code=_response.status_code, body=_response.text)
190+
raise ApiError(status_code=_response.status_code, body=_response_json)
191+
149192

150193
class AsyncToolsClient:
151194
def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -291,3 +334,53 @@ async def main() -> None:
291334
except JSONDecodeError:
292335
raise ApiError(status_code=_response.status_code, body=_response.text)
293336
raise ApiError(status_code=_response.status_code, body=_response_json)
337+
338+
async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> ToolsListResponse:
339+
"""
340+
Get the list of available tools to execute code.
341+
342+
Parameters
343+
----------
344+
request_options : typing.Optional[RequestOptions]
345+
Request-specific configuration.
346+
347+
Returns
348+
-------
349+
ToolsListResponse
350+
Successful Response
351+
352+
Examples
353+
--------
354+
import asyncio
355+
356+
from axiomatic import AsyncAxiomatic
357+
358+
client = AsyncAxiomatic(
359+
api_key="YOUR_API_KEY",
360+
)
361+
362+
363+
async def main() -> None:
364+
await client.tools.list()
365+
366+
367+
asyncio.run(main())
368+
"""
369+
_response = await self._client_wrapper.httpx_client.request(
370+
"jobs/list/tools",
371+
method="GET",
372+
request_options=request_options,
373+
)
374+
try:
375+
if 200 <= _response.status_code < 300:
376+
return typing.cast(
377+
ToolsListResponse,
378+
parse_obj_as(
379+
type_=ToolsListResponse, # type: ignore
380+
object_=_response.json(),
381+
),
382+
)
383+
_response_json = _response.json()
384+
except JSONDecodeError:
385+
raise ApiError(status_code=_response.status_code, body=_response.text)
386+
raise ApiError(status_code=_response.status_code, body=_response_json)

0 commit comments

Comments
 (0)