Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 23 additions & 19 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
python:
version: 0.7.2
version: 0.7.3
additionalDependencies:
dev: {}
main: {}
allowedRedefinedBuiltins:
- id
- object
authors:
- Speakeasy
baseErrorName: GleanBaseError
Expand Down
30 changes: 25 additions & 5 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3774,6 +3774,7 @@ components:
email:
type: string
description: The email address of the user who submitted the Feedback.event.MANUAL_FEEDBACK event.
deprecated: true
source:
type: string
description: The source associated with the Feedback.event.MANUAL_FEEDBACK event.
Expand Down Expand Up @@ -4366,7 +4367,7 @@ components:
description: Disables automatic adjustment of the input query for spelling corrections or other reasons.
returnLlmContentOverSnippets:
type: boolean
description: "[beta] Enables expanded content to be returned for LLM usage. The size of content per result returned should be modified using maxSnippetSize. Server may return less or more than what is specified in maxSnippetSize. For more details, https://docs.google.com/document/d/1CTOLSxWWT9WDEnHVLoCUaxbGYyXYP8kctPRF-RluSQY/edit. Requires sufficient permissions."
description: Enables expanded content to be returned for LLM usage. The size of content per result returned should be modified using maxSnippetSize. Server may return less or more than what is specified in maxSnippetSize. For more details, see https://developers.glean.com/guides/search/llm-content.
inclusions:
$ref: "#/components/schemas/RestrictionFilters"
description: A list of filters which restrict the search results to only the specified content.
Expand Down Expand Up @@ -4864,6 +4865,9 @@ components:
name:
type: string
description: Name of the group.
datasourceInstance:
type: string
description: Datasource instance if the group belongs to one e.g. external groups.
UserRole:
type: string
description: A user's role with respect to a specific document.
Expand Down Expand Up @@ -5841,9 +5845,6 @@ components:
required:
- snippet
properties:
snippet:
type: string
description: A matching snippet from the document. Query term matches are marked by the unicode characters uE006 and uE007.
mimeType:
type: string
description: The mime type of the snippets, currently either text/plain or text/html.
Expand All @@ -5861,6 +5862,10 @@ components:
url:
type: string
description: A URL, generated based on availability, that links to the position of the snippet text or to the nearest header above the snippet text.
snippet:
type: string
deprecated: true
description: A matching snippet from the document. Query term matches are marked by the unicode characters uE006 and uE007. Use 'text' field instead.
example:
snippet: snippet
mimeType: mimeType
Expand Down Expand Up @@ -5954,6 +5959,8 @@ components:
- THREAD_ROOT
- PREFIX
- SUFFIX
- AUTHOR_PREFIX
- AUTHOR_SUFFIX
ClusterGroup:
required:
- visibleCountHint
Expand Down Expand Up @@ -7306,7 +7313,7 @@ components:
$ref: "#/components/schemas/AgentConfig"
description: Describes the agent config that generated this message. Populated on responses and not required on requests.
author:
default: GLEAN_AI
default: USER
enum:
- USER
- GLEAN_AI
Expand Down Expand Up @@ -9145,6 +9152,7 @@ components:
- ZERO_STATE_WORKFLOW_FAVORITES
- ZERO_STATE_WORKFLOW_POPULAR
- ZERO_STATE_WORKFLOW_SUGGESTION
- PERSONALIZED_CHAT_SUGGESTION
description: Categories of content requested. An allowlist gives flexibility to request content separately or together.
requestOptions:
$ref: "#/components/schemas/FeedRequestOptions"
Expand Down Expand Up @@ -9300,6 +9308,14 @@ components:
type: array
items:
$ref: "#/components/schemas/GeneratedAttachment"
ChatSuggestion:
properties:
query:
type: string
description: The actionable chat query to run when the user selects this suggestion.
feature:
type: string
description: Targeted Glean Chat feature for the suggestion.
PromptTemplateMutableProperties:
required:
- template
Expand Down Expand Up @@ -9513,6 +9529,7 @@ components:
- ZERO_STATE_PROMPT_TEMPLATE_SUGGESTION
- ZERO_STATE_STATIC_WORKFLOW_SUGGESTION
- ZERO_STATE_AGENT_SUGGESTION
- PERSONALIZED_CHAT_SUGGESTION
description: Type of the justification.
justification:
type: string
Expand All @@ -9537,6 +9554,8 @@ components:
$ref: "#/components/schemas/Person"
app:
$ref: "#/components/schemas/AppResult"
chatSuggestion:
$ref: "#/components/schemas/ChatSuggestion"
promptTemplate:
$ref: "#/components/schemas/PromptTemplateResult"
workflow:
Expand Down Expand Up @@ -9578,6 +9597,7 @@ components:
- ZERO_STATE_WORKFLOW_FAVORITES
- ZERO_STATE_WORKFLOW_POPULAR
- ZERO_STATE_WORKFLOW_SUGGESTION
- PERSONALIZED_CHAT_SUGGESTION
description: Category of the result, one of the requested categories in incoming request.
primaryEntry:
$ref: "#/components/schemas/FeedEntry"
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
speakeasyVersion: 1.603.0
speakeasyVersion: 1.606.9
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:8f18d79a0a7d8f51de7edd5bc8ca3ccc569b81832ffc44ce95a27a12e67b9b7d
sourceBlobDigest: sha256:bb3e5a453f03cbdecf3fb3925768ef4cb0b3119083d9d36c341e1ecd721cde8b
sourceRevisionDigest: sha256:35193fded9c9797576c742f6e93e2e3e9d507aa2ab2c55a5458825561552f33e
sourceBlobDigest: sha256:1dc638c477afb69ccc30ba6482d7ac2e7237238d44638da8d0c4ece45f36d416
tags:
- latest
- speakeasy-sdk-regen-1752597387
- speakeasy-sdk-regen-1755200990
Glean Client API:
sourceNamespace: glean-client-api
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:8f18d79a0a7d8f51de7edd5bc8ca3ccc569b81832ffc44ce95a27a12e67b9b7d
sourceBlobDigest: sha256:bb3e5a453f03cbdecf3fb3925768ef4cb0b3119083d9d36c341e1ecd721cde8b
sourceRevisionDigest: sha256:35193fded9c9797576c742f6e93e2e3e9d507aa2ab2c55a5458825561552f33e
sourceBlobDigest: sha256:1dc638c477afb69ccc30ba6482d7ac2e7237238d44638da8d0c4ece45f36d416
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:de3bba82d5dbca7c1e5176fccda54e82660c50b9dbe534a26fba17e65abf4dc1
codeSamplesRevisionDigest: sha256:ec1033795495ed5feb092f4ca786534382c763ff1787a997db77303ef0539ad9
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ with Glean(

res = glean.client.chat.create(messages=[
{
"author": models.Author.USER,
"fragments": [
models.ChatMessageFragment(
text="What are the company holidays this year?",
Expand Down Expand Up @@ -176,7 +175,6 @@ async def main():

res = await glean.client.chat.create_async(messages=[
{
"author": models.Author.USER,
"fragments": [
models.ChatMessageFragment(
text="What are the company holidays this year?",
Expand Down Expand Up @@ -205,7 +203,6 @@ with Glean(

res = glean.client.chat.create_stream(messages=[
{
"author": models.Author.USER,
"fragments": [
models.ChatMessageFragment(
text="What are the company holidays this year?",
Expand Down Expand Up @@ -235,7 +232,6 @@ async def main():

res = await glean.client.chat.create_stream_async(messages=[
{
"author": models.Author.USER,
"fragments": [
models.ChatMessageFragment(
text="What are the company holidays this year?",
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,14 @@ Based on:
### Generated
- [python v0.7.2] .
### Releases
- [PyPI v0.7.2] https://pypi.org/project/glean/0.7.2 - .
- [PyPI v0.7.2] https://pypi.org/project/glean/0.7.2 - .

## 2025-08-29 15:49:37
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.606.9 (2.687.13) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.7.3] .
### Releases
- [PyPI v0.7.3] https://pypi.org/project/glean/0.7.3 - .
4 changes: 0 additions & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ with Glean(

res = glean.client.chat.create(messages=[
{
"author": models.Author.USER,
"fragments": [
models.ChatMessageFragment(
text="What are the company holidays this year?",
Expand Down Expand Up @@ -41,7 +40,6 @@ async def main():

res = await glean.client.chat.create_async(messages=[
{
"author": models.Author.USER,
"fragments": [
models.ChatMessageFragment(
text="What are the company holidays this year?",
Expand All @@ -68,7 +66,6 @@ with Glean(

res = glean.client.chat.create_stream(messages=[
{
"author": models.Author.USER,
"fragments": [
models.ChatMessageFragment(
text="What are the company holidays this year?",
Expand Down Expand Up @@ -98,7 +95,6 @@ async def main():

res = await glean.client.chat.create_stream_async(messages=[
{
"author": models.Author.USER,
"fragments": [
models.ChatMessageFragment(
text="What are the company holidays this year?",
Expand Down
9 changes: 9 additions & 0 deletions docs/models/chatsuggestion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ChatSuggestion


## Fields

| Field | Type | Required | Description |
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| `query` | *Optional[str]* | :heavy_minus_sign: | The actionable chat query to run when the user selects this suggestion. |
| `feature` | *Optional[str]* | :heavy_minus_sign: | Targeted Glean Chat feature for the suggestion. |
24 changes: 13 additions & 11 deletions docs/models/clustertypeenum.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ The reason for inclusion of clusteredResults.

## Values

| Name | Value |
| -------------- | -------------- |
| `SIMILAR` | SIMILAR |
| `FRESHNESS` | FRESHNESS |
| `TITLE` | TITLE |
| `CONTENT` | CONTENT |
| `NONE` | NONE |
| `THREAD_REPLY` | THREAD_REPLY |
| `THREAD_ROOT` | THREAD_ROOT |
| `PREFIX` | PREFIX |
| `SUFFIX` | SUFFIX |
| Name | Value |
| --------------- | --------------- |
| `SIMILAR` | SIMILAR |
| `FRESHNESS` | FRESHNESS |
| `TITLE` | TITLE |
| `CONTENT` | CONTENT |
| `NONE` | NONE |
| `THREAD_REPLY` | THREAD_REPLY |
| `THREAD_ROOT` | THREAD_ROOT |
| `PREFIX` | PREFIX |
| `SUFFIX` | SUFFIX |
| `AUTHOR_PREFIX` | AUTHOR_PREFIX |
| `AUTHOR_SUFFIX` | AUTHOR_SUFFIX |
1 change: 1 addition & 0 deletions docs/models/feedentry.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
| `collection_item` | [Optional[models.CollectionItem]](../models/collectionitem.md) | :heavy_minus_sign: | N/A | |
| `person` | [Optional[models.Person]](../models/person.md) | :heavy_minus_sign: | N/A | {<br/>"name": "George Clooney",<br/>"obfuscatedId": "abc123"<br/>} |
| `app` | [Optional[models.AppResult]](../models/appresult.md) | :heavy_minus_sign: | N/A | |
| `chat_suggestion` | [Optional[models.ChatSuggestion]](../models/chatsuggestion.md) | :heavy_minus_sign: | N/A | |
| `prompt_template` | [Optional[models.PromptTemplateResult]](../models/prompttemplateresult.md) | :heavy_minus_sign: | N/A | |
| `workflow` | [Optional[models.WorkflowResult]](../models/workflowresult.md) | :heavy_minus_sign: | N/A | |
| `activities` | List[[models.UserActivity](../models/useractivity.md)] | :heavy_minus_sign: | List of activity where each activity has user, action, timestamp. | |
Expand Down
3 changes: 2 additions & 1 deletion docs/models/feedrequestcategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@
| `ZERO_STATE_WORKFLOW_CREATED_BY_ME` | ZERO_STATE_WORKFLOW_CREATED_BY_ME |
| `ZERO_STATE_WORKFLOW_FAVORITES` | ZERO_STATE_WORKFLOW_FAVORITES |
| `ZERO_STATE_WORKFLOW_POPULAR` | ZERO_STATE_WORKFLOW_POPULAR |
| `ZERO_STATE_WORKFLOW_SUGGESTION` | ZERO_STATE_WORKFLOW_SUGGESTION |
| `ZERO_STATE_WORKFLOW_SUGGESTION` | ZERO_STATE_WORKFLOW_SUGGESTION |
| `PERSONALIZED_CHAT_SUGGESTION` | PERSONALIZED_CHAT_SUGGESTION |
3 changes: 2 additions & 1 deletion docs/models/feedresultcategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ Category of the result, one of the requested categories in incoming request.
| `ZERO_STATE_WORKFLOW_CREATED_BY_ME` | ZERO_STATE_WORKFLOW_CREATED_BY_ME |
| `ZERO_STATE_WORKFLOW_FAVORITES` | ZERO_STATE_WORKFLOW_FAVORITES |
| `ZERO_STATE_WORKFLOW_POPULAR` | ZERO_STATE_WORKFLOW_POPULAR |
| `ZERO_STATE_WORKFLOW_SUGGESTION` | ZERO_STATE_WORKFLOW_SUGGESTION |
| `ZERO_STATE_WORKFLOW_SUGGESTION` | ZERO_STATE_WORKFLOW_SUGGESTION |
| `PERSONALIZED_CHAT_SUGGESTION` | PERSONALIZED_CHAT_SUGGESTION |
Loading