@@ -143,7 +143,7 @@ import os
143143
144144
145145with Glean(
146- api_token = os.getenv(" GLEAN_API_TOKEN" , " " ),
146+ api_token = os.getenv(" GLEAN_API_TOKEN" ),
147147) as glean:
148148
149149 res = glean.client.chat.create(messages = [
@@ -173,7 +173,7 @@ import os
173173async def main ():
174174
175175 async with Glean(
176- api_token = os.getenv(" GLEAN_API_TOKEN" , " " ),
176+ api_token = os.getenv(" GLEAN_API_TOKEN" ),
177177 ) as glean:
178178
179179 res = await glean.client.chat.create_async(messages = [
@@ -201,7 +201,7 @@ import os
201201
202202
203203with Glean(
204- api_token = os.getenv(" GLEAN_API_TOKEN" , " " ),
204+ api_token = os.getenv(" GLEAN_API_TOKEN" ),
205205) as glean:
206206
207207 res = glean.client.chat.create_stream(messages = [
@@ -231,7 +231,7 @@ import os
231231async def main ():
232232
233233 async with Glean(
234- api_token = os.getenv(" GLEAN_API_TOKEN" , " " ),
234+ api_token = os.getenv(" GLEAN_API_TOKEN" ),
235235 ) as glean:
236236
237237 res = await glean.client.chat.create_stream_async(messages = [
@@ -269,7 +269,7 @@ import os
269269
270270
271271with Glean(
272- api_token = os.getenv(" GLEAN_API_TOKEN" , " " ),
272+ api_token = os.getenv(" GLEAN_API_TOKEN" ),
273273) as glean:
274274
275275 res = glean.agents.search(name = " HR Policy Agent" )
@@ -504,6 +504,12 @@ For more information on obtaining the appropriate token type, please contact you
504504* [ list] ( docs/sdks/departments/README.md#list ) - List departments
505505* [ get] ( docs/sdks/departments/README.md#get ) - Get a department
506506
507+ ### [ Documents] ( docs/sdks/documentssdk/README.md )
508+
509+ * [ get_by_url] ( docs/sdks/documentssdk/README.md#get_by_url ) - Get document by URL
510+ * [ get_by_id] ( docs/sdks/documentssdk/README.md#get_by_id ) - Get document by ID
511+ * [ batch] ( docs/sdks/documentssdk/README.md#batch ) - Batch get documents
512+
507513### [ Indexing.Authentication] ( docs/sdks/indexingauthentication/README.md )
508514
509515* [ rotate_token] ( docs/sdks/indexingauthentication/README.md#rotate_token ) - Rotate token
@@ -639,7 +645,7 @@ import os
639645
640646
641647with Glean(
642- api_token = os.getenv(" GLEAN_API_TOKEN" , " " ),
648+ api_token = os.getenv(" GLEAN_API_TOKEN" ),
643649) as glean:
644650
645651 res = glean.chat.create_stream(input = " Summarize our parental leave policy as JSON." , store = True , text = {
@@ -693,7 +699,7 @@ import os
693699
694700
695701with Glean(
696- api_token = os.getenv(" GLEAN_API_TOKEN" , " " ),
702+ api_token = os.getenv(" GLEAN_API_TOKEN" ),
697703) as glean:
698704
699705 res = glean.skills.create(file = {
@@ -720,7 +726,7 @@ import os
720726
721727
722728with Glean(
723- api_token = os.getenv(" GLEAN_API_TOKEN" , " " ),
729+ api_token = os.getenv(" GLEAN_API_TOKEN" ),
724730) as glean:
725731
726732 res = glean.agents.search(name = " HR Policy Agent" ,
@@ -740,7 +746,7 @@ import os
740746
741747with Glean(
742748 retry_config = RetryConfig(" backoff" , BackoffStrategy(1 , 50 , 1.1 , 100 ), False ),
743- api_token = os.getenv(" GLEAN_API_TOKEN" , " " ),
749+ api_token = os.getenv(" GLEAN_API_TOKEN" ),
744750) as glean:
745751
746752 res = glean.agents.search(name = " HR Policy Agent" )
@@ -856,7 +862,7 @@ import os
856862with Glean(
857863 server_idx = 0 ,
858864 instance = " instance-name" ,
859- api_token = os.getenv(" GLEAN_API_TOKEN" , " " ),
865+ api_token = os.getenv(" GLEAN_API_TOKEN" ),
860866) as glean:
861867
862868 res = glean.agents.search(name = " HR Policy Agent" )
@@ -876,7 +882,7 @@ import os
876882
877883with Glean(
878884 server_url = " https://instance-name-be.glean.com" ,
879- api_token = os.getenv(" GLEAN_API_TOKEN" , " " ),
885+ api_token = os.getenv(" GLEAN_API_TOKEN" ),
880886) as glean:
881887
882888 res = glean.agents.search(name = " HR Policy Agent" )
@@ -895,7 +901,7 @@ import os
895901
896902
897903with Glean(
898- api_token = os.getenv(" GLEAN_API_TOKEN" , " " ),
904+ api_token = os.getenv(" GLEAN_API_TOKEN" ),
899905) as glean:
900906
901907 res = glean.indexing.datasources.submit(datasource_instance = " <value>" , type_ = " <value>" , request_body = {
@@ -1018,18 +1024,20 @@ import os
10181024def main ():
10191025
10201026 with Glean(
1021- api_token = os.getenv(" GLEAN_API_TOKEN" , " " ),
1027+ api_token = os.getenv(" GLEAN_API_TOKEN" ),
10221028 ) as glean:
10231029 # Rest of application here...
1030+ pass
10241031
10251032
10261033# Or when using async:
10271034async def amain ():
10281035
10291036 async with Glean(
1030- api_token = os.getenv(" GLEAN_API_TOKEN" , " " ),
1037+ api_token = os.getenv(" GLEAN_API_TOKEN" ),
10311038 ) as glean:
10321039 # Rest of application here...
1040+ pass
10331041```
10341042<!-- End Resource Management [resource-management] -->
10351043
0 commit comments