Skip to content

Commit 141bc24

Browse files
committed
working?
2 parents 0e84d5b + de8b3a3 commit 141bc24

File tree

11 files changed

+341
-82
lines changed

11 files changed

+341
-82
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.115"
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/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ def tool_exec(self, tool: str, code: str, poll_interval: int = 3, debug: bool =
304304
return result.output
305305
else:
306306
return {
307+
"job_id": job_id,
307308
"messages": output['messages'],
308309
"objects": self._load_objects_from_base64(output['objects'])
309310
}

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.115",
2020
}
2121
headers["X-API-Key"] = self.api_key
2222
return headers

src/axiomatic/magic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def ax_tool(self, tool, cell):
126126
get_ipython().user_ns["tool_result"] = output
127127
else:
128128
get_ipython().user_ns["tool_result"] = {
129+
"job_id": job_id,
129130
"messages": output['messages'],
130131
"objects": self._load_objects_from_base64(output['objects'])
131132
}

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",

0 commit comments

Comments
 (0)