Skip to content

Commit 0ef76da

Browse files
committed
Release 0.0.45
1 parent 9513397 commit 0ef76da

File tree

11 files changed

+53
-26
lines changed

11 files changed

+53
-26
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ A full reference for this library is available [here](./reference.md).
2020
Instantiate and use the client with the following:
2121

2222
```python
23-
from axiomatic import Axiomatic, RequirementBody
23+
from axiomatic import Axiomatic, UserRequirement
2424

2525
client = Axiomatic(
2626
api_key="YOUR_API_KEY",
2727
)
2828
client.requirements.check(
2929
request=[
30-
RequirementBody(
30+
UserRequirement(
3131
latex_symbol="latex_symbol",
3232
requirement_name="requirement_name",
3333
tolerance=1.1,
@@ -45,7 +45,7 @@ The SDK also exports an `async` client so that you can make non-blocking calls t
4545
```python
4646
import asyncio
4747

48-
from axiomatic import AsyncAxiomatic, RequirementBody
48+
from axiomatic import AsyncAxiomatic, UserRequirement
4949

5050
client = AsyncAxiomatic(
5151
api_key="YOUR_API_KEY",
@@ -55,7 +55,7 @@ client = AsyncAxiomatic(
5555
async def main() -> None:
5656
await client.requirements.check(
5757
request=[
58-
RequirementBody(
58+
UserRequirement(
5959
latex_symbol="latex_symbol",
6060
requirement_name="requirement_name",
6161
tolerance=1.1,

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.44"
6+
version = "0.0.45"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ client.health_check_health_check_get()
105105
<dd>
106106

107107
```python
108-
from axiomatic import Axiomatic, RequirementBody
108+
from axiomatic import Axiomatic, UserRequirement
109109

110110
client = Axiomatic(
111111
api_key="YOUR_API_KEY",
112112
)
113113
client.requirements.check(
114114
request=[
115-
RequirementBody(
115+
UserRequirement(
116116
latex_symbol="latex_symbol",
117117
requirement_name="requirement_name",
118118
tolerance=1.1,
@@ -136,7 +136,7 @@ client.requirements.check(
136136
<dl>
137137
<dd>
138138

139-
**request:** `typing.Sequence[RequirementBody]`
139+
**request:** `typing.Sequence[UserRequirement]`
140140

141141
</dd>
142142
</dl>

src/axiomatic/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
PicInstance,
2929
PicInstanceInfoValue,
3030
PicInstanceSettingsValue,
31+
PicWarnings,
3132
RefineCodeResponse,
3233
RefineComponentCodeResponse,
33-
RequirementBody,
3434
SolutionResponse,
3535
SolutionResponseSolutionValue,
3636
Statement,
@@ -42,6 +42,7 @@
4242
StructureFunctionCallArgumentsValue,
4343
StructureFunctionCallExpectedResult,
4444
SummarizerResponse,
45+
UserRequirement,
4546
ValidateNetlistResponse,
4647
ValidateResponse,
4748
ValidationError,
@@ -87,9 +88,9 @@
8788
"PicInstance",
8889
"PicInstanceInfoValue",
8990
"PicInstanceSettingsValue",
91+
"PicWarnings",
9092
"RefineCodeResponse",
9193
"RefineComponentCodeResponse",
92-
"RequirementBody",
9394
"SolutionResponse",
9495
"SolutionResponseSolutionValue",
9596
"Statement",
@@ -102,6 +103,7 @@
102103
"StructureFunctionCallExpectedResult",
103104
"SummarizerResponse",
104105
"UnprocessableEntityError",
106+
"UserRequirement",
105107
"ValidateNetlistResponse",
106108
"ValidateResponse",
107109
"ValidationError",

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.44",
19+
"X-Fern-SDK-Version": "0.0.45",
2020
}
2121
headers["X-API-Key"] = self.api_key
2222
return headers

src/axiomatic/requirements/client.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import typing
44
from ..core.client_wrapper import SyncClientWrapper
55
from .data_files.client import DataFilesClient
6-
from ..types.requirement_body import RequirementBody
6+
from ..types.user_requirement import UserRequirement
77
from ..core.request_options import RequestOptions
88
from ..core.serialization import convert_and_respect_annotation_metadata
99
from ..core.pydantic_utilities import parse_obj_as
@@ -24,12 +24,12 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
2424
self.data_files = DataFilesClient(client_wrapper=self._client_wrapper)
2525

2626
def check(
27-
self, *, request: typing.Sequence[RequirementBody], request_options: typing.Optional[RequestOptions] = None
27+
self, *, request: typing.Sequence[UserRequirement], request_options: typing.Optional[RequestOptions] = None
2828
) -> typing.Optional[typing.Any]:
2929
"""
3030
Parameters
3131
----------
32-
request : typing.Sequence[RequirementBody]
32+
request : typing.Sequence[UserRequirement]
3333
3434
request_options : typing.Optional[RequestOptions]
3535
Request-specific configuration.
@@ -41,14 +41,14 @@ def check(
4141
4242
Examples
4343
--------
44-
from axiomatic import Axiomatic, RequirementBody
44+
from axiomatic import Axiomatic, UserRequirement
4545
4646
client = Axiomatic(
4747
api_key="YOUR_API_KEY",
4848
)
4949
client.requirements.check(
5050
request=[
51-
RequirementBody(
51+
UserRequirement(
5252
latex_symbol="latex_symbol",
5353
requirement_name="requirement_name",
5454
tolerance=1.1,
@@ -62,7 +62,7 @@ def check(
6262
"requirements/check",
6363
method="POST",
6464
json=convert_and_respect_annotation_metadata(
65-
object_=request, annotation=typing.Sequence[RequirementBody], direction="write"
65+
object_=request, annotation=typing.Sequence[UserRequirement], direction="write"
6666
),
6767
request_options=request_options,
6868
omit=OMIT,
@@ -98,12 +98,12 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
9898
self.data_files = AsyncDataFilesClient(client_wrapper=self._client_wrapper)
9999

100100
async def check(
101-
self, *, request: typing.Sequence[RequirementBody], request_options: typing.Optional[RequestOptions] = None
101+
self, *, request: typing.Sequence[UserRequirement], request_options: typing.Optional[RequestOptions] = None
102102
) -> typing.Optional[typing.Any]:
103103
"""
104104
Parameters
105105
----------
106-
request : typing.Sequence[RequirementBody]
106+
request : typing.Sequence[UserRequirement]
107107
108108
request_options : typing.Optional[RequestOptions]
109109
Request-specific configuration.
@@ -117,7 +117,7 @@ async def check(
117117
--------
118118
import asyncio
119119
120-
from axiomatic import AsyncAxiomatic, RequirementBody
120+
from axiomatic import AsyncAxiomatic, UserRequirement
121121
122122
client = AsyncAxiomatic(
123123
api_key="YOUR_API_KEY",
@@ -127,7 +127,7 @@ async def check(
127127
async def main() -> None:
128128
await client.requirements.check(
129129
request=[
130-
RequirementBody(
130+
UserRequirement(
131131
latex_symbol="latex_symbol",
132132
requirement_name="requirement_name",
133133
tolerance=1.1,
@@ -144,7 +144,7 @@ async def main() -> None:
144144
"requirements/check",
145145
method="POST",
146146
json=convert_and_respect_annotation_metadata(
147-
object_=request, annotation=typing.Sequence[RequirementBody], direction="write"
147+
object_=request, annotation=typing.Sequence[UserRequirement], direction="write"
148148
),
149149
request_options=request_options,
150150
omit=OMIT,

src/axiomatic/types/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
from .pic_instance import PicInstance
2828
from .pic_instance_info_value import PicInstanceInfoValue
2929
from .pic_instance_settings_value import PicInstanceSettingsValue
30+
from .pic_warnings import PicWarnings
3031
from .refine_code_response import RefineCodeResponse
3132
from .refine_component_code_response import RefineComponentCodeResponse
32-
from .requirement_body import RequirementBody
3333
from .solution_response import SolutionResponse
3434
from .solution_response_solution_value import SolutionResponseSolutionValue
3535
from .statement import Statement
@@ -41,6 +41,7 @@
4141
from .structure_function_call_arguments_value import StructureFunctionCallArgumentsValue
4242
from .structure_function_call_expected_result import StructureFunctionCallExpectedResult
4343
from .summarizer_response import SummarizerResponse
44+
from .user_requirement import UserRequirement
4445
from .validate_netlist_response import ValidateNetlistResponse
4546
from .validate_response import ValidateResponse
4647
from .validation_error import ValidationError
@@ -77,9 +78,9 @@
7778
"PicInstance",
7879
"PicInstanceInfoValue",
7980
"PicInstanceSettingsValue",
81+
"PicWarnings",
8082
"RefineCodeResponse",
8183
"RefineComponentCodeResponse",
82-
"RequirementBody",
8384
"SolutionResponse",
8485
"SolutionResponseSolutionValue",
8586
"Statement",
@@ -91,6 +92,7 @@
9192
"StructureFunctionCallArgumentsValue",
9293
"StructureFunctionCallExpectedResult",
9394
"SummarizerResponse",
95+
"UserRequirement",
9496
"ValidateNetlistResponse",
9597
"ValidateResponse",
9698
"ValidationError",

src/axiomatic/types/md_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
class MdResponse(UniversalBaseModel):
1010
markdown: str
1111
images: typing.Dict[str, str]
12+
interline_equations: typing.List[str]
13+
inline_equations: typing.List[str]
1214

1315
if IS_PYDANTIC_V2:
1416
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/axiomatic/types/netlist.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from .net import Net
88
from .netlist_placements_value_value import NetlistPlacementsValueValue
99
from .bundle import Bundle
10+
from .pic_warnings import PicWarnings
1011
from ..core.pydantic_utilities import IS_PYDANTIC_V2
1112
import pydantic
1213

@@ -17,12 +18,13 @@ class Netlist(UniversalBaseModel):
1718
"""
1819

1920
name: typing.Optional[str] = None
20-
pdk: typing.Optional[PdkType] = None
21+
pdk_type: typing.Optional[PdkType] = None
2122
instances: typing.Dict[str, PicInstance]
2223
nets: typing.Optional[typing.List[Net]] = None
2324
ports: typing.Optional[typing.Dict[str, str]] = None
2425
placements: typing.Optional[typing.Dict[str, typing.Dict[str, NetlistPlacementsValueValue]]] = None
2526
routes: typing.Optional[typing.Dict[str, Bundle]] = None
27+
warnings: typing.Optional[PicWarnings] = None
2628

2729
if IS_PYDANTIC_V2:
2830
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/axiomatic/types/pic_warnings.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
from ..core.pydantic_utilities import UniversalBaseModel
4+
import typing
5+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
6+
import pydantic
7+
8+
9+
class PicWarnings(UniversalBaseModel):
10+
message: typing.Optional[str] = None
11+
12+
if IS_PYDANTIC_V2:
13+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
14+
else:
15+
16+
class Config:
17+
frozen = True
18+
smart_union = True
19+
extra = pydantic.Extra.allow

0 commit comments

Comments
 (0)