Skip to content

Commit fe6c4dc

Browse files
committed
Release 0.0.22
1 parent 7c3f7f2 commit fe6c4dc

File tree

8 files changed

+27
-95
lines changed

8 files changed

+27
-95
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "axiomatic"
3-
version = "0.0.23"
3+
version = "0.0.22"
44
description = ""
55
readme = "README.md"
66
authors = []

reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ client.pic.synthesize_circuit_from_text(
853853
<dl>
854854
<dd>
855855

856-
Generate GDS factory code to create a PIC component
856+
Generate GDS factory code to create a circuit
857857
</dd>
858858
</dl>
859859
</dd>

src/axiomatic/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
FormalizeResponse,
1313
GenerateCodeBody,
1414
GenerateCodeResponse,
15-
GenerateComponentCodeResponse,
1615
HttpValidationError,
1716
InteractiveResponse,
1817
Measurement,
@@ -24,7 +23,6 @@
2423
PicComponentSettingsValue,
2524
RefineCodeBody,
2625
RefineCodeResponse,
27-
RefineComponentCodeResponse,
2826
RequirementBody,
2927
SolutionResponse,
3028
SolutionResponseSolutionValue,
@@ -62,7 +60,6 @@
6260
"FormalizeResponse",
6361
"GenerateCodeBody",
6462
"GenerateCodeResponse",
65-
"GenerateComponentCodeResponse",
6663
"HttpValidationError",
6764
"InteractiveResponse",
6865
"Measurement",
@@ -74,7 +71,6 @@
7471
"PicComponentSettingsValue",
7572
"RefineCodeBody",
7673
"RefineCodeResponse",
77-
"RefineComponentCodeResponse",
7874
"RequirementBody",
7975
"SolutionBodyValuesValue",
8076
"SolutionResponse",

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

src/axiomatic/pic/client.py

Lines changed: 24 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
from ..core.serialization import convert_and_respect_annotation_metadata
1818
from ..types.synthesis_response import SynthesisResponse
1919
from ..types.synthesize_circuit_response import SynthesizeCircuitResponse
20-
from ..types.generate_component_code_response import GenerateComponentCodeResponse
21-
from ..types.refine_component_code_response import RefineComponentCodeResponse
20+
from ..types.generate_code_response import GenerateCodeResponse
21+
from ..types.refine_code_response import RefineCodeResponse
2222
from ..types.netlist import Netlist
2323
from ..types.statement import Statement
2424
from ..types.measurement import Measurement
@@ -489,11 +489,9 @@ def synthesize_circuit_from_text(
489489
raise ApiError(status_code=_response.status_code, body=_response.text)
490490
raise ApiError(status_code=_response.status_code, body=_response_json)
491491

492-
def generate(
493-
self, *, query: str, request_options: typing.Optional[RequestOptions] = None
494-
) -> GenerateComponentCodeResponse:
492+
def generate(self, *, query: str, request_options: typing.Optional[RequestOptions] = None) -> GenerateCodeResponse:
495493
"""
496-
Generate GDS factory code to create a PIC component
494+
Generate GDS factory code to create a circuit
497495
498496
Parameters
499497
----------
@@ -504,7 +502,7 @@ def generate(
504502
505503
Returns
506504
-------
507-
GenerateComponentCodeResponse
505+
GenerateCodeResponse
508506
Successful Response
509507
510508
Examples
@@ -519,23 +517,20 @@ def generate(
519517
)
520518
"""
521519
_response = self._client_wrapper.httpx_client.request(
522-
"pic/component/generate",
520+
"pic/code/generate",
523521
method="POST",
524522
json={
525523
"query": query,
526524
},
527-
headers={
528-
"content-type": "application/json",
529-
},
530525
request_options=request_options,
531526
omit=OMIT,
532527
)
533528
try:
534529
if 200 <= _response.status_code < 300:
535530
return typing.cast(
536-
GenerateComponentCodeResponse,
531+
GenerateCodeResponse,
537532
parse_obj_as(
538-
type_=GenerateComponentCodeResponse, # type: ignore
533+
type_=GenerateCodeResponse, # type: ignore
539534
object_=_response.json(),
540535
),
541536
)
@@ -561,7 +556,7 @@ def refine(
561556
feedback: typing.Optional[str] = OMIT,
562557
code: typing.Optional[str] = OMIT,
563558
request_options: typing.Optional[RequestOptions] = None,
564-
) -> RefineComponentCodeResponse:
559+
) -> RefineCodeResponse:
565560
"""
566561
Refine GDS factory code to create a circuit
567562
@@ -578,7 +573,7 @@ def refine(
578573
579574
Returns
580575
-------
581-
RefineComponentCodeResponse
576+
RefineCodeResponse
582577
Successful Response
583578
584579
Examples
@@ -593,25 +588,22 @@ def refine(
593588
)
594589
"""
595590
_response = self._client_wrapper.httpx_client.request(
596-
"pic/component/refine",
591+
"pic/code/refine",
597592
method="POST",
598593
json={
599594
"query": query,
600595
"feedback": feedback,
601596
"code": code,
602597
},
603-
headers={
604-
"content-type": "application/json",
605-
},
606598
request_options=request_options,
607599
omit=OMIT,
608600
)
609601
try:
610602
if 200 <= _response.status_code < 300:
611603
return typing.cast(
612-
RefineComponentCodeResponse,
604+
RefineCodeResponse,
613605
parse_obj_as(
614-
type_=RefineComponentCodeResponse, # type: ignore
606+
type_=RefineCodeResponse, # type: ignore
615607
object_=_response.json(),
616608
),
617609
)
@@ -1354,9 +1346,9 @@ async def main() -> None:
13541346

13551347
async def generate(
13561348
self, *, query: str, request_options: typing.Optional[RequestOptions] = None
1357-
) -> GenerateComponentCodeResponse:
1349+
) -> GenerateCodeResponse:
13581350
"""
1359-
Generate GDS factory code to create a PIC component
1351+
Generate GDS factory code to create a circuit
13601352
13611353
Parameters
13621354
----------
@@ -1367,7 +1359,7 @@ async def generate(
13671359
13681360
Returns
13691361
-------
1370-
GenerateComponentCodeResponse
1362+
GenerateCodeResponse
13711363
Successful Response
13721364
13731365
Examples
@@ -1390,23 +1382,20 @@ async def main() -> None:
13901382
asyncio.run(main())
13911383
"""
13921384
_response = await self._client_wrapper.httpx_client.request(
1393-
"pic/component/generate",
1385+
"pic/code/generate",
13941386
method="POST",
13951387
json={
13961388
"query": query,
13971389
},
1398-
headers={
1399-
"content-type": "application/json",
1400-
},
14011390
request_options=request_options,
14021391
omit=OMIT,
14031392
)
14041393
try:
14051394
if 200 <= _response.status_code < 300:
14061395
return typing.cast(
1407-
GenerateComponentCodeResponse,
1396+
GenerateCodeResponse,
14081397
parse_obj_as(
1409-
type_=GenerateComponentCodeResponse, # type: ignore
1398+
type_=GenerateCodeResponse, # type: ignore
14101399
object_=_response.json(),
14111400
),
14121401
)
@@ -1432,7 +1421,7 @@ async def refine(
14321421
feedback: typing.Optional[str] = OMIT,
14331422
code: typing.Optional[str] = OMIT,
14341423
request_options: typing.Optional[RequestOptions] = None,
1435-
) -> RefineComponentCodeResponse:
1424+
) -> RefineCodeResponse:
14361425
"""
14371426
Refine GDS factory code to create a circuit
14381427
@@ -1449,7 +1438,7 @@ async def refine(
14491438
14501439
Returns
14511440
-------
1452-
RefineComponentCodeResponse
1441+
RefineCodeResponse
14531442
Successful Response
14541443
14551444
Examples
@@ -1472,25 +1461,22 @@ async def main() -> None:
14721461
asyncio.run(main())
14731462
"""
14741463
_response = await self._client_wrapper.httpx_client.request(
1475-
"pic/component/refine",
1464+
"pic/code/refine",
14761465
method="POST",
14771466
json={
14781467
"query": query,
14791468
"feedback": feedback,
14801469
"code": code,
14811470
},
1482-
headers={
1483-
"content-type": "application/json",
1484-
},
14851471
request_options=request_options,
14861472
omit=OMIT,
14871473
)
14881474
try:
14891475
if 200 <= _response.status_code < 300:
14901476
return typing.cast(
1491-
RefineComponentCodeResponse,
1477+
RefineCodeResponse,
14921478
parse_obj_as(
1493-
type_=RefineComponentCodeResponse, # type: ignore
1479+
type_=RefineCodeResponse, # type: ignore
14941480
object_=_response.json(),
14951481
),
14961482
)

src/axiomatic/types/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from .formalize_response import FormalizeResponse
1212
from .generate_code_body import GenerateCodeBody
1313
from .generate_code_response import GenerateCodeResponse
14-
from .generate_component_code_response import GenerateComponentCodeResponse
1514
from .http_validation_error import HttpValidationError
1615
from .interactive_response import InteractiveResponse
1716
from .measurement import Measurement
@@ -23,7 +22,6 @@
2322
from .pic_component_settings_value import PicComponentSettingsValue
2423
from .refine_code_body import RefineCodeBody
2524
from .refine_code_response import RefineCodeResponse
26-
from .refine_component_code_response import RefineComponentCodeResponse
2725
from .requirement_body import RequirementBody
2826
from .solution_response import SolutionResponse
2927
from .solution_response_solution_value import SolutionResponseSolutionValue
@@ -51,7 +49,6 @@
5149
"FormalizeResponse",
5250
"GenerateCodeBody",
5351
"GenerateCodeResponse",
54-
"GenerateComponentCodeResponse",
5552
"HttpValidationError",
5653
"InteractiveResponse",
5754
"Measurement",
@@ -63,7 +60,6 @@
6360
"PicComponentSettingsValue",
6461
"RefineCodeBody",
6562
"RefineCodeResponse",
66-
"RefineComponentCodeResponse",
6763
"RequirementBody",
6864
"SolutionResponse",
6965
"SolutionResponseSolutionValue",

src/axiomatic/types/generate_component_code_response.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/axiomatic/types/refine_component_code_response.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)