structifyai 1.173.0__py3-none-any.whl → 1.174.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
structify/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "structify"
4
- __version__ = "1.173.0" # x-release-please-version
4
+ __version__ = "1.174.0" # x-release-please-version
@@ -5,10 +5,18 @@ from typing import List
5
5
  from .._models import BaseModel
6
6
  from .connector_catalog_with_methods import ConnectorCatalogWithMethods
7
7
 
8
- __all__ = ["ConnectorCatalogListResponse"]
8
+ __all__ = ["ConnectorCatalogListResponse", "CategoryCount"]
9
+
10
+
11
+ class CategoryCount(BaseModel):
12
+ category: str
13
+
14
+ count: int
9
15
 
10
16
 
11
17
  class ConnectorCatalogListResponse(BaseModel):
18
+ category_counts: List[CategoryCount]
19
+
12
20
  items: List[ConnectorCatalogWithMethods]
13
21
 
14
22
  total_count: int
@@ -18,6 +18,7 @@ __all__ = [
18
18
  "DerivedProperty",
19
19
  "Failed",
20
20
  "Completed",
21
+ "CacheHit",
21
22
  "AttemptedMatch",
22
23
  "DatahubPageFetched",
23
24
  "DatahubDatabasesCreated",
@@ -107,6 +108,14 @@ class Completed(BaseModel):
107
108
  message: Optional[str] = None
108
109
 
109
110
 
111
+ class CacheHit(BaseModel):
112
+ cached_from_job_id: str
113
+
114
+ event_type: Literal["cache_hit"]
115
+
116
+ message: Optional[str] = None
117
+
118
+
110
119
  class AttemptedMatch(BaseModel):
111
120
  candidates: List[Dict[str, Union[str, bool, float]]]
112
121
 
@@ -118,6 +127,8 @@ class AttemptedMatch(BaseModel):
118
127
 
119
128
  match_idx: Optional[int] = None
120
129
 
130
+ raw_text: Optional[str] = None
131
+
121
132
 
122
133
  class DatahubPageFetched(BaseModel):
123
134
  datasets_in_page: int
@@ -182,6 +193,7 @@ JobEventBody: TypeAlias = Annotated[
182
193
  DerivedProperty,
183
194
  Failed,
184
195
  Completed,
196
+ CacheHit,
185
197
  AttemptedMatch,
186
198
  DatahubPageFetched,
187
199
  DatahubDatabasesCreated,
@@ -1,10 +1,11 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- from typing import List, Union, Optional
3
+ from typing import Dict, List, Union, Optional
4
4
  from typing_extensions import Literal, Annotated, TypeAlias
5
5
 
6
6
  from .._utils import PropertyInfo
7
7
  from .._models import BaseModel
8
+ from .knowledge_graph import KnowledgeGraph
8
9
 
9
10
  __all__ = [
10
11
  "ToolInvocation",
@@ -12,6 +13,21 @@ __all__ = [
12
13
  "WebSearchInput",
13
14
  "WebNavigate",
14
15
  "WebNavigateInput",
16
+ "ViewPage",
17
+ "ViewPageInput",
18
+ "Save",
19
+ "SaveInput",
20
+ "SaveEntities",
21
+ "SaveEntitiesInput",
22
+ "Exit",
23
+ "ExitInput",
24
+ "APIExecute",
25
+ "APIExecuteInput",
26
+ "Javascript",
27
+ "JavascriptInput",
28
+ "NavigateToIFrame",
29
+ "NavigateToIFrameInput",
30
+ "InfiniteScroll",
15
31
  "InspectStep",
16
32
  "InspectStepInput",
17
33
  "ReadNodeLogs",
@@ -66,6 +82,8 @@ class WebSearch(BaseModel):
66
82
  class WebNavigateInput(BaseModel):
67
83
  url: str
68
84
 
85
+ output_format: Optional[Literal["Text", "Visual"]] = None
86
+
69
87
 
70
88
  class WebNavigate(BaseModel):
71
89
  input: WebNavigateInput
@@ -73,6 +91,95 @@ class WebNavigate(BaseModel):
73
91
  name: Literal["WebNavigate"]
74
92
 
75
93
 
94
+ class ViewPageInput(BaseModel):
95
+ page_number: int
96
+
97
+
98
+ class ViewPage(BaseModel):
99
+ input: ViewPageInput
100
+
101
+ name: Literal["ViewPage"]
102
+
103
+
104
+ class SaveInput(BaseModel):
105
+ knowledge_graph: KnowledgeGraph
106
+ """
107
+ Knowledge graph info structured to deserialize and display in the same format
108
+ that the LLM outputs. Also the first representation of an LLM output in the
109
+ pipeline from raw tool output to being merged into a DB
110
+ """
111
+
112
+ reason: str
113
+
114
+ sources: List[str]
115
+
116
+
117
+ class Save(BaseModel):
118
+ input: SaveInput
119
+
120
+ name: Literal["Save"]
121
+
122
+
123
+ class SaveEntitiesInput(BaseModel):
124
+ entities: List[Dict[str, Dict[str, object]]]
125
+
126
+ reason: str
127
+
128
+ sources: List[str]
129
+
130
+
131
+ class SaveEntities(BaseModel):
132
+ input: SaveEntitiesInput
133
+
134
+ name: Literal["SaveEntities"]
135
+
136
+
137
+ class ExitInput(BaseModel):
138
+ reason: str
139
+
140
+
141
+ class Exit(BaseModel):
142
+ input: ExitInput
143
+
144
+ name: Literal["Exit"]
145
+
146
+
147
+ class APIExecuteInput(BaseModel):
148
+ code: str
149
+
150
+
151
+ class APIExecute(BaseModel):
152
+ input: APIExecuteInput
153
+
154
+ name: Literal["ApiExecute"]
155
+
156
+
157
+ class JavascriptInput(BaseModel):
158
+ code: str
159
+
160
+
161
+ class Javascript(BaseModel):
162
+ input: JavascriptInput
163
+
164
+ name: Literal["Javascript"]
165
+
166
+
167
+ class NavigateToIFrameInput(BaseModel):
168
+ index: int
169
+
170
+
171
+ class NavigateToIFrame(BaseModel):
172
+ input: NavigateToIFrameInput
173
+
174
+ name: Literal["NavigateToIFrame"]
175
+
176
+
177
+ class InfiniteScroll(BaseModel):
178
+ input: object
179
+
180
+ name: Literal["InfiniteScroll"]
181
+
182
+
76
183
  class InspectStepInput(BaseModel):
77
184
  step_name: str
78
185
 
@@ -329,6 +436,14 @@ ToolInvocation: TypeAlias = Annotated[
329
436
  Union[
330
437
  WebSearch,
331
438
  WebNavigate,
439
+ ViewPage,
440
+ Save,
441
+ SaveEntities,
442
+ Exit,
443
+ APIExecute,
444
+ Javascript,
445
+ NavigateToIFrame,
446
+ InfiniteScroll,
332
447
  InspectStep,
333
448
  ReadNodeLogs,
334
449
  DeleteFile,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: structifyai
3
- Version: 1.173.0
3
+ Version: 1.174.0
4
4
  Summary: The official Python library for the structify API
5
5
  Project-URL: Homepage, https://github.com/StructifyAI/structify-python
6
6
  Project-URL: Repository, https://github.com/StructifyAI/structify-python
@@ -11,7 +11,7 @@ structify/_resource.py,sha256=tJi4pDQooQZ_zJwEwrLj-U-ye2hC-cbmr1GzIwCT10Y,1118
11
11
  structify/_response.py,sha256=RuNhMDiZUdPqEbmFJHDVI4FMPDszk8QjK9LVWm1Fagk,28806
12
12
  structify/_streaming.py,sha256=n4C9M7ITmANYn9LaWHNoqJdIIyF7svLco2qst7u3M7U,10233
13
13
  structify/_types.py,sha256=jj4p-m3vpUma0AdhPWIaljHZXeb4RKnrAusjVdpDy5Y,7597
14
- structify/_version.py,sha256=WcTGZuYh0GCneqsaePXe_535r8UvSvOWAg183seZe-g,163
14
+ structify/_version.py,sha256=jAkquXwE8e7XiNAPLSl0tNkX5WyP7kZ2giJmBdnOmlM,163
15
15
  structify/pagination.py,sha256=ycybhWcpKk4ztsMcCA6C0WZiJejGrSx6bSr8LLskJUY,4346
16
16
  structify/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  structify/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
@@ -120,7 +120,7 @@ structify/types/connector.py,sha256=hqfk8x1ZM39idvAd4wXLm1QNrnT3kRgxEuhk8O28-B0,
120
120
  structify/types/connector_auth_method.py,sha256=iHBmcNbi74mDjFd_m4-HrGrZoV9_WRSFtrOY0fz9NhQ,562
121
121
  structify/types/connector_auth_method_with_fields.py,sha256=EABCugmJ8ahZNhSqvNQAESjHpD3kozh4GPop2OZpSMw,519
122
122
  structify/types/connector_catalog_list_params.py,sha256=vqyYfA7M3STeDKKshpD9FthkmoSh4LJecrBFhVGbBJs,470
123
- structify/types/connector_catalog_list_response.py,sha256=Mr9KRSF1oi2HauT_Hvkb8CYjdMFIG3Zc2lb5U8itOhE,376
123
+ structify/types/connector_catalog_list_response.py,sha256=0e1AQU59zTfN-bvx1GCUElnaEiyW104XHUIYvZ4Gkmg,503
124
124
  structify/types/connector_catalog_with_methods.py,sha256=EZdXqN6oZggX-SYXUrn_hDgCRHeMY1zNo7pY1q0vX4E,532
125
125
  structify/types/connector_category.py,sha256=2YnDoj4lXtyfRTVhSi-7a5InFuOUn26SqeVeaCSS4lE,245
126
126
  structify/types/connector_create_params.py,sha256=Xj2MWkiWlMhgCc-Oo3udVGlXwSjU7jy8f0WpKgRFbj8,961
@@ -259,7 +259,7 @@ structify/types/granularity.py,sha256=At6biWApGE7uE8jr5KnHP9Jr1yPFkuqLwXjExaswtB
259
259
  structify/types/image.py,sha256=FpYU3gDZnet0wO17e2uHzcyRUD6E1ssSgv63Ew0DzjU,269
260
260
  structify/types/invitation_details_response.py,sha256=TmyeM4mW4Kb6L0d7Ook9cH3g8vzfQYPnvZDIBdgVAO4,272
261
261
  structify/types/job_cancel_response.py,sha256=y8M8qPkcXT-pTi4IwQ0JBJQzXeAQIs3u2OsaVeGBTtc,1224
262
- structify/types/job_event_body.py,sha256=C3RfyefsBgWrFR_KAK7-Tzmlj6B3f4JVR6iR0HYt1Ks,3706
262
+ structify/types/job_event_body.py,sha256=pO11fTm5sGvQ6cx7NvWTitUaunSqdRo-d5tkyh4KPsk,3906
263
263
  structify/types/job_get_scrapers_response.py,sha256=-E9DaG9YCkrJeuffZ3RiI6MW7ZsbPjmlVU3jUQdggSY,694
264
264
  structify/types/job_get_source_entities_response.py,sha256=vlGKFkMKjII48EexIEBbls6-PAVYDDkmR1__aKjuiUo,3379
265
265
  structify/types/job_list_params.py,sha256=i_MYi4vIFC6Dq5I4E4htYwZejqRE5qAf2lgg_SRBuKg,1012
@@ -367,7 +367,7 @@ structify/types/team_wiki_page.py,sha256=PDcFqG8mc10Ejnh6YeoSdalNorn40axi7K3ppmh
367
367
  structify/types/team_with_role.py,sha256=t-UgnD90UmxlMpLHdxN8L7kK7VxMVLj-PM26NvkV_2U,327
368
368
  structify/types/teams_link_code_response.py,sha256=p81nvCP4KeGVUgQiiaFwAlLMRaGnG4Iv7rp03WFG0uA,269
369
369
  structify/types/token_response.py,sha256=N75RMh9ZF05z5Ubc_Pu2pePe3MN7Yqn2GB1FJ8FQJZ0,408
370
- structify/types/tool_invocation.py,sha256=5D_zxMZmI3omAvGHTJSmCeuZMgMQXhbtomWh0f2Ll-k,5987
370
+ structify/types/tool_invocation.py,sha256=HCc_nFmfjm5MnoDKDbtnh7TIvLEH7gvsBI4IIU0AxO4,7995
371
371
  structify/types/tool_metadata.py,sha256=drtuS9ZQm4cB2KScB1pycX1ifjhGwSUMJm9TFv1SHuI,382
372
372
  structify/types/tool_result.py,sha256=C7CSxU0PfW4WMiWlwDckEmsjTbZmWzEoSt2LbcYdAtc,2013
373
373
  structify/types/update_member_role_response.py,sha256=q1jTM0lFmzvH8ki7GcSQAh-5cN7VnLF6Jg_IRdA4AqE,222
@@ -489,7 +489,7 @@ structify/types/user/stripe_create_portal_session_params.py,sha256=5AYRC8z_SlKmd
489
489
  structify/types/user/stripe_create_session_params.py,sha256=DFcNLNzEWeupkGQ9J5PafsuL_bIU9cLEIhAmFPsRlfo,387
490
490
  structify/types/user/stripe_create_subscription_params.py,sha256=d8HfiC94gJbG-cC_WvBz6xYCvxKJO_EP2yyVmVvufrU,424
491
491
  structify/types/user/subscription_plan.py,sha256=qKJMM-zPpYolYC1DlypOwPpxlyJBLkQqFK_0VpwktJs,222
492
- structifyai-1.173.0.dist-info/METADATA,sha256=YYeHg00958d2UCUx9tOQB5WRAOIqsU3WZ-Ps3vxzKcU,16399
493
- structifyai-1.173.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
494
- structifyai-1.173.0.dist-info/licenses/LICENSE,sha256=9CwgrmGz3rZSTT-KqGc1gua-7g8B4ThTgMtUgPALh5c,11339
495
- structifyai-1.173.0.dist-info/RECORD,,
492
+ structifyai-1.174.0.dist-info/METADATA,sha256=_cBl4jOw0K_TtGioyYQoTH0ezXr8x4NPfipk2wWlzVk,16399
493
+ structifyai-1.174.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
494
+ structifyai-1.174.0.dist-info/licenses/LICENSE,sha256=9CwgrmGz3rZSTT-KqGc1gua-7g8B4ThTgMtUgPALh5c,11339
495
+ structifyai-1.174.0.dist-info/RECORD,,