Skip to content

chore: 🐝 Update SDK - Generate 0.6.1 #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 3, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
ci: restructure glean package to namespace structure
  • Loading branch information
github-actions[bot] committed Jun 3, 2025
commit e109cb2f38cbfed2f1e59e38af187cdab9c6073e
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u

```python
# Synchronous Example
from glean import Glean, models
from glean.api_client import Glean, models
import os


Expand Down Expand Up @@ -163,7 +163,7 @@ The same SDK client can also be used to make asychronous requests by importing a
```python
# Asynchronous Example
import asyncio
from glean import Glean, models
from glean.api_client import Glean, models
import os

async def main():
Expand Down Expand Up @@ -192,7 +192,7 @@ asyncio.run(main())

```python
# Synchronous Example
from glean import Glean, models
from glean.api_client import Glean, models
import os


Expand Down Expand Up @@ -220,7 +220,7 @@ The same SDK client can also be used to make asychronous requests by importing a
```python
# Asynchronous Example
import asyncio
from glean import Glean, models
from glean.api_client import Glean, models
import os

async def main():
Expand Down Expand Up @@ -259,8 +259,8 @@ This SDK supports the following security scheme globally:

To authenticate with the API the `api_token` parameter must be set when initializing the SDK client instance. For example:
```python
from glean import Glean, models
from glean.utils import parse_datetime
from glean.api_client import Glean, models
from glean.api_client.utils import parse_datetime
import os


Expand Down Expand Up @@ -541,8 +541,8 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an

To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
```python
from glean import Glean, models
from glean.utils import BackoffStrategy, RetryConfig, parse_datetime
from glean.api_client import Glean, models
from glean.api_client.utils import BackoffStrategy, RetryConfig, parse_datetime
import os


Expand Down Expand Up @@ -582,8 +582,8 @@ with Glean(

If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
```python
from glean import Glean, models
from glean.utils import BackoffStrategy, RetryConfig, parse_datetime
from glean.api_client import Glean, models
from glean.api_client.utils import BackoffStrategy, RetryConfig, parse_datetime
import os


Expand Down Expand Up @@ -720,8 +720,8 @@ The default server `https://{instance}-be.glean.com` contains variables and is s
#### Example

```python
from glean import Glean, models
from glean.utils import parse_datetime
from glean.api_client import Glean, models
from glean.api_client.utils import parse_datetime
import os


Expand Down Expand Up @@ -763,8 +763,8 @@ with Glean(

The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
```python
from glean import Glean, models
from glean.utils import parse_datetime
from glean.api_client import Glean, models
from glean.api_client.utils import parse_datetime
import os


Expand Down Expand Up @@ -812,7 +812,7 @@ This allows you to wrap the client with your own custom logic, such as adding cu

For example, you could specify a header for every request that this sdk makes as follows:
```python
from glean import Glean
from glean.api_client import Glean
import httpx

http_client = httpx.Client(headers={"x-custom-header": "someValue"})
Expand All @@ -821,8 +821,8 @@ s = Glean(client=http_client)

or you could wrap the client with your own custom logic:
```python
from glean import Glean
from glean.httpclient import AsyncHttpClient
from glean.api_client import Glean
from glean.api_client.httpclient import AsyncHttpClient
import httpx

class CustomClient(AsyncHttpClient):
Expand Down Expand Up @@ -892,7 +892,7 @@ The `Glean` class implements the context manager protocol and registers a finali
[context-manager]: https://docs.python.org/3/reference/datamodel.html#context-managers

```python
from glean import Glean
from glean.api_client import Glean
import os
def main():

Expand All @@ -919,7 +919,7 @@ You can setup your SDK to emit debug logs for SDK requests and responses.

You can pass your own logger class directly into your SDK.
```python
from glean import Glean
from glean.api_client import Glean
import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down
8 changes: 4 additions & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- Start SDK Example Usage [usage] -->
```python
# Synchronous Example
from glean import Glean, models
from glean.api_client import Glean, models
import os


Expand Down Expand Up @@ -29,7 +29,7 @@ The same SDK client can also be used to make asychronous requests by importing a
```python
# Asynchronous Example
import asyncio
from glean import Glean, models
from glean.api_client import Glean, models
import os

async def main():
Expand All @@ -56,7 +56,7 @@ asyncio.run(main())

```python
# Synchronous Example
from glean import Glean, models
from glean.api_client import Glean, models
import os


Expand Down Expand Up @@ -84,7 +84,7 @@ The same SDK client can also be used to make asychronous requests by importing a
```python
# Asynchronous Example
import asyncio
from glean import Glean, models
from glean.api_client import Glean, models
import os

async def main():
Expand Down
10 changes: 5 additions & 5 deletions docs/sdks/agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Get an agent by ID. This endpoint implements the LangChain Agent Protocol, speci
### Example Usage

```python
from glean import Glean
from glean.api_client import Glean
import os


Expand Down Expand Up @@ -58,7 +58,7 @@ Get an agent's schemas by ID. This endpoint implements the LangChain Agent Proto
### Example Usage

```python
from glean import Glean
from glean.api_client import Glean
import os


Expand Down Expand Up @@ -98,7 +98,7 @@ List Agents available in this service. This endpoint implements the LangChain Ag
### Example Usage

```python
from glean import Glean
from glean.api_client import Glean
import os


Expand Down Expand Up @@ -137,7 +137,7 @@ Creates and triggers a run of an agent. Streams the output in SSE format. This e
### Example Usage

```python
from glean import Glean
from glean.api_client import Glean
import os


Expand Down Expand Up @@ -178,7 +178,7 @@ Creates and triggers a run of an agent. Waits for final output and then returns
### Example Usage

```python
from glean import Glean
from glean.api_client import Glean
import os


Expand Down
10 changes: 5 additions & 5 deletions docs/sdks/announcements/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Create a textual announcement visible to some set of users based on department a

```python
from datetime import date
from glean import Glean, models
from glean.utils import parse_datetime
from glean.api_client import Glean, models
from glean.api_client.utils import parse_datetime
import os


Expand Down Expand Up @@ -22092,7 +22092,7 @@ Delete an existing user-generated announcement.
### Example Usage

```python
from glean import Glean
from glean.api_client import Glean
import os


Expand Down Expand Up @@ -22127,8 +22127,8 @@ Update a textual announcement visible to some set of users based on department a

```python
from datetime import date
from glean import Glean, models
from glean.utils import parse_datetime
from glean.api_client import Glean, models
from glean.api_client.utils import parse_datetime
import os


Expand Down
14 changes: 7 additions & 7 deletions docs/sdks/answers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Create a user-generated Answer that contains a question and answer.

```python
from datetime import date
from glean import Glean, models
from glean.utils import parse_datetime
from glean.api_client import Glean, models
from glean.api_client.utils import parse_datetime
import os


Expand Down Expand Up @@ -1390,7 +1390,7 @@ Delete an existing user-generated Answer.
### Example Usage

```python
from glean import Glean
from glean.api_client import Glean
import os


Expand Down Expand Up @@ -1426,8 +1426,8 @@ Update an existing user-generated Answer.

```python
from datetime import date
from glean import Glean, models
from glean.utils import parse_datetime
from glean.api_client import Glean, models
from glean.api_client.utils import parse_datetime
import os


Expand Down Expand Up @@ -2391,7 +2391,7 @@ Read the details of a particular Answer given its ID.
### Example Usage

```python
from glean import Glean
from glean.api_client import Glean
import os


Expand Down Expand Up @@ -2433,7 +2433,7 @@ List Answers created by the current user.
### Example Usage

```python
from glean import Glean
from glean.api_client import Glean
import os


Expand Down
6 changes: 3 additions & 3 deletions docs/sdks/clientactivity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Report user activity that occurs on indexed documents such as viewing or editing
### Example Usage

```python
from glean import Glean, models
from glean.utils import parse_datetime
from glean.api_client import Glean, models
from glean.api_client.utils import parse_datetime
import os


Expand Down Expand Up @@ -73,7 +73,7 @@ Report events that happen to results within a Glean client UI, such as search re
### Example Usage

```python
from glean import Glean, models
from glean.api_client import Glean, models
import os


Expand Down
2 changes: 1 addition & 1 deletion docs/sdks/clientauthentication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Creates an authentication token for the authenticated user.
### Example Usage

```python
from glean import Glean
from glean.api_client import Glean
import os


Expand Down
Loading