Skip to content

Commit 957da30

Browse files
committed
Release 0.0.133
1 parent 8667bc5 commit 957da30

12 files changed

+14
-115
lines changed

pyproject.toml

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

src/axiomatic/__init__.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
PicInstanceInfoValue,
5555
PicInstanceSettingsValue,
5656
PicWarning,
57+
PicZ3Expression,
5758
Placement,
5859
PlatformData,
5960
PlotInfo,
@@ -76,10 +77,6 @@
7677
StatementValidation,
7778
StatementValidationDictionary,
7879
StatusResponse,
79-
StructureConstraint,
80-
StructureFunctionCall,
81-
StructureFunctionCallArgumentsValue,
82-
StructureFunctionCallExpectedResult,
8380
SummarizerResponse,
8481
Symbol,
8582
ToolsListResponse,
@@ -95,7 +92,6 @@
9592
ValidationResult,
9693
VerifyCircuitCodeResponse,
9794
VerifyResponse,
98-
Z3Expression,
9995
)
10096
from .errors import UnprocessableEntityError
10197
from . import code_execution, document, formalization, fso, lean, pic, requirements, tools
@@ -160,6 +156,7 @@
160156
"PicInstanceInfoValue",
161157
"PicInstanceSettingsValue",
162158
"PicWarning",
159+
"PicZ3Expression",
163160
"Placement",
164161
"PlatformData",
165162
"PlotInfo",
@@ -182,10 +179,6 @@
182179
"StatementValidation",
183180
"StatementValidationDictionary",
184181
"StatusResponse",
185-
"StructureConstraint",
186-
"StructureFunctionCall",
187-
"StructureFunctionCallArgumentsValue",
188-
"StructureFunctionCallExpectedResult",
189182
"SummarizerResponse",
190183
"Symbol",
191184
"ToolsListResponse",
@@ -202,7 +195,6 @@
202195
"ValidationResult",
203196
"VerifyCircuitCodeResponse",
204197
"VerifyResponse",
205-
"Z3Expression",
206198
"__version__",
207199
"code_execution",
208200
"document",

src/axiomatic/core/client_wrapper.py

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

src/axiomatic/types/__init__.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
from .pic_instance_info_value import PicInstanceInfoValue
5454
from .pic_instance_settings_value import PicInstanceSettingsValue
5555
from .pic_warning import PicWarning
56+
from .pic_z3expression import PicZ3Expression
5657
from .placement import Placement
5758
from .platform_data import PlatformData
5859
from .plot_info import PlotInfo
@@ -75,10 +76,6 @@
7576
from .statement_validation import StatementValidation
7677
from .statement_validation_dictionary import StatementValidationDictionary
7778
from .status_response import StatusResponse
78-
from .structure_constraint import StructureConstraint
79-
from .structure_function_call import StructureFunctionCall
80-
from .structure_function_call_arguments_value import StructureFunctionCallArgumentsValue
81-
from .structure_function_call_expected_result import StructureFunctionCallExpectedResult
8279
from .summarizer_response import SummarizerResponse
8380
from .symbol import Symbol
8481
from .tools_list_response import ToolsListResponse
@@ -94,7 +91,6 @@
9491
from .validation_result import ValidationResult
9592
from .verify_circuit_code_response import VerifyCircuitCodeResponse
9693
from .verify_response import VerifyResponse
97-
from .z3expression import Z3Expression
9894

9995
__all__ = [
10096
"AxesInfo",
@@ -150,6 +146,7 @@
150146
"PicInstanceInfoValue",
151147
"PicInstanceSettingsValue",
152148
"PicWarning",
149+
"PicZ3Expression",
153150
"Placement",
154151
"PlatformData",
155152
"PlotInfo",
@@ -172,10 +169,6 @@
172169
"StatementValidation",
173170
"StatementValidationDictionary",
174171
"StatusResponse",
175-
"StructureConstraint",
176-
"StructureFunctionCall",
177-
"StructureFunctionCallArgumentsValue",
178-
"StructureFunctionCallExpectedResult",
179172
"SummarizerResponse",
180173
"Symbol",
181174
"ToolsListResponse",
@@ -191,5 +184,4 @@
191184
"ValidationResult",
192185
"VerifyCircuitCodeResponse",
193186
"VerifyResponse",
194-
"Z3Expression",
195187
]

src/axiomatic/types/cost_function.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import typing
55
from .statement_type import StatementType
66
import pydantic
7-
from .z3expression import Z3Expression
7+
from .pic_z3expression import PicZ3Expression
88
from .statement_validation import StatementValidation
99
from ..core.pydantic_utilities import IS_PYDANTIC_V2
1010

@@ -16,7 +16,7 @@ class CostFunction(UniversalBaseModel):
1616
The natural language content of the statement.
1717
"""
1818

19-
formalization: typing.Optional[Z3Expression] = None
19+
formalization: typing.Optional[PicZ3Expression] = None
2020
validation: typing.Optional[StatementValidation] = pydantic.Field(default=None)
2121
"""
2222
The validation result of the statement.

src/axiomatic/types/parameter_constraint.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import typing
55
from .statement_type import StatementType
66
import pydantic
7-
from .z3expression import Z3Expression
7+
from .pic_z3expression import PicZ3Expression
88
from .statement_validation import StatementValidation
99
from ..core.pydantic_utilities import IS_PYDANTIC_V2
1010

@@ -16,7 +16,7 @@ class ParameterConstraint(UniversalBaseModel):
1616
The natural language content of the statement.
1717
"""
1818

19-
formalization: typing.Optional[Z3Expression] = None
19+
formalization: typing.Optional[PicZ3Expression] = None
2020
validation: typing.Optional[StatementValidation] = pydantic.Field(default=None)
2121
"""
2222
The validation result of the statement.

src/axiomatic/types/z3expression.py renamed to src/axiomatic/types/pic_z3expression.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ..core.pydantic_utilities import UniversalBaseModel
4-
import typing
54
import pydantic
5+
import typing
66
from .computation import Computation
77
from ..core.pydantic_utilities import IS_PYDANTIC_V2
88

99

10-
class Z3Expression(UniversalBaseModel):
10+
class PicZ3Expression(UniversalBaseModel):
1111
"""
12-
The model for a Z3 expression.
12+
The model for a Z3 expression related to PIC.
13+
This is a subclass of Z3Expression, which is a model for a Z3 expression.
1314
The validation is such that an instance contains a code that can be parsed into a z3 expression and, if mapping is set, it contains a valid Computation for every variable in the expression.
1415
It does not check if the expression can be evaluated, this depends on the target Netlist.
1516
"""
1617

17-
type: typing.Optional[typing.Literal["Z3_EXPRESSION"]] = None
1818
code: str = pydantic.Field()
1919
"""
2020
A string with the z3 expression.

src/axiomatic/types/statement_dictionary.py

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from ..core.pydantic_utilities import UniversalBaseModel
44
import typing
55
from .cost_function import CostFunction
6-
from .structure_constraint import StructureConstraint
76
from .parameter_constraint import ParameterConstraint
87
from .unformalizable_statement import UnformalizableStatement
98
from ..core.pydantic_utilities import IS_PYDANTIC_V2
@@ -16,7 +15,6 @@ class StatementDictionary(UniversalBaseModel):
1615
"""
1716

1817
cost_functions: typing.Optional[typing.List[CostFunction]] = None
19-
structure_constraints: typing.Optional[typing.List[StructureConstraint]] = None
2018
parameter_constraints: typing.Optional[typing.List[ParameterConstraint]] = None
2119
unformalizable_statements: typing.Optional[typing.List[UnformalizableStatement]] = None
2220

src/axiomatic/types/structure_constraint.py

-32
This file was deleted.

src/axiomatic/types/structure_function_call.py

-41
This file was deleted.

src/axiomatic/types/structure_function_call_arguments_value.py

-5
This file was deleted.

src/axiomatic/types/structure_function_call_expected_result.py

-5
This file was deleted.

0 commit comments

Comments
 (0)