@@ -902,8 +902,8 @@ client.tools.list()
902
902
</dl >
903
903
</details >
904
904
905
- ## EquationValidation
906
- <details ><summary ><code >client.equation_validation. <a href =" src/axiomatic/equation_validation/ client.py " >validate_equations </a >(...)</code ></summary >
905
+ ## CodeExecution Python
906
+ <details ><summary ><code >client.code_execution.python. <a href =" src/axiomatic/code_execution/python/ client.py " >execute </a >(...)</code ></summary >
907
907
<dl >
908
908
<dd >
909
909
@@ -915,8 +915,7 @@ client.tools.list()
915
915
<dl >
916
916
<dd >
917
917
918
- Validates a set of variables against stored equations to check for inconsistencies.
919
- Returns validation results for each relevant equation.
918
+ 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
920
919
</dd >
921
920
</dl >
922
921
</dd >
@@ -931,21 +930,13 @@ Returns validation results for each relevant equation.
931
930
<dd >
932
931
933
932
``` python
934
- from axiomatic import Axiomatic, VariableRequirement
933
+ from axiomatic import Axiomatic
935
934
936
935
client = Axiomatic(
937
936
api_key = " YOUR_API_KEY" ,
938
937
)
939
- client.equation_validation.validate_equations(
940
- request = [
941
- VariableRequirement(
942
- symbol = " symbol" ,
943
- name = " name" ,
944
- value = 1.1 ,
945
- units = " units" ,
946
- tolerance = 1.1 ,
947
- )
948
- ],
938
+ client.code_execution.python.execute(
939
+ code = " code" ,
949
940
)
950
941
951
942
```
@@ -962,7 +953,7 @@ client.equation_validation.validate_equations(
962
953
<dl >
963
954
<dd >
964
955
965
- ** request :** ` typing.Sequence[VariableRequirement] `
956
+ ** code :** ` str `
966
957
967
958
</dd >
968
959
</dl >
@@ -982,8 +973,8 @@ client.equation_validation.validate_equations(
982
973
</dl >
983
974
</details >
984
975
985
- ## EquationProcessing
986
- <details ><summary ><code >client.equation_processing. <a href =" src/axiomatic/equation_processing/ client.py " >get_all_variables </a >()</code ></summary >
976
+ ## Document Plot
977
+ <details ><summary ><code >client.document.plot. <a href =" src/axiomatic/document/plot/ client.py " >points </a >(... )</code ></summary >
987
978
<dl >
988
979
<dd >
989
980
@@ -995,7 +986,7 @@ client.equation_validation.validate_equations(
995
986
<dl >
996
987
<dd >
997
988
998
- Get all avail. vars to allow user choose requirements
989
+ Extracts points from plots
999
990
</dd >
1000
991
</dl >
1001
992
</dd >
@@ -1015,7 +1006,7 @@ from axiomatic import Axiomatic
1015
1006
client = Axiomatic(
1016
1007
api_key = " YOUR_API_KEY" ,
1017
1008
)
1018
- client.equation_processing.get_all_variables ()
1009
+ client.document.plot.points ()
1019
1010
1020
1011
```
1021
1012
</dd >
@@ -1031,6 +1022,40 @@ client.equation_processing.get_all_variables()
1031
1022
<dl >
1032
1023
<dd >
1033
1024
1025
+ ** plot_img:** `from __ future__ import annotations
1026
+
1027
+ core.File` — See core.File for more documentation
1028
+
1029
+ </dd >
1030
+ </dl >
1031
+
1032
+ <dl >
1033
+ <dd >
1034
+
1035
+ ** method:** ` typing.Optional[int] ` — Can specify a specific method to extract points
1036
+
1037
+ </dd >
1038
+ </dl >
1039
+
1040
+ <dl >
1041
+ <dd >
1042
+
1043
+ ** plot_info:** ` typing.Optional[str] ` — Can add specific plot info
1044
+
1045
+ </dd >
1046
+ </dl >
1047
+
1048
+ <dl >
1049
+ <dd >
1050
+
1051
+ ** get_img_coords:** ` typing.Optional[bool] ` — Whether to get coords of points on image
1052
+
1053
+ </dd >
1054
+ </dl >
1055
+
1056
+ <dl >
1057
+ <dd >
1058
+
1034
1059
** request_options:** ` typing.Optional[RequestOptions] ` — Request-specific configuration.
1035
1060
1036
1061
</dd >
@@ -1043,7 +1068,8 @@ client.equation_processing.get_all_variables()
1043
1068
</dl >
1044
1069
</details >
1045
1070
1046
- <details ><summary ><code >client.equation_processing.<a href =" src/axiomatic/equation_processing/client.py " >extract_from_document</a >(...)</code ></summary >
1071
+ ## Document Equation
1072
+ <details ><summary ><code >client.document.equation.<a href =" src/axiomatic/document/equation/client.py " >user_variables</a >()</code ></summary >
1047
1073
<dl >
1048
1074
<dd >
1049
1075
@@ -1055,7 +1081,7 @@ client.equation_processing.get_all_variables()
1055
1081
<dl >
1056
1082
<dd >
1057
1083
1058
- Extract equations from a document into the database
1084
+ Get all variables from the DB so the user can choose which variables they want to use in axtract for for their consistency checks.
1059
1085
</dd >
1060
1086
</dl >
1061
1087
</dd >
@@ -1075,7 +1101,7 @@ from axiomatic import Axiomatic
1075
1101
client = Axiomatic(
1076
1102
api_key = " YOUR_API_KEY" ,
1077
1103
)
1078
- client.equation_processing.extract_from_document ()
1104
+ client.document.equation.user_variables ()
1079
1105
1080
1106
```
1081
1107
</dd >
@@ -1091,9 +1117,78 @@ client.equation_processing.extract_from_document()
1091
1117
<dl >
1092
1118
<dd >
1093
1119
1094
- ** document:** `from __ future__ import annotations
1120
+ ** request_options:** ` typing.Optional[RequestOptions] ` — Request-specific configuration.
1121
+
1122
+ </dd >
1123
+ </dl >
1124
+ </dd >
1125
+ </dl >
1095
1126
1096
- core.File` — See core.File for more documentation
1127
+
1128
+ </dd >
1129
+ </dl >
1130
+ </details >
1131
+
1132
+ <details ><summary ><code >client.document.equation.<a href =" src/axiomatic/document/equation/client.py " >validate</a >(...)</code ></summary >
1133
+ <dl >
1134
+ <dd >
1135
+
1136
+ #### 📝 Description
1137
+
1138
+ <dl >
1139
+ <dd >
1140
+
1141
+ <dl >
1142
+ <dd >
1143
+
1144
+ Validates a set of variables against stored equations to check for inconsistencies.
1145
+ Returns validation results for each relevant equation.
1146
+ </dd >
1147
+ </dl >
1148
+ </dd >
1149
+ </dl >
1150
+
1151
+ #### 🔌 Usage
1152
+
1153
+ <dl >
1154
+ <dd >
1155
+
1156
+ <dl >
1157
+ <dd >
1158
+
1159
+ ``` python
1160
+ from axiomatic import Axiomatic, VariableRequirement
1161
+
1162
+ client = Axiomatic(
1163
+ api_key = " YOUR_API_KEY" ,
1164
+ )
1165
+ client.document.equation.validate(
1166
+ request = [
1167
+ VariableRequirement(
1168
+ symbol = " symbol" ,
1169
+ name = " name" ,
1170
+ value = 1.1 ,
1171
+ units = " units" ,
1172
+ tolerance = 1.1 ,
1173
+ )
1174
+ ],
1175
+ )
1176
+
1177
+ ```
1178
+ </dd >
1179
+ </dl >
1180
+ </dd >
1181
+ </dl >
1182
+
1183
+ #### ⚙️ Parameters
1184
+
1185
+ <dl >
1186
+ <dd >
1187
+
1188
+ <dl >
1189
+ <dd >
1190
+
1191
+ ** request:** ` typing.Sequence[VariableRequirement] `
1097
1192
1098
1193
</dd >
1099
1194
</dl >
@@ -1113,8 +1208,7 @@ core.File` — See core.File for more documentation
1113
1208
</dl >
1114
1209
</details >
1115
1210
1116
- ## CodeExecution Python
1117
- <details ><summary ><code >client.code_execution.python.<a href =" src/axiomatic/code_execution/python/client.py " >execute</a >(...)</code ></summary >
1211
+ <details ><summary ><code >client.document.equation.<a href =" src/axiomatic/document/equation/client.py " >from_pdf</a >(...)</code ></summary >
1118
1212
<dl >
1119
1213
<dd >
1120
1214
@@ -1126,7 +1220,7 @@ core.File` — See core.File for more documentation
1126
1220
<dl >
1127
1221
<dd >
1128
1222
1129
- 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
1223
+ Extract equations from a document into the database
1130
1224
</dd >
1131
1225
</dl >
1132
1226
</dd >
@@ -1146,9 +1240,7 @@ from axiomatic import Axiomatic
1146
1240
client = Axiomatic(
1147
1241
api_key = " YOUR_API_KEY" ,
1148
1242
)
1149
- client.code_execution.python.execute(
1150
- code = " code" ,
1151
- )
1243
+ client.document.equation.from_pdf()
1152
1244
1153
1245
```
1154
1246
</dd >
@@ -1164,7 +1256,9 @@ client.code_execution.python.execute(
1164
1256
<dl >
1165
1257
<dd >
1166
1258
1167
- ** code:** ` str `
1259
+ ** document:** `from __ future__ import annotations
1260
+
1261
+ core.File` — See core.File for more documentation
1168
1262
1169
1263
</dd >
1170
1264
</dl >
@@ -1184,8 +1278,7 @@ client.code_execution.python.execute(
1184
1278
</dl >
1185
1279
</details >
1186
1280
1187
- ## Document Plot
1188
- <details ><summary ><code >client.document.plot.<a href =" src/axiomatic/document/plot/client.py " >points</a >(...)</code ></summary >
1281
+ <details ><summary ><code >client.document.equation.<a href =" src/axiomatic/document/equation/client.py " >process</a >(...)</code ></summary >
1189
1282
<dl >
1190
1283
<dd >
1191
1284
@@ -1197,7 +1290,7 @@ client.code_execution.python.execute(
1197
1290
<dl >
1198
1291
<dd >
1199
1292
1200
- Extracts points from plots
1293
+ Process all equations at once and return their annotation
1201
1294
</dd >
1202
1295
</dl >
1203
1296
</dd >
@@ -1217,7 +1310,9 @@ from axiomatic import Axiomatic
1217
1310
client = Axiomatic(
1218
1311
api_key = " YOUR_API_KEY" ,
1219
1312
)
1220
- client.document.plot.points()
1313
+ client.document.equation.process(
1314
+ markdown = " markdown" ,
1315
+ )
1221
1316
1222
1317
```
1223
1318
</dd >
@@ -1233,33 +1328,31 @@ client.document.plot.points()
1233
1328
<dl >
1234
1329
<dd >
1235
1330
1236
- ** plot_img:** `from __ future__ import annotations
1237
-
1238
- core.File` — See core.File for more documentation
1331
+ ** markdown:** ` str `
1239
1332
1240
1333
</dd >
1241
1334
</dl >
1242
1335
1243
1336
<dl >
1244
1337
<dd >
1245
1338
1246
- ** method :** ` typing.Optional[int] ` — Can specify a specific method to extract points
1339
+ ** images :** ` typing.Optional[typing.Dict[str, str]] `
1247
1340
1248
1341
</dd >
1249
1342
</dl >
1250
1343
1251
1344
<dl >
1252
1345
<dd >
1253
1346
1254
- ** plot_info :** ` typing.Optional[str] ` — Can add specific plot info
1347
+ ** interline_equations :** ` typing.Optional[typing.Sequence[ str]] `
1255
1348
1256
1349
</dd >
1257
1350
</dl >
1258
1351
1259
1352
<dl >
1260
1353
<dd >
1261
1354
1262
- ** get_img_coords :** ` typing.Optional[bool] ` — Whether to get coords of points on image
1355
+ ** inline_equations :** ` typing.Optional[typing.Sequence[str]] `
1263
1356
1264
1357
</dd >
1265
1358
</dl >
0 commit comments