@@ -73,6 +73,76 @@ s.config_server_url("https://my-hosted-api")
7373
7474<!-- End Dev Containers -->
7575
76+
77+
78+ ## SDK Example Usage
79+ <!-- Start SDK Example Usage -->
80+
81+
82+ ``` python
83+ import unstructured_client
84+ from unstructured_client.models import shared
85+
86+ s = unstructured_client.UnstructuredClient(
87+ security = shared.Security(
88+ api_key_auth = " YOUR_API_KEY" ,
89+ ),
90+ )
91+
92+ req = shared.PartitionParameters(
93+ coordinates = False ,
94+ encoding = ' utf-8' ,
95+ files = shared.PartitionParametersFiles(
96+ content = ' distinctio' .encode(),
97+ files = ' quibusdam' ,
98+ ),
99+ gz_uncompressed_content_type = ' application/pdf' ,
100+ hi_res_model_name = ' yolox' ,
101+ include_page_breaks = False ,
102+ ocr_languages = [
103+ ' eng' ,
104+ ],
105+ output_format = ' application/json' ,
106+ pdf_infer_table_structure = False ,
107+ skip_infer_table_types = [
108+ ' pdf' ,
109+ ],
110+ strategy = ' hi_res' ,
111+ xml_keep_tags = False ,
112+ )
113+
114+ res = s.general.partition(req)
115+
116+ if res.elements is not None :
117+ # handle response
118+ ```
119+ <!-- End SDK Example Usage -->
120+
121+
122+
123+ <!-- Start SDK Available Operations -->
124+ ## Available Resources and Operations
125+
126+
127+ ### [ General] ( docs/sdks/general/README.md )
128+
129+ * [ partition] ( docs/sdks/general/README.md#partition ) - Pipeline 1
130+ <!-- End SDK Available Operations -->
131+
132+
133+
134+ <!-- Start Pagination -->
135+ # Pagination
136+
137+ Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
138+ returned response object will have a ` Next ` method that can be called to pull down the next group of results. If the
139+ return value of ` Next ` is ` None ` , then there are no more pages to be fetched.
140+
141+ Here's an example of one such pagination call:
142+
143+
144+ <!-- End Pagination -->
145+
76146<!-- Placeholder for Future Speakeasy SDK Sections -->
77147
78148### Maturity
0 commit comments