Skip to content

Commit 9cc2aad

Browse files
committed
Release 0.0.111
1 parent bdfa33c commit 9cc2aad

File tree

9 files changed

+109
-9
lines changed

9 files changed

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

reference.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ client.lean.z_3.execute(
16701670
<dl>
16711671
<dd>
16721672

1673-
Generate GDS factory code to create a PIC component
1673+
Summarize a PIC document
16741674
</dd>
16751675
</dl>
16761676
</dd>
@@ -1725,6 +1725,14 @@ client.pic.document.summarize(
17251725
<dl>
17261726
<dd>
17271727

1728+
**question:** `typing.Optional[str]`
1729+
1730+
</dd>
1731+
</dl>
1732+
1733+
<dl>
1734+
<dd>
1735+
17281736
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
17291737

17301738
</dd>

src/axiomatic/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
PlotParserOutput,
5757
RefineCodeResponse,
5858
RefineComponentCodeResponse,
59+
ResponseEquation,
5960
ScheduleJobResponse,
6061
SolutionResponse,
6162
SolutionResponseSolutionValue,
@@ -147,6 +148,7 @@
147148
"PlotParserOutput",
148149
"RefineCodeResponse",
149150
"RefineComponentCodeResponse",
151+
"ResponseEquation",
150152
"ScheduleJobResponse",
151153
"SolutionResponse",
152154
"SolutionResponseSolutionValue",

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

src/axiomatic/pic/document/client.py

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

2222
def summarize(
23-
self, *, markdown: str, images: typing.Dict[str, str], request_options: typing.Optional[RequestOptions] = None
23+
self,
24+
*,
25+
markdown: str,
26+
images: typing.Dict[str, str],
27+
question: typing.Optional[str] = OMIT,
28+
request_options: typing.Optional[RequestOptions] = None,
2429
) -> SummarizerResponse:
2530
"""
26-
Generate GDS factory code to create a PIC component
31+
Summarize a PIC document
2732
2833
Parameters
2934
----------
3035
markdown : str
3136
3237
images : typing.Dict[str, str]
3338
39+
question : typing.Optional[str]
40+
3441
request_options : typing.Optional[RequestOptions]
3542
Request-specific configuration.
3643
@@ -57,6 +64,7 @@ def summarize(
5764
json={
5865
"markdown": markdown,
5966
"images": images,
67+
"question": question,
6068
},
6169
headers={
6270
"content-type": "application/json",
@@ -94,17 +102,24 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
94102
self._client_wrapper = client_wrapper
95103

96104
async def summarize(
97-
self, *, markdown: str, images: typing.Dict[str, str], request_options: typing.Optional[RequestOptions] = None
105+
self,
106+
*,
107+
markdown: str,
108+
images: typing.Dict[str, str],
109+
question: typing.Optional[str] = OMIT,
110+
request_options: typing.Optional[RequestOptions] = None,
98111
) -> SummarizerResponse:
99112
"""
100-
Generate GDS factory code to create a PIC component
113+
Summarize a PIC document
101114
102115
Parameters
103116
----------
104117
markdown : str
105118
106119
images : typing.Dict[str, str]
107120
121+
question : typing.Optional[str]
122+
108123
request_options : typing.Optional[RequestOptions]
109124
Request-specific configuration.
110125
@@ -139,6 +154,7 @@ async def main() -> None:
139154
json={
140155
"markdown": markdown,
141156
"images": images,
157+
"question": question,
142158
},
143159
headers={
144160
"content-type": "application/json",

src/axiomatic/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
from .plot_parser_output import PlotParserOutput
5656
from .refine_code_response import RefineCodeResponse
5757
from .refine_component_code_response import RefineComponentCodeResponse
58+
from .response_equation import ResponseEquation
5859
from .schedule_job_response import ScheduleJobResponse
5960
from .solution_response import SolutionResponse
6061
from .solution_response_solution_value import SolutionResponseSolutionValue
@@ -137,6 +138,7 @@
137138
"PlotParserOutput",
138139
"RefineCodeResponse",
139140
"RefineComponentCodeResponse",
141+
"ResponseEquation",
140142
"ScheduleJobResponse",
141143
"SolutionResponse",
142144
"SolutionResponseSolutionValue",

src/axiomatic/types/equation_processing_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
from ..core.pydantic_utilities import UniversalBaseModel
44
import typing
5-
from .equation_extraction import EquationExtraction
5+
from .response_equation import ResponseEquation
66
from ..core.pydantic_utilities import IS_PYDANTIC_V2
77
import pydantic
88

99

1010
class EquationProcessingResponse(UniversalBaseModel):
11-
equations: typing.List[EquationExtraction]
11+
equations: typing.List[ResponseEquation]
1212

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

src/axiomatic/types/plot_parser_output.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ class PlotParserOutput(UniversalBaseModel):
2525
Important axes info
2626
"""
2727

28+
raw_ocr_data: typing.Optional[typing.List[typing.Optional[typing.Any]]] = pydantic.Field(default=None)
29+
"""
30+
Raw OCR data
31+
"""
32+
2833
if IS_PYDANTIC_V2:
2934
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
3035
else:
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
from ..core.pydantic_utilities import UniversalBaseModel
4+
import pydantic
5+
import typing
6+
from .dict_item import DictItem
7+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
8+
9+
10+
class ResponseEquation(UniversalBaseModel):
11+
"""
12+
Pydantic model representing a scientific or mathematical equation.
13+
"""
14+
15+
name: str = pydantic.Field()
16+
"""
17+
Human-readable name of the equation (e.g., 'Newton's Law')
18+
"""
19+
20+
description: str = pydantic.Field()
21+
"""
22+
Text describing the equation
23+
"""
24+
25+
original_format: str = pydantic.Field()
26+
"""
27+
Original form of the equation (e.g., LaTeX)
28+
"""
29+
30+
wolfram_expressions: str = pydantic.Field()
31+
"""
32+
Equation in Wolfram Language (or other symbolic form)
33+
"""
34+
35+
latex_symbols: typing.List[DictItem] = pydantic.Field()
36+
"""
37+
Detailed metadata for each latex variable in original format
38+
"""
39+
40+
wolfram_symbols: typing.List[str] = pydantic.Field()
41+
"""
42+
List of symbols used in the wolfram expression
43+
"""
44+
45+
narrative_assumptions: typing.List[str] = pydantic.Field()
46+
"""
47+
Narrative text describing assumptions/approximations
48+
"""
49+
50+
type: typing.List[str] = pydantic.Field()
51+
"""
52+
List of equation classifications (e.g., ['scalar','tensor'])
53+
"""
54+
55+
field_tags: typing.List[str] = pydantic.Field()
56+
"""
57+
Classification tags (e.g., ['quantum mechanics','gravitation'])
58+
"""
59+
60+
if IS_PYDANTIC_V2:
61+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
62+
else:
63+
64+
class Config:
65+
frozen = True
66+
smart_union = True
67+
extra = pydantic.Extra.allow

0 commit comments

Comments
 (0)