Skip to content

Commit a3be967

Browse files
committed
Release 0.0.5
1 parent e50f536 commit a3be967

File tree

8 files changed

+34
-23
lines changed

8 files changed

+34
-23
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,29 +82,29 @@ Use the `max_retries` request option to configure this behavior.
8282

8383
```python
8484
client.pic.extract(..., request_options={
85-
"max_retries": 1
86-
})
87-
```
85+
"max_retries": 1
86+
})
87+
```
8888

8989
### Timeouts
9090

9191
The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.
9292

9393
```python
9494

95-
from axiomatic import Axiomatic
95+
from axiomatic import Axiomatic
9696

9797
client = Axiomatic(
9898
...,
9999
timeout=20.0,
100100
)
101101

102102

103-
# Override timeout for a specific method
104-
client.pic.extract(..., request_options={
105-
"timeout_in_seconds": 1
106-
})
107-
```
103+
# Override timeout for a specific method
104+
client.pic.extract(..., request_options={
105+
"timeout_in_seconds": 1
106+
})
107+
```
108108

109109
### Custom Client
110110

poetry.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.4"
3+
version = "0.0.5"
44
description = ""
55
readme = "README.md"
66
authors = []

src/axiomatic/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
StatementInput,
1515
SynthesisResponse,
1616
SynthesizeCircuitResponse,
17+
Type,
1718
ValidationError,
1819
ValidationErrorLocItem,
1920
)
@@ -40,6 +41,7 @@
4041
"StatementInput",
4142
"SynthesisResponse",
4243
"SynthesizeCircuitResponse",
44+
"Type",
4345
"UnprocessableEntityError",
4446
"ValidationError",
4547
"ValidationErrorLocItem",

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.4",
19+
"X-Fern-SDK-Version": "0.0.5",
2020
}
2121
headers["x-api-key"] = self.api_key
2222
return headers

src/axiomatic/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from .statement_input import StatementInput
1414
from .synthesis_response import SynthesisResponse
1515
from .synthesize_circuit_response import SynthesizeCircuitResponse
16+
from .type import Type
1617
from .validation_error import ValidationError
1718
from .validation_error_loc_item import ValidationErrorLocItem
1819

@@ -30,6 +31,7 @@
3031
"StatementInput",
3132
"SynthesisResponse",
3233
"SynthesizeCircuitResponse",
34+
"Type",
3335
"ValidationError",
3436
"ValidationErrorLocItem",
3537
]

src/axiomatic/types/statement.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
from ..core.pydantic_utilities import UniversalBaseModel
44
import typing_extensions
55
from ..core.serialization import FieldMetadata
6-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
76
import typing
7+
from .type import Type
8+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
89
import pydantic
910

1011

1112
class Statement(UniversalBaseModel):
1213
id: str
1314
statement: str
1415
z_3_formalization: typing_extensions.Annotated[str, FieldMetadata(alias="z3_formalization")]
16+
type: typing.Optional[Type] = None
1517

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

src/axiomatic/types/type.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
Type = typing.Union[typing.Literal["COST_FUNCTION", "CONSTRAINT", "OBJECTIVE", "UNKNOWN"], typing.Any]

0 commit comments

Comments
 (0)