Skip to content

Commit a64cbc1

Browse files
committed
## Python SDK Changes:
* `glean.client.insights.retrieve()`: `response.agents_response.top_use_cases_insights` **Added**
1 parent a2f724d commit a64cbc1

16 files changed

Lines changed: 306 additions & 43 deletions

.speakeasy/gen.lock

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: 3e3290ca-0ee8-4981-b1bc-14536048fa63
33
management:
4-
docChecksum: d8e27f2118bb2e9b6f10f3c87ad1abab
4+
docChecksum: 258599659a645cf36629cb927fbf3e8f
55
docVersion: 0.9.0
6-
speakeasyVersion: 1.761.8
7-
generationVersion: 2.881.2
8-
releaseVersion: 0.12.24
9-
configChecksum: 9cfd2ffe12f50ecc2330ef075db81617
6+
speakeasyVersion: 1.761.9
7+
generationVersion: 2.881.4
8+
releaseVersion: 0.12.25
9+
configChecksum: 2581bd242339b45d5ca64ca15a7fa62e
1010
repoURL: https://github.com/gleanwork/api-client-python.git
1111
installationURL: https://github.com/gleanwork/api-client-python.git
1212
published: true
1313
persistentEdits:
14-
generation_id: ff1736a9-02f4-498c-ae0b-15f0a711a541
15-
pristine_commit_hash: 4369083872c3540a60d7faaf8d98778dce4951b4
16-
pristine_tree_hash: 7523ad87f407ff98c86ad1947fed200fc8278076
14+
generation_id: 9fa588c2-4bc5-429c-8fce-0b821242c79a
15+
pristine_commit_hash: 0207969a9391f4bb5c16f0faa1a3f059cb25eb99
16+
pristine_tree_hash: 37a0055834cf7700b05ca4c44cc0d44f4711e24e
1717
features:
1818
python:
1919
additionalDependencies: 1.0.0
@@ -183,8 +183,8 @@ trackedFiles:
183183
pristine_git_object: fc4a769fd5f7f8c5e36e1eec936d9454f0f01242
184184
docs/models/agentsinsightsv2response.md:
185185
id: c419d6511b8b
186-
last_write_checksum: sha1:d49bd06daf5f273c6eebe93704178fd528d7cbb2
187-
pristine_git_object: dba88e1e980221c133143d71febe10860c6d6a11
186+
last_write_checksum: sha1:6316c32d8ed8ff89ef8c300d04c8f7c829211bb7
187+
pristine_git_object: 6400e356b5f8271904764a20ff21451b49262e26
188188
docs/models/agentstimesavedinsight.md:
189189
id: c998db614c46
190190
last_write_checksum: sha1:0653ac44dfc9ed51985aec9a129941b91501812a
@@ -193,6 +193,10 @@ trackedFiles:
193193
id: 8e00b4ec28db
194194
last_write_checksum: sha1:ba6bc3369d70a9f8b0cd136e5ffa9318b54222d3
195195
pristine_git_object: 4c36908d52176a2a907c75baa72220dd0c5b4af7
196+
docs/models/agentusecaseinsight.md:
197+
id: 64232b208d9b
198+
last_write_checksum: sha1:1b16c2e2fb1dfe9497529830dc32cd5cf746737b
199+
pristine_git_object: 88a6bd23f65b896d244ac106cada2c2bf48be582
196200
docs/models/agentusersinsight.md:
197201
id: d175e9ef2267
198202
last_write_checksum: sha1:13186b89e562d1930304e5f822f47de768855397
@@ -2787,8 +2791,8 @@ trackedFiles:
27872791
pristine_git_object: e2fda7fe263c2a111e53872e3ad5bc324b4dccfe
27882792
pyproject.toml:
27892793
id: 5d07e7d72637
2790-
last_write_checksum: sha1:1476c3b7e14a27c26723cc7f3a476a4cbc766cc5
2791-
pristine_git_object: 5f4520c8ae37f1be6e3b00f0fd53092c6f55a24e
2794+
last_write_checksum: sha1:3484dad371d5e392c56d2767bb721ebd64ac6f06
2795+
pristine_git_object: 8bba69820ba731e758565e28b726343156348561
27922796
scripts/prepare_readme.py:
27932797
id: e0c5957a6035
27942798
last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794
@@ -2815,8 +2819,8 @@ trackedFiles:
28152819
pristine_git_object: 58c4d70ac1797b86ff5c4237cafbc344c42d8f64
28162820
src/glean/api_client/_version.py:
28172821
id: 0ce22b26136b
2818-
last_write_checksum: sha1:0538e65f8fdd1206a7d8eaa1e9cef772202c7596
2819-
pristine_git_object: f74aefe7e9cba3d88bfc95df27bbf172f41f3346
2822+
last_write_checksum: sha1:e95544294fc7be86f2f6ea545d8c00a3c5db9837
2823+
pristine_git_object: 07b9a3d3751d50812e7ad4f5753613421a029763
28202824
src/glean/api_client/agents.py:
28212825
id: b925701a9217
28222826
last_write_checksum: sha1:e9608819a04566ba6e711f8f7cc9527d5dd095c9
@@ -2967,8 +2971,8 @@ trackedFiles:
29672971
pristine_git_object: fd580d9a1b7770b488fc424b5f8735d8b9bf681e
29682972
src/glean/api_client/models/__init__.py:
29692973
id: d5f6ea5efcbe
2970-
last_write_checksum: sha1:1639cfb1dfa4c246c39ee46c77863c719496dbdd
2971-
pristine_git_object: 1a54febc4288800bfdbb82e1afdbe73a08a088a5
2974+
last_write_checksum: sha1:a7538e25a121cc4fb433396c9e3fa44f7eb7bd1e
2975+
pristine_git_object: d5e531ce13dfbab201f0b3507f9202d3431cba44
29722976
src/glean/api_client/models/actionsummary.py:
29732977
id: 34ccdf9f1526
29742978
last_write_checksum: sha1:cfefc6678a5612dc8d50f2b0074dc54bb88e00e0
@@ -3047,8 +3051,8 @@ trackedFiles:
30473051
pristine_git_object: 027fbade0c78c6974ff596ccf77a0149eeb7084b
30483052
src/glean/api_client/models/agentsinsightsv2response.py:
30493053
id: 2bb9ea2bc70e
3050-
last_write_checksum: sha1:9e985d3fa4e1bb005978c06ac7ce6d4e1801c35f
3051-
pristine_git_object: cf04728a8f53f60e72d88d6c9cb7396ba3c04ecb
3054+
last_write_checksum: sha1:9084fdd36b0b56615af5e975f0f93e51a1e745cd
3055+
pristine_git_object: 571897b07c8f3b0fda536dd3f05efea1a898c808
30523056
src/glean/api_client/models/agentstimesavedinsight.py:
30533057
id: a0f77b3b907e
30543058
last_write_checksum: sha1:ade060149f91b527306789ab799f7aa5174416f5
@@ -3057,6 +3061,10 @@ trackedFiles:
30573061
id: 50317bf09cb6
30583062
last_write_checksum: sha1:6ee545d0cdd6246b7b743870984e71276ab7dfd6
30593063
pristine_git_object: bcfd9c3071b5b45fcc0e64f404eb8e8f83e51cbe
3064+
src/glean/api_client/models/agentusecaseinsight.py:
3065+
id: 80df217107c6
3066+
last_write_checksum: sha1:3885677fc8a2c8ca926e9186337a3265d0d99afc
3067+
pristine_git_object: 4841a4ed05f1d52a81306cec477439e716591ca8
30603068
src/glean/api_client/models/agentusersinsight.py:
30613069
id: f40366a65563
30623070
last_write_checksum: sha1:8190b560df9c90f0728f4d752c68eea4c1834399
@@ -5384,11 +5392,13 @@ trackedFiles:
53845392
tests/mockserver/internal/sdk/models/components/agentsinsightsv2request.go:
53855393
last_write_checksum: sha1:5bbebc8109a68e2b22dc0ca044b009a4ff491d1f
53865394
tests/mockserver/internal/sdk/models/components/agentsinsightsv2response.go:
5387-
last_write_checksum: sha1:37dfa579c66588425502ca91ae07cb9529bebd65
5395+
last_write_checksum: sha1:418f4d25a0a75bf92ce5599506dafff86660c08e
53885396
tests/mockserver/internal/sdk/models/components/agentstimesavedinsight.go:
53895397
last_write_checksum: sha1:1c07a7a8e8de690de25bddba511878bc5d40a515
53905398
tests/mockserver/internal/sdk/models/components/agentsusagebydepartmentinsight.go:
53915399
last_write_checksum: sha1:21c46d3f5363b157c2e4ee70451c7d0b3e8d77df
5400+
tests/mockserver/internal/sdk/models/components/agentusecaseinsight.go:
5401+
last_write_checksum: sha1:e7d3ef7ff9b2b85433c788603548074ca5d6233a
53925402
tests/mockserver/internal/sdk/models/components/agentusersinsight.go:
53935403
last_write_checksum: sha1:2f737cbf66693fdffffc4d9f30a3f26b09d35eb6
53945404
tests/mockserver/internal/sdk/models/components/allowlistoptions.go:
@@ -6601,8 +6611,8 @@ trackedFiles:
66016611
pristine_git_object: 6cc8aeec3c52329d389081db0a27f10f53f214b9
66026612
tests/test_messages.py:
66036613
id: be23089b1f8b
6604-
last_write_checksum: sha1:bef200db8e7fff0aa33ef17846f5054a2d035a88
6605-
pristine_git_object: 36643db35a2d2a3cf9d327379ee7a6cb30da51d0
6614+
last_write_checksum: sha1:2404e23964ef6a1f5ddc900402b34e597d2d9617
6615+
pristine_git_object: 132005ec7d1e35f805b6a8c28e07e043bce22f0a
66066616
tests/test_people.py:
66076617
id: 37c243940039
66086618
last_write_checksum: sha1:7c7268ffeebe48d81ed25e9b1cfc3a395abf5c1f
@@ -6625,8 +6635,8 @@ trackedFiles:
66256635
pristine_git_object: df2944ebda36db652b2770dd1c23be83df90fc99
66266636
tests/test_summarize.py:
66276637
id: a255d8a6f627
6628-
last_write_checksum: sha1:56ebc69bb4f81505bc6d5f557eafd27f2bf6287d
6629-
pristine_git_object: 3f56a110361de93de6f420cfacda057683eabbc8
6638+
last_write_checksum: sha1:ac09a1189221f7d330d0ef0297311e19527dcf17
6639+
pristine_git_object: c8dd49d6b33f70890710b270df94bf2fe7f06407
66306640
tests/test_tools.py:
66316641
id: 70889bdf7321
66326642
last_write_checksum: sha1:3c0c220f8975b050c322f6475e95f7af4e65b995
@@ -6944,7 +6954,7 @@ examples:
69446954
application/json: {}
69456955
responses:
69466956
"200":
6947-
application/json: {"gleanAssist": {"activityInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123"}, "activity": "SEARCH"}]}, "overviewResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "assistantResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "agentsResponse": {"topAgentsInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentsUsageByDepartmentInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentUsersInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}], "agentsTimeSavedInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}
6957+
application/json: {"gleanAssist": {"activityInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123"}, "activity": "SEARCH"}]}, "overviewResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "assistantResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "agentsResponse": {"topAgentsInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "topUseCasesInsights": [{"topAgentIcon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentsUsageByDepartmentInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentUsersInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}], "agentsTimeSavedInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}
69486958
messages:
69496959
speakeasy-default-messages:
69506960
requestBody:
@@ -7554,6 +7564,9 @@ generatedTests:
75547564
checkdatasourceauth: "2026-02-19T15:48:52Z"
75557565
getDatasourceInstanceConfiguration: "2026-03-09T18:34:29Z"
75567566
updateDatasourceInstanceConfiguration: "2026-03-09T18:34:29Z"
7567+
releaseNotes: |
7568+
## Python SDK Changes:
7569+
* `glean.client.insights.retrieve()`: `response.agents_response.top_use_cases_insights` **Added**
75577570
generatedFiles:
75587571
- .devcontainer/README.md
75597572
- .devcontainer/devcontainer.json

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ generation:
3434
generateNewTests: true
3535
skipResponseBodyAssertions: true
3636
python:
37-
version: 0.12.24
37+
version: 0.12.25
3838
additionalDependencies:
3939
dev: {}
4040
main: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0
22
info:
33
version: 0.9.0
44
title: Glean API
5-
x-source-commit-sha: 0aa266469924048ad422bf6314104f79b477e46a
5+
x-source-commit-sha: 4d5c4d687648dfb8d9d5f53b20e5aeaf0fddaada
66
description: |
77
# Introduction
88
In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean.
@@ -22,7 +22,7 @@ info:
2222
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
2323
x-logo:
2424
url: https://app.glean.com/images/glean-text2.svg
25-
x-open-api-commit-sha: 122e22b59935f3ed61845da28a7c607ebc115c9b
25+
x-open-api-commit-sha: c763c8edae0a5d61aedd4428022bd29619b4871f
2626
x-speakeasy-name: 'Glean API'
2727
servers:
2828
- url: https://{instance}-be.glean.com
@@ -9286,6 +9286,33 @@ components:
92869286
downvoteCount:
92879287
type: integer
92889288
description: Total number of downvotes for this agent over the specified time period.
9289+
AgentUseCaseInsight:
9290+
properties:
9291+
useCase:
9292+
type: string
9293+
description: Use case name
9294+
runCount:
9295+
type: integer
9296+
description: Total number of runs for this use case over the specified time period.
9297+
trend:
9298+
type: number
9299+
format: float
9300+
description: Percentage change in runs compared to the previous equivalent time period.
9301+
topDepartments:
9302+
type: string
9303+
description: Comma-separated list of the top departments using this use case.
9304+
topAgentId:
9305+
type: string
9306+
description: ID of the most-used agent for this use case.
9307+
topAgentName:
9308+
type: string
9309+
description: Name of the most-used agent for this use case.
9310+
topAgentIcon:
9311+
$ref: "#/components/schemas/IconConfig"
9312+
description: Icon of the most-used agent for this use case.
9313+
topAgentIsDeleted:
9314+
type: boolean
9315+
description: Indicates whether the top agent has been deleted.
92899316
AgentsUsageByDepartmentInsight:
92909317
properties:
92919318
department:
@@ -9375,6 +9402,10 @@ components:
93759402
type: array
93769403
items:
93779404
$ref: "#/components/schemas/PerAgentInsight"
9405+
topUseCasesInsights:
9406+
type: array
9407+
items:
9408+
$ref: "#/components/schemas/AgentUseCaseInsight"
93789409
agentsUsageByDepartmentInsights:
93799410
type: array
93809411
items:

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.761.8
1+
speakeasyVersion: 1.761.9
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:5fafd8224d41224b85cbb5f39c686e5da647fadcd8211bc9fae3c0834341dae6
6-
sourceBlobDigest: sha256:884a6119e9d59c15d47e169eaa496571dae1c106d390990aee38a25cb51e42c3
5+
sourceRevisionDigest: sha256:f06a7c8ec8086454bd112c4ecdb30daa84f3d63ce1f794985eb37ebd420488da
6+
sourceBlobDigest: sha256:9e4a238d3f64d91abff8b1f6d8220bd273ef6563e7841ff0c3d99d09f9073cfc
77
tags:
88
- latest
99
Glean Client API:
@@ -16,10 +16,10 @@ targets:
1616
glean:
1717
source: Glean API
1818
sourceNamespace: glean-api-specs
19-
sourceRevisionDigest: sha256:5fafd8224d41224b85cbb5f39c686e5da647fadcd8211bc9fae3c0834341dae6
20-
sourceBlobDigest: sha256:884a6119e9d59c15d47e169eaa496571dae1c106d390990aee38a25cb51e42c3
19+
sourceRevisionDigest: sha256:f06a7c8ec8086454bd112c4ecdb30daa84f3d63ce1f794985eb37ebd420488da
20+
sourceBlobDigest: sha256:9e4a238d3f64d91abff8b1f6d8220bd273ef6563e7841ff0c3d99d09f9073cfc
2121
codeSamplesNamespace: glean-api-specs-python-code-samples
22-
codeSamplesRevisionDigest: sha256:15a4a6614d94c2111ddad680da00d4286330aadf586e4ceb4f5312fe92377032
22+
codeSamplesRevisionDigest: sha256:9823c7e4079098566ee698d458eab8924d70208e658d7b247c6b16cd865e30be
2323
workflow:
2424
workflowVersion: 1.0.0
2525
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,4 +738,14 @@ Based on:
738738
### Generated
739739
- [python v0.12.23] .
740740
### Releases
741-
- [PyPI v0.12.23] https://pypi.org/project/glean-api-client/0.12.23 - .
741+
- [PyPI v0.12.23] https://pypi.org/project/glean-api-client/0.12.23 - .
742+
743+
## 2026-04-22 02:40:20
744+
### Changes
745+
Based on:
746+
- OpenAPI Doc
747+
- Speakeasy CLI 1.761.9 (2.881.4) https://github.com/speakeasy-api/speakeasy
748+
### Generated
749+
- [python v0.12.25] .
750+
### Releases
751+
- [PyPI v0.12.25] https://pypi.org/project/glean-api-client/0.12.25 - .

docs/models/agentsinsightsv2response.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
| `daily_active_user_timeseries` | [Optional[models.LabeledCountInfo]](../models/labeledcountinfo.md) | :heavy_minus_sign: | N/A |
1313
| `shared_agents_count` | *Optional[int]* | :heavy_minus_sign: | Total number of shared agents. |
1414
| `top_agents_insights` | List[[models.PerAgentInsight](../models/peragentinsight.md)] | :heavy_minus_sign: | N/A |
15+
| `top_use_cases_insights` | List[[models.AgentUseCaseInsight](../models/agentusecaseinsight.md)] | :heavy_minus_sign: | N/A |
1516
| `agents_usage_by_department_insights` | List[[models.AgentsUsageByDepartmentInsight](../models/agentsusagebydepartmentinsight.md)] | :heavy_minus_sign: | N/A |
1617
| `agent_users_insights` | List[[models.AgentUsersInsight](../models/agentusersinsight.md)] | :heavy_minus_sign: | N/A |
1718
| `agents_time_saved_insights` | List[[models.AgentsTimeSavedInsight](../models/agentstimesavedinsight.md)] | :heavy_minus_sign: | Insights for agents time saved over the specified time period. |

0 commit comments

Comments
 (0)