Skip to content

Commit fa96a80

Browse files
committed
Release 0.0.39
1 parent 93f09d1 commit fa96a80

File tree

13 files changed

+95
-26
lines changed

13 files changed

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

reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ core.File` — See core.File for more documentation
754754
<dl>
755755
<dd>
756756

757-
Execute python code, and return the standard output. If an error occurs, it will be returned in the error_trace field. Importing from the following modules is supported: gdsfactory
757+
Execute python code, and return the standard output. If an error occurs, it will be returned in the error_trace field. Importing from the following modules is supported: gdsfactory, z3, json
758758
</dd>
759759
</dl>
760760
</dd>
@@ -1061,7 +1061,7 @@ client = Axiomatic(
10611061
)
10621062
client.pic.document.summarize(
10631063
query="query",
1064-
images=["images"],
1064+
images={"key": "value"},
10651065
)
10661066

10671067
```
@@ -1086,7 +1086,7 @@ client.pic.document.summarize(
10861086
<dl>
10871087
<dd>
10881088

1089-
**images:** `typing.Sequence[str]`
1089+
**images:** `typing.Dict[str, str]`
10901090

10911091
</dd>
10921092
</dl>

src/axiomatic/__init__.py

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

33
from .types import (
4+
Bundle,
5+
BundleSettingsValue,
46
Computation,
57
ComputationArgumentsValue,
68
ExecuteCodeResponse,
@@ -15,13 +17,14 @@
1517
HttpValidationError,
1618
InteractiveResponse,
1719
MdResponse,
20+
Net,
1821
Netlist,
1922
NetlistPlacementsValueValue,
2023
OptimizationHistory,
2124
OptimizeNetlistResponse,
2225
Parameter,
2326
ParseResponse,
24-
Pdk,
27+
PdkType,
2528
PicInstance,
2629
PicInstanceInfoValue,
2730
PicInstanceSettingsValue,
@@ -57,6 +60,8 @@
5760
"AsyncAxiomatic",
5861
"Axiomatic",
5962
"AxiomaticEnvironment",
63+
"Bundle",
64+
"BundleSettingsValue",
6065
"Computation",
6166
"ComputationArgumentsValue",
6267
"ExecuteCodeResponse",
@@ -71,13 +76,14 @@
7176
"HttpValidationError",
7277
"InteractiveResponse",
7378
"MdResponse",
79+
"Net",
7480
"Netlist",
7581
"NetlistPlacementsValueValue",
7682
"OptimizationHistory",
7783
"OptimizeNetlistResponse",
7884
"Parameter",
7985
"ParseResponse",
80-
"Pdk",
86+
"PdkType",
8187
"PicInstance",
8288
"PicInstanceInfoValue",
8389
"PicInstanceSettingsValue",

src/axiomatic/code_execution/python/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
2121

2222
def execute(self, *, code: str, request_options: typing.Optional[RequestOptions] = None) -> ExecuteCodeResponse:
2323
"""
24-
Execute python code, and return the standard output. If an error occurs, it will be returned in the error_trace field. Importing from the following modules is supported: gdsfactory
24+
Execute python code, and return the standard output. If an error occurs, it will be returned in the error_trace field. Importing from the following modules is supported: gdsfactory, z3, json
2525
2626
Parameters
2727
----------
@@ -91,7 +91,7 @@ async def execute(
9191
self, *, code: str, request_options: typing.Optional[RequestOptions] = None
9292
) -> ExecuteCodeResponse:
9393
"""
94-
Execute python code, and return the standard output. If an error occurs, it will be returned in the error_trace field. Importing from the following modules is supported: gdsfactory
94+
Execute python code, and return the standard output. If an error occurs, it will be returned in the error_trace field. Importing from the following modules is supported: gdsfactory, z3, json
9595
9696
Parameters
9797
----------

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

src/axiomatic/pic/document/client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
2020
self._client_wrapper = client_wrapper
2121

2222
def summarize(
23-
self, *, query: str, images: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None
23+
self, *, query: str, images: typing.Dict[str, str], request_options: typing.Optional[RequestOptions] = None
2424
) -> SummarizerResponse:
2525
"""
2626
Generate GDS factory code to create a PIC component
@@ -29,7 +29,7 @@ def summarize(
2929
----------
3030
query : str
3131
32-
images : typing.Sequence[str]
32+
images : typing.Dict[str, str]
3333
3434
request_options : typing.Optional[RequestOptions]
3535
Request-specific configuration.
@@ -48,7 +48,7 @@ def summarize(
4848
)
4949
client.pic.document.summarize(
5050
query="query",
51-
images=["images"],
51+
images={"key": "value"},
5252
)
5353
"""
5454
_response = self._client_wrapper.httpx_client.request(
@@ -94,7 +94,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
9494
self._client_wrapper = client_wrapper
9595

9696
async def summarize(
97-
self, *, query: str, images: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None
97+
self, *, query: str, images: typing.Dict[str, str], request_options: typing.Optional[RequestOptions] = None
9898
) -> SummarizerResponse:
9999
"""
100100
Generate GDS factory code to create a PIC component
@@ -103,7 +103,7 @@ async def summarize(
103103
----------
104104
query : str
105105
106-
images : typing.Sequence[str]
106+
images : typing.Dict[str, str]
107107
108108
request_options : typing.Optional[RequestOptions]
109109
Request-specific configuration.
@@ -127,7 +127,7 @@ async def summarize(
127127
async def main() -> None:
128128
await client.pic.document.summarize(
129129
query="query",
130-
images=["images"],
130+
images={"key": "value"},
131131
)
132132
133133

src/axiomatic/types/__init__.py

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

3+
from .bundle import Bundle
4+
from .bundle_settings_value import BundleSettingsValue
35
from .computation import Computation
46
from .computation_arguments_value import ComputationArgumentsValue
57
from .execute_code_response import ExecuteCodeResponse
@@ -14,13 +16,14 @@
1416
from .http_validation_error import HttpValidationError
1517
from .interactive_response import InteractiveResponse
1618
from .md_response import MdResponse
19+
from .net import Net
1720
from .netlist import Netlist
1821
from .netlist_placements_value_value import NetlistPlacementsValueValue
1922
from .optimization_history import OptimizationHistory
2023
from .optimize_netlist_response import OptimizeNetlistResponse
2124
from .parameter import Parameter
2225
from .parse_response import ParseResponse
23-
from .pdk import Pdk
26+
from .pdk_type import PdkType
2427
from .pic_instance import PicInstance
2528
from .pic_instance_info_value import PicInstanceInfoValue
2629
from .pic_instance_settings_value import PicInstanceSettingsValue
@@ -47,6 +50,8 @@
4750
from .z_3_expression import Z3Expression
4851

4952
__all__ = [
53+
"Bundle",
54+
"BundleSettingsValue",
5055
"Computation",
5156
"ComputationArgumentsValue",
5257
"ExecuteCodeResponse",
@@ -61,13 +66,14 @@
6166
"HttpValidationError",
6267
"InteractiveResponse",
6368
"MdResponse",
69+
"Net",
6470
"Netlist",
6571
"NetlistPlacementsValueValue",
6672
"OptimizationHistory",
6773
"OptimizeNetlistResponse",
6874
"Parameter",
6975
"ParseResponse",
70-
"Pdk",
76+
"PdkType",
7177
"PicInstance",
7278
"PicInstanceInfoValue",
7379
"PicInstanceSettingsValue",

src/axiomatic/types/bundle.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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 .bundle_settings_value import BundleSettingsValue
6+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
7+
import pydantic
8+
9+
10+
class Bundle(UniversalBaseModel):
11+
links: typing.Dict[str, str]
12+
settings: typing.Optional[typing.Dict[str, typing.Optional[BundleSettingsValue]]] = None
13+
routing_strategy: typing.Optional[str] = None
14+
15+
if IS_PYDANTIC_V2:
16+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
17+
else:
18+
19+
class Config:
20+
frozen = True
21+
smart_union = True
22+
extra = pydantic.Extra.allow
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
BundleSettingsValue = typing.Union[
6+
str, float, int, typing.List[typing.Optional[typing.Any]], typing.Dict[str, typing.Optional[typing.Any]], bool
7+
]

src/axiomatic/types/net.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
from ..core.pydantic_utilities import UniversalBaseModel
4+
import typing_extensions
5+
from ..core.serialization import FieldMetadata
6+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
7+
import typing
8+
import pydantic
9+
10+
11+
class Net(UniversalBaseModel):
12+
"""
13+
Class to represent a connection between two ports of two PIC instances
14+
"""
15+
16+
p_1: typing_extensions.Annotated[str, FieldMetadata(alias="p1")]
17+
p_2: typing_extensions.Annotated[str, FieldMetadata(alias="p2")]
18+
19+
if IS_PYDANTIC_V2:
20+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
21+
else:
22+
23+
class Config:
24+
frozen = True
25+
smart_union = True
26+
extra = pydantic.Extra.allow

0 commit comments

Comments
 (0)