diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index fb978c5e..f2f6fbe5 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 3e3290ca-0ee8-4981-b1bc-14536048fa63 management: - docChecksum: 89c2eac364945e9c2e201f80cb8a2d72 + docChecksum: dd4f304ebf5ed5b02b4d9d54270d33a1 docVersion: 0.9.0 speakeasyVersion: 1.795.1 generationVersion: 2.932.9 - releaseVersion: 0.16.0 - configChecksum: 305d1b3865da828cf96c1c98829ad9ba + releaseVersion: 0.16.1 + configChecksum: c4ea74bb21e39957d292092ac1c8c45c repoURL: https://github.com/gleanwork/api-client-python.git installationURL: https://github.com/gleanwork/api-client-python.git published: true persistentEdits: - generation_id: cd37a2f4-9877-4161-9fc7-f557dd9e4231 - pristine_commit_hash: 72efbc39af4ca0a33ff8d10dc9395be6ab128f55 - pristine_tree_hash: 7d506ac8f9bdc4b783207925aee89b353e41ad64 + generation_id: 813fb2c6-7c87-4acc-9c33-bcfdc6e11b6a + pristine_commit_hash: 0eef708b454958090babd9d9f4333a4ac47b0349 + pristine_tree_hash: 715fe44cc06ba9367527a49565b53ea36a4be917 features: python: acceptHeaders: 3.0.0 @@ -2253,8 +2253,8 @@ trackedFiles: pristine_git_object: 6ba12306df49a4d5a78a1c53269fc78d2672b7b7 docs/models/platformagentscreaterunrequest.md: id: c9a4aa1f28b2 - last_write_checksum: sha1:34bcec4aebfc10fa3633b22838cca8370e56496b - pristine_git_object: df93145879eef0a308f74b9241ac16c9b6acacb9 + last_write_checksum: sha1:98d453933f6d93d158222fedb82b67180880266c + pristine_git_object: 1e66f04a2f7c8e8d71c1cc063d9c441171fe92af docs/models/platformagentscreaterunresponse.md: id: 24710130cfb1 last_write_checksum: sha1:7060b94ca4737945356ac99814fe4cebec042bfe @@ -2577,8 +2577,8 @@ trackedFiles: pristine_git_object: 566f1092589cad8787c57dd7042e2f2c71ea49b4 docs/models/platformskillsupdaterequest.md: id: f8592c4371a6 - last_write_checksum: sha1:32c122889d11396f07aef39f80135d7c15880d70 - pristine_git_object: 3ea30e833501442e500b5572098b632d97d0f7ab + last_write_checksum: sha1:fd941f884d06bbe3011eb8e6289bdcb55e54e4b2 + pristine_git_object: 7bf2215d7b76b6de9649f86008d3a47360868e95 docs/models/platformskillsyncresponse.md: id: b449d9f6b2c6 last_write_checksum: sha1:f8f1d23d37aac8ede523cdb7fa744e9c9dc55cbc @@ -3589,8 +3589,8 @@ trackedFiles: pristine_git_object: 61dd41f0319201cc105e29174ab1cc0018cecbce docs/sdks/agents/README.md: id: 5965d8232fd8 - last_write_checksum: sha1:578b795ea5a1511d0f0540a8d975eb93ca34366f - pristine_git_object: c3384d9d05bd776a0500f2b128218024b22a00da + last_write_checksum: sha1:5b7b93667d435959548d8de1e845783f047e12af + pristine_git_object: f7fb5a042c4484456d1b0065c874b95d06909fb7 docs/sdks/announcements/README.md: id: 3d2e130a217c last_write_checksum: sha1:ecfa655bb27dee6890656542cfafda0aa6ed1ab9 @@ -3601,8 +3601,8 @@ trackedFiles: pristine_git_object: 85153af7ec594c2dbd1e4a8c2eba5ce713796265 docs/sdks/chatsdk/README.md: id: 83b4ee321663 - last_write_checksum: sha1:47740532523da2b553e05be325f4af9de0fcd998 - pristine_git_object: fbb19c8f85059b35437ecc3f384f449499bd38cc + last_write_checksum: sha1:80b27be92fe4d96fca14313eaa9fcb1524f7bac1 + pristine_git_object: f541f724429e74e02ddfdc6ae0c99d1fdc38d04d docs/sdks/clientactivity/README.md: id: a309613986a5 last_write_checksum: sha1:d9737458d891593ba2fb3372ab6e60ea728fe9a5 @@ -3709,8 +3709,8 @@ trackedFiles: pristine_git_object: 2367ff8a3d48bca392eedfc035583e9806bb5b98 docs/sdks/skills/README.md: id: 3a14a5c90791 - last_write_checksum: sha1:49e30084ae2c99ba6a53d5aa6e0851e63cc2dba8 - pristine_git_object: 8cdfbc33daa86ae3521cb79c6fdc38bebff866cf + last_write_checksum: sha1:714358973925fabec1cdce11f90d590b401a0312 + pristine_git_object: b89e44039e28c1812c19444a36c32f902463cac9 docs/sdks/tools/README.md: id: 044286549bac last_write_checksum: sha1:9b9a8e80c1d16018bd66150ba482b83825d6cf67 @@ -3737,8 +3737,8 @@ trackedFiles: pristine_git_object: 79e388be87446ab6a4064b372bad0e8376d0cb5e pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:c24376fbeda6b68fea9fac8500c6133e9a13f7e5 - pristine_git_object: d391b6dbed7565288eed49d23677f789e3c487eb + last_write_checksum: sha1:47c4c996133e0a3adbcf155d937d19aa4c5a7d25 + pristine_git_object: 3e07b290191d20adb52b0682dcefceb99e4ffd4c scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794 @@ -3765,8 +3765,8 @@ trackedFiles: pristine_git_object: 55f23c1feabfedeb7e8cd5bea8b910f0ae0b77d9 src/glean/api_client/_version.py: id: 0ce22b26136b - last_write_checksum: sha1:6da27c6d8ff767845d1be3bae351052f981443bc - pristine_git_object: 6a6123654415d50089aa40e1b02b93a5b42437ec + last_write_checksum: sha1:6431b746b8ab8f0a668fe0c9cbe4d014f8a0cbba + pristine_git_object: b18d2de172672d92408ee5ff6074f4e6885c8027 src/glean/api_client/agents.py: id: b925701a9217 last_write_checksum: sha1:1d4b152d9d9260d1c97d4983f521f30b5cfa1085 @@ -7293,8 +7293,8 @@ trackedFiles: pristine_git_object: ab9263d43404e8e6f07af222a3e785aca2fbf35f tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go: id: 3fb93a419933 - last_write_checksum: sha1:09a57acc1d004a2fff76290b6c25e24471ad333e - pristine_git_object: 469bd6e6ee30bb11661f2a596a4504b75fa07da0 + last_write_checksum: sha1:7b2ffc9e36bbfc20c3bc1894f3727f96aa94ac74 + pristine_git_object: 75fb8eb70f6913c8f83c2895f5542bee631ffdaf tests/mockserver/internal/handler/pathpostrestapiv1createshortcut.go: id: 8d9d3abb0c34 last_write_checksum: sha1:dcdf684a85e20db1aee571db9a54a3ee259d71d5 @@ -10641,8 +10641,8 @@ trackedFiles: pristine_git_object: db4221c9f5953adc8f8219979060f1248ae5c342 tests/test_agents.py: id: 2eb70a860f3a - last_write_checksum: sha1:6e1b73ba0d82b9ea9bfa33819b2293f35d344dae - pristine_git_object: 8b75a0e000414b7fb57a82ac2523251ca40fc12e + last_write_checksum: sha1:78899739204e9e80aae4337c6396a57ab816a4e0 + pristine_git_object: 39a3f77bf4a5c99d3def7a0bb99493a9ef83e95c tests/test_announcements.py: id: 720cc07fca06 last_write_checksum: sha1:1d0dcab6446633bc6809bc67e14b6cc1755aa319 @@ -10657,8 +10657,8 @@ trackedFiles: pristine_git_object: d2b02f269ac418b9a9240772f28ab1bd3cfa4997 tests/test_chat_sdk.py: id: d6e6d5c5a1b2 - last_write_checksum: sha1:72cb3066bc3db6fba04a615d4a8f4505de1de29c - pristine_git_object: 41b3a54c70ea6fa17f921c13ad06a07899fe0f51 + last_write_checksum: sha1:8517d306da079161e7be794bccd264e110a9dbad + pristine_git_object: 0ea26010bc53d5f562beb6a9637aa40cab8c03d6 tests/test_client.py: id: 6b61d4b06ccc last_write_checksum: sha1:df970d19cdb9f9e057722699dc73965b6f9b1758 @@ -10769,12 +10769,12 @@ trackedFiles: pristine_git_object: c3b37c851073899ae790451988d2617aa065ec9c tests/test_skills.py: id: ac5db26bd6b1 - last_write_checksum: sha1:88782257782c4a24a77f5ab5d8e50d1129086b6f - pristine_git_object: 98d7f69d362a6770ee01a6c3d9f3684b01a6cbd6 + last_write_checksum: sha1:51a01a7104693f6ddde3496296f520a0f1c6243d + pristine_git_object: 63587d5a9e7b7e506ce9daf00d51ce92afb56035 tests/test_summarize.py: id: a255d8a6f627 - last_write_checksum: sha1:6244d4da1522f443776e78aeb31dd83ebdc90c42 - pristine_git_object: 2b5d1f38b094214933fc3b8da79ff8ed979c5122 + last_write_checksum: sha1:d0245ffca1533446942ac2b0f1109d4f6e9888b4 + pristine_git_object: f9c494d59cc7d73c8b3ea1c965b544c79625198a tests/test_tools.py: id: 70889bdf7321 last_write_checksum: sha1:e9e37efd6a65d805c02d70d548df9c87dd062b0e @@ -11764,7 +11764,7 @@ examples: path: agent_id: "" requestBody: - application/json: {"messages": [{"role": "USER", "content": []}], "stream": false} + application/json: {"messages": [{"role": "USER", "content": [{"text": "What is our parental leave policy?", "type": "text"}]}], "stream": false} responses: "200": application/json: {"run": {"agent_id": "", "messages": [{"role": "USER", "content": []}], "status": "error"}, "messages": [{"role": "USER", "content": []}], "request_id": ""} @@ -11929,7 +11929,7 @@ examples: platform-chat-create: speakeasy-default-platform-chat-create: requestBody: - application/json: {"input": "", "stream": false, "store": true} + application/json: {"input": "What is our parental leave policy?", "stream": false, "store": true} responses: "200": application/json: {"id": "", "object": "RESPONSE", "created_at": "2026-05-19T05:32:52.505Z", "status": "COMPLETED", "output": [{"type": "MESSAGE", "role": "ASSISTANT", "content": [{"type": "OUTPUT_TEXT", "text": ""}]}], "store": false, "request_id": ""} @@ -11941,7 +11941,7 @@ examples: platform-skills-import: speakeasy-default-platform-skills-import: requestBody: - application/json: {"source_urls": [""]} + application/json: {"source_urls": ["https://github.com/anthropics/skills/tree/main/skills/skill-creator"]} responses: "200": application/json: {"skills": [], "request_id": ""} @@ -11952,7 +11952,7 @@ examples: platform-skills-preview-source: speakeasy-default-platform-skills-preview-source: requestBody: - application/json: {"source_url": "https://ugly-information.name/", "stream": false} + application/json: {"source_url": "https://github.com/anthropics/skills", "stream": false} responses: "200": application/json: {"skills": [], "failures": [{"source_url": "https://slimy-availability.org", "code": "SKILL_FETCH_FAILED", "detail": ""}], "request_id": ""} @@ -11967,7 +11967,7 @@ examples: path: skill_id: "" requestBody: - application/json: {"status": "DISABLED"} + application/json: {"status": "ENABLED"} responses: "200": application/json: {"skill": {"id": "", "display_name": "Afton14", "description": "taut netsuke duh sonata boastfully elegantly management come", "latest_version": 425795, "latest_minor_version": 741364, "status": "DISABLED", "origin": "CUSTOM", "owner": {"name": ""}, "created_at": "2024-12-20T01:31:39.364Z", "updated_at": "2025-12-04T02:59:37.124Z"}, "request_id": ""} @@ -12351,7 +12351,6 @@ generatedTests: platform-trigger-presets-get: "2026-08-21T02:33:03Z" platform-trigger-presets-input-values-list: "2026-08-21T02:33:03Z" platform-trigger-presets-events-search: "2026-08-21T02:33:03Z" -releaseNotes: "## Python SDK Changes:\n* `glean.chat.create()`: \n * `request.input.union(Array)[].role` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `glean.triggers.list_presets()`: **Added**\n* `glean.triggers.list_preset_input_values()`: **Added**\n* `glean.triggers.update()`: **Added**\n* `glean.triggers.delete()`: **Added**\n* `glean.triggers.search_events()`: **Added**\n* `glean.triggers.create()`: **Added**\n* `glean.triggers.get_preset()`: **Added**\n* `glean.triggers.get()`: **Added**\n* `glean.triggers.search_preset_events()`: **Added**\n* `glean.triggers.list()`: **Added**\n* `glean.client.chat.create()`: \n * `request.messages[].citations[].source_skill` **Added**\n * `response.messages[].citations[].source_skill` **Added**\n* `glean.client.chat.retrieve()`: `response.chat_result.chat.messages[].citations[].source_skill` **Added**\n* `glean.client.chat.create_stream()`: \n * `request.messages[].citations[].source_skill` **Added**\n* `glean.client.search.retrieve_feed()`: \n * `request.categories[]` **Changed**\n * `response.results[]` **Changed**\n" generatedFiles: - .devcontainer/README.md - .devcontainer/devcontainer.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 03fd977a..382692e0 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -34,7 +34,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true python: - version: 0.16.0 + version: 0.16.1 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index c9540561..38e89148 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,8 +2,8 @@ openapi: 3.0.0 info: version: "0.9.0" title: Glean API - x-source-commit-sha: ae20e37cc1d6786192c975f846fbe57527d94d7e - x-open-api-commit-sha: 68a8939fe1b80a3a659ea78c778a5ddfdcb8e999 + x-source-commit-sha: 53029bb32ea9b1d7870da58ad4546c6954833b85 + x-open-api-commit-sha: 4ed8f1ec3fa297e3e16e7f32489a482cc40cd86c description: | # Introduction 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. @@ -6747,6 +6747,8 @@ components: PlatformAgentsSearchRequest: type: object additionalProperties: false + example: + name: HR Policy Agent properties: name: type: string @@ -7070,6 +7072,12 @@ components: additionalProperties: false description: | Request to run an agent. A request MUST supply either `messages` (a non-empty conversation) or `input` (for input-form triggered agents). + example: + messages: + - role: USER + content: + - text: What is our parental leave policy? + type: text properties: input: type: object @@ -7186,6 +7194,8 @@ components: additionalProperties: false required: - input + example: + input: What is our parental leave policy? properties: input: description: | @@ -7586,6 +7596,9 @@ components: additionalProperties: false required: - source_urls + example: + source_urls: + - https://github.com/anthropics/skills/tree/main/skills/skill-creator properties: source_urls: type: array @@ -7678,6 +7691,8 @@ components: additionalProperties: false required: - source_url + example: + source_url: https://github.com/anthropics/skills properties: source_url: type: string @@ -7800,6 +7815,8 @@ components: additionalProperties: false required: - status + example: + status: ENABLED properties: status: $ref: "#/components/schemas/PlatformSkillUpdateStatus" diff --git a/.speakeasy/tests.arazzo.yaml b/.speakeasy/tests.arazzo.yaml index 17668422..fc6744c3 100644 --- a/.speakeasy/tests.arazzo.yaml +++ b/.speakeasy/tests.arazzo.yaml @@ -158787,7 +158787,9 @@ workflows: contentType: application/json payload: messages: - - content: [] + - content: + - text: What is our parental leave policy? + type: text role: USER stream: false successCriteria: @@ -159055,7 +159057,7 @@ workflows: requestBody: contentType: application/json payload: - input: + input: What is our parental leave policy? store: true stream: false successCriteria: @@ -159075,7 +159077,7 @@ workflows: contentType: application/json payload: source_urls: - - + - https://github.com/anthropics/skills/tree/main/skills/skill-creator successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -159092,7 +159094,7 @@ workflows: requestBody: contentType: application/json payload: - source_url: https://ugly-information.name/ + source_url: https://github.com/anthropics/skills stream: false successCriteria: - condition: $statusCode == 200 @@ -159114,7 +159116,7 @@ workflows: requestBody: contentType: application/json payload: - status: DISABLED + status: ENABLED successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 626778f7..75a146f5 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.795.1 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae - sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27 + sourceRevisionDigest: sha256:1d43dd06960c5d8d8cf58e52a4396604766d355251a35ba3c7da0ec27f11f090 + sourceBlobDigest: sha256:c48ecb8cf02826e9844b6acb2c98c00ecd23dd077ce4bcc1fbc579680cca31e9 tags: - latest Glean Client API: @@ -16,10 +16,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae - sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27 + sourceRevisionDigest: sha256:1d43dd06960c5d8d8cf58e52a4396604766d355251a35ba3c7da0ec27f11f090 + sourceBlobDigest: sha256:c48ecb8cf02826e9844b6acb2c98c00ecd23dd077ce4bcc1fbc579680cca31e9 codeSamplesNamespace: glean-api-specs-python-code-samples - codeSamplesRevisionDigest: sha256:985280ee4fe1f57740b53a8a893bbcd79361460bcc2ab8b2696bb0f81e6350f4 + codeSamplesRevisionDigest: sha256:cddffa0c7d0913703bc2263e2d063c6c0c45ec84715f99eca2e47b74e01186e5 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index d632e591..354611ec 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -828,4 +828,14 @@ Based on: ### Generated - [python v0.16.0] . ### Releases -- [PyPI v0.16.0] https://pypi.org/project/glean-api-client/0.16.0 - . \ No newline at end of file +- [PyPI v0.16.0] https://pypi.org/project/glean-api-client/0.16.0 - . + +## 2026-08-23 01:21:10 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.795.1 (2.932.9) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.16.1] . +### Releases +- [PyPI v0.16.1] https://pypi.org/project/glean-api-client/0.16.1 - . \ No newline at end of file diff --git a/docs/models/platformagentscreaterunrequest.md b/docs/models/platformagentscreaterunrequest.md index df931458..1e66f04a 100644 --- a/docs/models/platformagentscreaterunrequest.md +++ b/docs/models/platformagentscreaterunrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `agent_id` | *str* | :heavy_check_mark: | ID of the agent to run. | -| `platform_agent_run_create_request` | [models.PlatformAgentRunCreateRequest](../models/platformagentruncreaterequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `agent_id` | *str* | :heavy_check_mark: | ID of the agent to run. | | +| `platform_agent_run_create_request` | [models.PlatformAgentRunCreateRequest](../models/platformagentruncreaterequest.md) | :heavy_check_mark: | N/A | {
"messages": [
{
"role": "USER",
"content": [
{
"text": "What is our parental leave policy?",
"type": "text"
}
]
}
]
} | \ No newline at end of file diff --git a/docs/models/platformskillsupdaterequest.md b/docs/models/platformskillsupdaterequest.md index 3ea30e83..7bf2215d 100644 --- a/docs/models/platformskillsupdaterequest.md +++ b/docs/models/platformskillsupdaterequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | -| `platform_skill_update_request` | [models.PlatformSkillUpdateRequest](../models/platformskillupdaterequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | | +| `platform_skill_update_request` | [models.PlatformSkillUpdateRequest](../models/platformskillupdaterequest.md) | :heavy_check_mark: | N/A | {
"status": "ENABLED"
} | \ No newline at end of file diff --git a/docs/sdks/agents/README.md b/docs/sdks/agents/README.md index c3384d9d..f7fb5a04 100644 --- a/docs/sdks/agents/README.md +++ b/docs/sdks/agents/README.md @@ -159,7 +159,12 @@ with Glean( res = glean.agents.create_run(agent_id="", messages=[ { "role": models.PlatformMessageRole.USER, - "content": [], + "content": [ + { + "text": "What is our parental leave policy?", + "type": models.PlatformContentType.TEXT, + }, + ], }, ], stream=False) diff --git a/docs/sdks/chatsdk/README.md b/docs/sdks/chatsdk/README.md index fbb19c8f..f541f724 100644 --- a/docs/sdks/chatsdk/README.md +++ b/docs/sdks/chatsdk/README.md @@ -23,7 +23,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.chat.create(input="", stream=False, store=True) + res = glean.chat.create(input="What is our parental leave policy?", stream=False, store=True) # Handle response print(res) diff --git a/docs/sdks/skills/README.md b/docs/sdks/skills/README.md index 8cdfbc33..b89e4403 100644 --- a/docs/sdks/skills/README.md +++ b/docs/sdks/skills/README.md @@ -127,7 +127,7 @@ with Glean( ) as glean: res = glean.skills.import_(source_urls=[ - "", + "https://github.com/anthropics/skills/tree/main/skills/skill-creator", ]) # Handle response @@ -217,7 +217,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.skills.preview_source(source_url="https://ugly-information.name/", stream=False) + res = glean.skills.preview_source(source_url="https://github.com/anthropics/skills", stream=False) # Handle response print(res) @@ -261,7 +261,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.skills.update(skill_id="", status=models.PlatformSkillUpdateStatus.DISABLED) + res = glean.skills.update(skill_id="", status=models.PlatformSkillUpdateStatus.ENABLED) # Handle response print(res) diff --git a/pyproject.toml b/pyproject.toml index d391b6db..3e07b290 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "glean-api-client" -version = "0.16.0" +version = "0.16.1" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Glean Technologies, Inc." },] readme = "README-PYPI.md" diff --git a/src/glean/api_client/_version.py b/src/glean/api_client/_version.py index 6a612365..b18d2de1 100644 --- a/src/glean/api_client/_version.py +++ b/src/glean/api_client/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "glean-api-client" -__version__: str = "0.16.0" +__version__: str = "0.16.1" __openapi_doc_version__: str = "0.9.0" __gen_version__: str = "2.932.9" -__user_agent__: str = "speakeasy-sdk/python 0.16.0 2.932.9 0.9.0 glean-api-client" +__user_agent__: str = "speakeasy-sdk/python 0.16.1 2.932.9 0.9.0 glean-api-client" try: if __package__ is not None: diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go b/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go index 469bd6e6..75fb8eb7 100644 --- a/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go +++ b/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go @@ -56,14 +56,14 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ operations.ResponseBody2{ Collection: &components.Collection{ Name: "", - Description: "whole busily jive hawk gee basic minus hence", + Description: "motionless whenever paintwork import over cuckoo", AddedRoles: []components.UserRoleSpecification{ components.UserRoleSpecification{ Person: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", }, - Role: components.UserRoleAnswerModerator, + Role: components.UserRoleOwner, }, }, RemovedRoles: []components.UserRoleSpecification{ @@ -90,7 +90,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 158969, + ID: 363711, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -101,7 +101,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, Items: []components.CollectionItem{ components.CollectionItem{ - CollectionID: 110375, + CollectionID: 570197, CreatedBy: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -278,13 +278,13 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ Name: "George Clooney", ObfuscatedID: "abc123", }, - Role: components.UserRoleEditor, + Role: components.UserRoleAnswerModerator, }, }, }, Collection: &components.Collection{ Name: "", - Description: "wedge colorfully orientate rally", + Description: "athwart skateboard newsstand farm bourgeoisie ah how elliptical aha well-to-do", AudienceFilters: []components.FacetFilter{ components.FacetFilter{ FieldName: types.String("type"), @@ -300,7 +300,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 131797, + ID: 643990, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -312,7 +312,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ Children: []components.Collection{ components.Collection{ Name: "", - Description: "outside yippee sidetrack mature regularly mouser inject worth", + Description: "woot purse salty even as advanced", AudienceFilters: []components.FacetFilter{ components.FacetFilter{ FieldName: types.String("type"), @@ -328,7 +328,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 149448, + ID: 359978, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -340,7 +340,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ItemType: components.CollectionItemItemTypeCollection, + ItemType: components.CollectionItemItemTypeURL, }, }, }, diff --git a/tests/test_agents.py b/tests/test_agents.py index 8b75a0e0..39a3f77b 100644 --- a/tests/test_agents.py +++ b/tests/test_agents.py @@ -133,7 +133,12 @@ def test_agents_platform_agents_create_run(): messages=[ { "role": models.PlatformMessageRole.USER, - "content": [], + "content": [ + { + "text": "What is our parental leave policy?", + "type": models.PlatformContentType.TEXT, + }, + ], }, ], stream=False, diff --git a/tests/test_chat_sdk.py b/tests/test_chat_sdk.py index 41b3a54c..0ea26010 100644 --- a/tests/test_chat_sdk.py +++ b/tests/test_chat_sdk.py @@ -15,5 +15,7 @@ def test_chat_sdk_platform_chat_create(): ) as glean: assert glean is not None - res = glean.chat.create(input="", stream=False, store=True) + res = glean.chat.create( + input="What is our parental leave policy?", stream=False, store=True + ) assert res is not None diff --git a/tests/test_skills.py b/tests/test_skills.py index 98d7f69d..63587d5a 100644 --- a/tests/test_skills.py +++ b/tests/test_skills.py @@ -159,7 +159,7 @@ def test_skills_platform_skills_import(): res = glean.skills.import_( source_urls=[ - "", + "https://github.com/anthropics/skills/tree/main/skills/skill-creator", ] ) assert res is not None @@ -176,7 +176,7 @@ def test_skills_platform_skills_preview_source(): assert glean is not None res = glean.skills.preview_source( - source_url="https://ugly-information.name/", stream=False + source_url="https://github.com/anthropics/skills", stream=False ) assert res is not None @@ -192,7 +192,7 @@ def test_skills_platform_skills_update(): assert glean is not None res = glean.skills.update( - skill_id="", status=models.PlatformSkillUpdateStatus.DISABLED + skill_id="", status=models.PlatformSkillUpdateStatus.ENABLED ) assert res is not None diff --git a/tests/test_summarize.py b/tests/test_summarize.py index 2b5d1f38..f9c494d5 100644 --- a/tests/test_summarize.py +++ b/tests/test_summarize.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean.api_client import Glean, models +from glean.api_client import Glean import os from tests.test_client import create_test_http_client @@ -18,8 +18,7 @@ def test_summarize_summarize(): res = glean.client.documents.summarize( document_specs=[ { - "ugc_type": models.DocumentSpecUgcType2.ARTIFACTS, - "ugc_id": "", + "id": "", }, { "id": "",