Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
  •  
  •  
  •  
2,668 changes: 1,342 additions & 1,326 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
python:
version: 0.17.18
version: 0.17.19
additionalDependencies:
dev: {}
main: {}
Expand Down Expand Up @@ -87,13 +87,15 @@ python:
methodArguments: infer-optional-args
methodTimeoutArgument: timeout-ms
methodTimeoutUnits: milliseconds
modelSerializationMethods: false
moduleName: glean.api_client
multipartArrayFormat: standard
optionalDependencies: {}
outputModelSuffix: output
packageManager: poetry
packageName: glean-api-client
preApplyUnionDiscriminators: false
preserveUnknownFields: false
pytestFilterWarnings: []
pytestTimeout: 0
rawResponseHelpers: false
Expand Down
200 changes: 153 additions & 47 deletions .speakeasy/glean-merged-spec.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/tests.arazzo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159696,7 +159696,7 @@ workflows:
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"client":{"client_id":"<id>","display_name":"Janie_Von32","registration_type":"STATIC","grant_types":[],"redirect_uris":["<value 1>"],"is_active":false},"request_id":"<id>"}
{"client":{"client_id":"<id>","display_name":"Janie_Von32","registration_type":"STATIC","grant_types":[],"redirect_uris":["<value 1>"],"is_enabled":true},"request_id":"<id>"}
type: simple
x-speakeasy-test-group: clients
x-speakeasy-test-rebuild: true
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
speakeasyVersion: 1.803.1
speakeasyVersion: 1.805.0
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:e0d6fab09b60a5caa02a27906e8f29a80d3544ef8a1418c923ebafa06ffc3dee
sourceBlobDigest: sha256:0f2bbe5dc4673e325c8bcbf3bf7343affc5c7a4a3a36f55d1fc4d1dd88de66c7
sourceRevisionDigest: sha256:5af3490c1cd1cce6179415fa675ca45c35a4356646b62795fbd707c89d630f2e
sourceBlobDigest: sha256:acc732efabf6fc204e5cda2db05c97e5a18630196c0706c3f6de7958beb4a4a8
tags:
- latest
Glean Client API:
Expand All @@ -16,10 +16,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:e0d6fab09b60a5caa02a27906e8f29a80d3544ef8a1418c923ebafa06ffc3dee
sourceBlobDigest: sha256:0f2bbe5dc4673e325c8bcbf3bf7343affc5c7a4a3a36f55d1fc4d1dd88de66c7
sourceRevisionDigest: sha256:5af3490c1cd1cce6179415fa675ca45c35a4356646b62795fbd707c89d630f2e
sourceBlobDigest: sha256:acc732efabf6fc204e5cda2db05c97e5a18630196c0706c3f6de7958beb4a4a8
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:2c03e1592badb94d5c70fc3678d3becd1c647e74e041d183259a24911a958cb9
codeSamplesRevisionDigest: sha256:955dbeb4ab1234a624f292cef0ce9dc2e8b4b9454d4cdd3cbe56e2f6dfc990fa
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
30 changes: 16 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.client.chat.create(messages=[
Expand Down Expand Up @@ -173,7 +173,7 @@ import os
async def main():

async with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = await glean.client.chat.create_async(messages=[
Expand Down Expand Up @@ -201,7 +201,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.client.chat.create_stream(messages=[
Expand Down Expand Up @@ -231,7 +231,7 @@ import os
async def main():

async with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = await glean.client.chat.create_stream_async(messages=[
Expand Down Expand Up @@ -269,7 +269,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.agents.search(name="HR Policy Agent")
Expand Down Expand Up @@ -639,7 +639,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.chat.create_stream(input="Summarize our parental leave policy as JSON.", store=True, text={
Expand Down Expand Up @@ -693,7 +693,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.skills.create(file={
Expand All @@ -720,7 +720,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.agents.search(name="HR Policy Agent",
Expand All @@ -740,7 +740,7 @@ import os

with Glean(
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.agents.search(name="HR Policy Agent")
Expand Down Expand Up @@ -856,7 +856,7 @@ import os
with Glean(
server_idx=0,
instance="instance-name",
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.agents.search(name="HR Policy Agent")
Expand All @@ -876,7 +876,7 @@ import os

with Glean(
server_url="https://instance-name-be.glean.com",
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.agents.search(name="HR Policy Agent")
Expand All @@ -895,7 +895,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.indexing.datasources.submit(datasource_instance="<value>", type_="<value>", request_body={
Expand Down Expand Up @@ -1018,18 +1018,20 @@ import os
def main():

with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:
# Rest of application here...
pass


# Or when using async:
async def amain():

async with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:
# Rest of application here...
pass
```
<!-- End Resource Management [resource-management] -->

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1038,4 +1038,14 @@ Based on:
### Generated
- [python v0.17.18] .
### Releases
- [PyPI v0.17.18] https://pypi.org/project/glean-api-client/0.17.18 - .
- [PyPI v0.17.18] https://pypi.org/project/glean-api-client/0.17.18 - .

## 2026-10-31 04:28:01
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.805.0 (2.954.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.17.19] .
### Releases
- [PyPI v0.17.19] https://pypi.org/project/glean-api-client/0.17.19 - .
8 changes: 4 additions & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.client.chat.create(messages=[
Expand Down Expand Up @@ -36,7 +36,7 @@ import os
async def main():

async with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = await glean.client.chat.create_async(messages=[
Expand All @@ -62,7 +62,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.client.chat.create_stream(messages=[
Expand Down Expand Up @@ -92,7 +92,7 @@ import os
async def main():

async with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = await glean.client.chat.create_stream_async(messages=[
Expand Down
1 change: 1 addition & 0 deletions docs/models/feedrequestcategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ value = FeedRequestCategory.DOCUMENT_SUGGESTION
| `PROJECT_FOCUS_BLOCK` | PROJECT_FOCUS_BLOCK |
| `PROJECT_NEXT_STEP` | PROJECT_NEXT_STEP |
| `DEMO_CARD` | DEMO_CARD |
| `PERSONAL_AGENT_NUX` | PERSONAL_AGENT_NUX |
| `RESOLVE_MEETING_CONFLICT` | RESOLVE_MEETING_CONFLICT |
| `FINDING_MEETING_ROOM` | FINDING_MEETING_ROOM |
| `OOO_PLANNER` | OOO_PLANNER |
Expand Down
1 change: 1 addition & 0 deletions docs/models/feedresultcategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ value = FeedResultCategory.DOCUMENT_SUGGESTION
| `PROJECT_FOCUS_BLOCK` | PROJECT_FOCUS_BLOCK |
| `PROJECT_NEXT_STEP` | PROJECT_NEXT_STEP |
| `DEMO_CARD` | DEMO_CARD |
| `PERSONAL_AGENT_NUX` | PERSONAL_AGENT_NUX |
| `RESOLVE_MEETING_CONFLICT` | RESOLVE_MEETING_CONFLICT |
| `FINDING_MEETING_ROOM` | FINDING_MEETING_ROOM |
| `OOO_PLANNER` | OOO_PLANNER |
Expand Down
1 change: 1 addition & 0 deletions docs/models/justificationtype.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ value = JustificationType.FREQUENTLY_ACCESSED
| `PROJECT_FOCUS_BLOCK` | PROJECT_FOCUS_BLOCK |
| `PROJECT_NEXT_STEP` | PROJECT_NEXT_STEP |
| `DEMO_CARD` | DEMO_CARD |
| `PERSONAL_AGENT_NUX` | PERSONAL_AGENT_NUX |
| `RESOLVE_MEETING_CONFLICT` | RESOLVE_MEETING_CONFLICT |
| `FINDING_MEETING_ROOM` | FINDING_MEETING_ROOM |
| `OOO_PLANNER` | OOO_PLANNER |
Expand Down
9 changes: 5 additions & 4 deletions docs/models/message.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

## Fields

| Field | Type | Required | Description | Example |
| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
| `role` | *Optional[str]* | :heavy_minus_sign: | The role of the message. | USER |
| `content` | List[[models.MessageTextBlock](../models/messagetextblock.md)] | :heavy_minus_sign: | The content of the message. | |
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `role` | *Optional[str]* | :heavy_minus_sign: | The role of the message. | USER |
| `content` | List[[models.MessageTextBlock](../models/messagetextblock.md)] | :heavy_minus_sign: | The content of the message. | |
| `message_tracking_token` | *Optional[str]* | :heavy_minus_sign: | An opaque token that represents this particular agent message. Populated only on `GLEAN_AI` messages in responses. To record feedback, pass the token of the message being rated (typically the final `GLEAN_AI` message of the run) as the single entry in `trackingTokens` to `/feedback`, with `category: CHAT`. | |
Loading
Loading