diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index fb978c5e..e5532407 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: 7e87ed5a374c0e4c90b16c9cca228ad5 docVersion: 0.9.0 - speakeasyVersion: 1.795.1 + speakeasyVersion: 1.795.3 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: 398d3bfe-2863-4fb0-b521-f58c20a815f4 + pristine_commit_hash: 1cbebd996c1c7ab2ed6b3db52e92c51c1fe0229c + pristine_tree_hash: 281c22f2545c15f75f91068c8626f72e4860f81b features: python: acceptHeaders: 3.0.0 @@ -513,8 +513,8 @@ trackedFiles: pristine_git_object: 66737ea5adad94131631be69fbb4a398a43fd94b docs/models/chatmessagefragment.md: id: 9f4738df6b1b - last_write_checksum: sha1:7f004324dfbdb6182e010a2e0121d9ad026f9c5c - pristine_git_object: 1a6f0ed225844450fb6ea131033c438d5eb60eb3 + last_write_checksum: sha1:fcca5d53ea3bffabb004a2273d0bc3d97d6f0c08 + pristine_git_object: 9fbc47f847fc288e59c2bd50629097fe3a378de4 docs/models/chatmetadata.md: id: 04d1111a98ac last_write_checksum: sha1:3e94025fd78eea7b18064ba4b5741bec7286e912 @@ -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 @@ -3117,16 +3117,16 @@ trackedFiles: pristine_git_object: 180a4193ec93c68e238c6618ecd50a4f7bd67e84 docs/models/servertoolrequestrequesttype.md: id: 06e29cd74eb4 - last_write_checksum: sha1:29be142660f33ad5ca2399f1da87f21c5757c503 - pristine_git_object: 7a1e67214279e73d186e24e24900a1834a96a416 + last_write_checksum: sha1:fac9094b720e430195d4cd22a93be49db884c522 + pristine_git_object: a35c91699c5322569374d81f62ffed03b7e37577 docs/models/servertoolresponse.md: id: 533b7f497998 - last_write_checksum: sha1:991ff0a35963108d59aad7e0bad9c15b0ec05af5 - pristine_git_object: a29914c141c0dce838c27ab19deb3e13f5369807 + last_write_checksum: sha1:5ccff00d517c1b648a9c7033db5f08b1b054380c + pristine_git_object: d27cfb3a2dae42ed597add533e00d04b388ba907 docs/models/servertoolresponserequesttype.md: id: 55248e6ccbdb - last_write_checksum: sha1:7e5ddff2060ef3f7530874736499225d1cebaedc - pristine_git_object: ad53ed32a703ab9959503cdb5f28410a778a921d + last_write_checksum: sha1:1d6691fdb715c735d272e313f9c2bbd4a491ce55 + pristine_git_object: 537662b15a533b8fa73430270d758363c3a2b878 docs/models/sessioninfo.md: id: 4f35f0cd75e6 last_write_checksum: sha1:54947b191223cc0100d33978470ef085255e0b45 @@ -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 @@ -4257,8 +4257,8 @@ trackedFiles: pristine_git_object: 15fd378692330c508ca2b7c0c8df8070e7c688a3 src/glean/api_client/models/chatmessagefragment.py: id: 86344b2c1c3d - last_write_checksum: sha1:0a9e72b24f34fce355b038bfe71685bc2373fd75 - pristine_git_object: a8d3093ba7d9f481f265f0a94a407bb6b0bb6c6d + last_write_checksum: sha1:dbeb483ab92b411fc03a38b42769292ded7a0201 + pristine_git_object: 48632a889a6d4c056d7041337c0cf82c9317d933 src/glean/api_client/models/chatmetadata.py: id: 0469e4eebd69 last_write_checksum: sha1:6665183f9ae42b7258ed3b47d8bedbad19c5c7f7 @@ -6369,12 +6369,12 @@ trackedFiles: pristine_git_object: 61ec44733bdc5ae0deb7b9c710f42b67246990d8 src/glean/api_client/models/servertoolrequest.py: id: 68e8f4700c18 - last_write_checksum: sha1:b5e17e1e4bfaa80ea7d67de11eeb9a330ef2134a - pristine_git_object: 2e1f8e5351447ffec48f4f640f0c4fe0637f58fb + last_write_checksum: sha1:fd353a890565dffa872f1ed76e8276c713c72674 + pristine_git_object: c88abbe5702b9dfa72709ac74658c54c726f7753 src/glean/api_client/models/servertoolresponse.py: id: 48123cc8f7a6 - last_write_checksum: sha1:b4df3fbbf54189a5896bd50a4001050d3263d236 - pristine_git_object: 90ec004987f466c63a193d05eade090fa4f90dc1 + last_write_checksum: sha1:20105bc9f50d17cf32c0ed6e2985a06acd7c7e5c + pristine_git_object: 8af507a2405c4555021fba915084ca3c8d170d6c src/glean/api_client/models/sessioninfo.py: id: 4127a11bdfbc last_write_checksum: sha1:109e98c476f5bf747e35b7051e2702961c518167 @@ -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 @@ -7809,8 +7809,8 @@ trackedFiles: pristine_git_object: f06157bccfa3a63727745952da0cfa5d323c3d23 tests/mockserver/internal/sdk/models/components/chatmessagefragment.go: id: 8d14e05d6934 - last_write_checksum: sha1:d41f5568b67d2f41291d7fc880ef28fad6d59a72 - pristine_git_object: 632727b0852cefdc9b6ce1267faeddd4b164a1d0 + last_write_checksum: sha1:76403862fa202942fb3aece99946850c0d1f6f21 + pristine_git_object: 99f8ed7d37dc7334d81d332a7c25098d41b14906 tests/mockserver/internal/sdk/models/components/chatmetadata.go: id: 53881e1500d3 last_write_checksum: sha1:2069155b9191362259f87a10f5eb7426b3bad1b8 @@ -9517,12 +9517,12 @@ trackedFiles: pristine_git_object: 207653771e5bb2ae5982853962b6318d8c83229f tests/mockserver/internal/sdk/models/components/servertoolrequest.go: id: 574fa6f36078 - last_write_checksum: sha1:6690ff38d976f82a1c585d4c9ab3cebfd1ad2828 - pristine_git_object: 3bf8c6b39892210207a22b82d84673f88b5659c1 + last_write_checksum: sha1:5797ecad57b0bd287b321202bb3c8c6c7cb84c5f + pristine_git_object: c4437ec5a8d0e2853f75f41a25e9d9536c120c8e tests/mockserver/internal/sdk/models/components/servertoolresponse.go: id: 621e6633f5d6 - last_write_checksum: sha1:4b508f1f965688a2066e0c4f61c03a9d736516e6 - pristine_git_object: f4b84c3b0ec23c99703c36f92065a4071d389743 + last_write_checksum: sha1:692af6a4cbc61ff2f03245685fc6202e4f253f5b + pristine_git_object: a518da25fe1c2a61640f0b1c2e9de510f4a705d5 tests/mockserver/internal/sdk/models/components/sessioninfo.go: id: 23183e4b8fb8 last_write_checksum: sha1:d0a7c3cb679745701743e6ec68c15cf72b3e0a2f @@ -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 @@ -10745,8 +10745,8 @@ trackedFiles: pristine_git_object: 6cc8aeec3c52329d389081db0a27f10f53f214b9 tests/test_messages.py: id: be23089b1f8b - last_write_checksum: sha1:a91c985cd1d11560059dc448b10e0c7b75ed60e5 - pristine_git_object: dfdc18641f0d6c38d84b4603ad2da71f75f2e13c + last_write_checksum: sha1:2404e23964ef6a1f5ddc900402b34e597d2d9617 + pristine_git_object: 132005ec7d1e35f805b6a8c28e07e043bce22f0a tests/test_people.py: id: 37c243940039 last_write_checksum: sha1:2b78b1c5ea17f267895188b1b48ff9fe2bc19f17 @@ -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:a327189497f3a2b98c2e277757da4e4ba22cf768 + pristine_git_object: 072b3207b89ff92c8a22b828c32ce23e2ae0ba88 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,7 @@ 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" +releaseNotes: "## Python SDK Changes:\n* `glean.client.chat.create()`: \n * `request.messages[].fragments[]` **Changed**\n * `response.messages[].fragments[]` **Changed**\n* `glean.client.chat.retrieve()`: `response.chat_result.chat.messages[].fragments[]` **Changed**\n* `glean.client.chat.create_stream()`: \n * `request.messages[].fragments[]` **Changed**\n* `glean.client.agents.run_stream()`: `error.authentication_suggestions[].request_type.enum(sandbox_egress)` **Added**\n* `glean.client.agents.run()`: `error.authentication_suggestions[].request_type.enum(sandbox_egress)` **Added**\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..2e919506 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: 57c5ed97e505b6f223d7a45ad5a2a341e256c949 + x-open-api-commit-sha: 9ada039d29c22a526e3f2aedf1e2592fa53f9662 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" @@ -12896,15 +12913,18 @@ components: - EXECUTION - AUTHENTICATION_SUGGESTION - VOTE_SUGGESTION + - SANDBOX_EGRESS description: The type of request made to the user. x-enumDescriptions: EXECUTION: Request for approving execution of the tool. AUTHENTICATION_SUGGESTION: Request for authenticating to a tool, provided as a (tool) suggestion. VOTE_SUGGESTION: Suggestion to vote for enabling an available-but-not-enabled tool. + SANDBOX_EGRESS: Request to approve an outbound/egress call from the sandbox. x-speakeasy-enum-descriptions: EXECUTION: Request for approving execution of the tool. AUTHENTICATION_SUGGESTION: Request for authenticating to a tool, provided as a (tool) suggestion. VOTE_SUGGESTION: Suggestion to vote for enabling an available-but-not-enabled tool. + SANDBOX_EGRESS: Request to approve an outbound/egress call from the sandbox. requestId: type: string description: Unique identifier for this request. @@ -13004,6 +13024,9 @@ components: For VOTE_SUGGESTION requests: - voted: whether the user voted for this tool + + For SANDBOX_EGRESS requests: + - isGranted: whether the sandbox egress call is approved x-visibility: Preview x-glean-experimental: id: 3eae3ee7-2c06-4027-be14-98260a3ce608 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..2565499c 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.795.1 +speakeasyVersion: 1.795.3 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae - sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27 + sourceRevisionDigest: sha256:e01ddc11a28e6d9d70b5fbdca734adda6afd78d0f036fdacd1e45bc1018c71e3 + sourceBlobDigest: sha256:dfcec6e88b95c1857e5d16505ee38ec177a63a994df6b9f9658f360cc93b9ba6 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:e01ddc11a28e6d9d70b5fbdca734adda6afd78d0f036fdacd1e45bc1018c71e3 + sourceBlobDigest: sha256:dfcec6e88b95c1857e5d16505ee38ec177a63a994df6b9f9658f360cc93b9ba6 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..f4f23203 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-25 05:33:34 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.795.3 (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/chatmessagefragment.md b/docs/models/chatmessagefragment.md index 1a6f0ed2..9fbc47f8 100644 --- a/docs/models/chatmessagefragment.md +++ b/docs/models/chatmessagefragment.md @@ -5,14 +5,14 @@ Represents a part of a ChatMessage that originates from a single action/tool. It ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `structured_results` | List[[models.StructuredResult](../models/structuredresult.md)] | :heavy_minus_sign: | An array of entities in the work graph retrieved via a data request. | | -| `tracking_token` | *Optional[str]* | :heavy_minus_sign: | An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. | | -| `text` | *Optional[str]* | :heavy_minus_sign: | N/A | | -| `query_suggestion` | [Optional[models.QuerySuggestion]](../models/querysuggestion.md) | :heavy_minus_sign: | N/A | {
"query": "app:github type:pull author:mortimer",
"label": "Mortimer's PRs",
"datasource": "github"
} | -| `file` | [Optional[models.ChatFile]](../models/chatfile.md) | :heavy_minus_sign: | Structure for file uploaded by a user for Chat. | | -| `action` | [Optional[models.ToolInfo]](../models/toolinfo.md) | :heavy_minus_sign: | N/A | | -| `citation` | [Optional[models.ChatMessageCitation]](../models/chatmessagecitation.md) | :heavy_minus_sign: | Information about the source for a ChatMessage. | | -| `server_tool_request` | [Optional[models.ServerToolRequest]](../models/servertoolrequest.md) | :heavy_minus_sign: | N/A | | -| `server_tool_response` | [Optional[models.ServerToolResponse]](../models/servertoolresponse.md) | :heavy_minus_sign: | Response to a server tool request. The applicable fields depend on requestType:

For EXECUTION requests:
- isGranted: whether tool execution is approved
- reason: optional explanation

For AUTHENTICATION_SUGGESTION requests:
- isGranted: whether auth completed successfully (true=connected, false=skipped)
- authContext: contains serverId or actionPackId for identifying the authenticated entity
- reason: optional explanation for skip

For VOTE_SUGGESTION requests:
- voted: whether the user voted for this tool
| | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `structured_results` | List[[models.StructuredResult](../models/structuredresult.md)] | :heavy_minus_sign: | An array of entities in the work graph retrieved via a data request. | | +| `tracking_token` | *Optional[str]* | :heavy_minus_sign: | An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. | | +| `text` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `query_suggestion` | [Optional[models.QuerySuggestion]](../models/querysuggestion.md) | :heavy_minus_sign: | N/A | {
"query": "app:github type:pull author:mortimer",
"label": "Mortimer's PRs",
"datasource": "github"
} | +| `file` | [Optional[models.ChatFile]](../models/chatfile.md) | :heavy_minus_sign: | Structure for file uploaded by a user for Chat. | | +| `action` | [Optional[models.ToolInfo]](../models/toolinfo.md) | :heavy_minus_sign: | N/A | | +| `citation` | [Optional[models.ChatMessageCitation]](../models/chatmessagecitation.md) | :heavy_minus_sign: | Information about the source for a ChatMessage. | | +| `server_tool_request` | [Optional[models.ServerToolRequest]](../models/servertoolrequest.md) | :heavy_minus_sign: | N/A | | +| `server_tool_response` | [Optional[models.ServerToolResponse]](../models/servertoolresponse.md) | :heavy_minus_sign: | Response to a server tool request. The applicable fields depend on requestType:

For EXECUTION requests:
- isGranted: whether tool execution is approved
- reason: optional explanation

For AUTHENTICATION_SUGGESTION requests:
- isGranted: whether auth completed successfully (true=connected, false=skipped)
- authContext: contains serverId or actionPackId for identifying the authenticated entity
- reason: optional explanation for skip

For VOTE_SUGGESTION requests:
- voted: whether the user voted for this tool

For SANDBOX_EGRESS requests:
- isGranted: whether the sandbox egress call is approved
| | \ 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/models/servertoolrequestrequesttype.md b/docs/models/servertoolrequestrequesttype.md index 7a1e6721..a35c9169 100644 --- a/docs/models/servertoolrequestrequesttype.md +++ b/docs/models/servertoolrequestrequesttype.md @@ -19,4 +19,5 @@ value = ServerToolRequestRequestType.EXECUTION | --------------------------- | --------------------------- | | `EXECUTION` | EXECUTION | | `AUTHENTICATION_SUGGESTION` | AUTHENTICATION_SUGGESTION | -| `VOTE_SUGGESTION` | VOTE_SUGGESTION | \ No newline at end of file +| `VOTE_SUGGESTION` | VOTE_SUGGESTION | +| `SANDBOX_EGRESS` | SANDBOX_EGRESS | \ No newline at end of file diff --git a/docs/models/servertoolresponse.md b/docs/models/servertoolresponse.md index a29914c1..d27cfb3a 100644 --- a/docs/models/servertoolresponse.md +++ b/docs/models/servertoolresponse.md @@ -14,6 +14,9 @@ For AUTHENTICATION_SUGGESTION requests: For VOTE_SUGGESTION requests: - voted: whether the user voted for this tool +For SANDBOX_EGRESS requests: +- isGranted: whether the sandbox egress call is approved + ## Fields diff --git a/docs/models/servertoolresponserequesttype.md b/docs/models/servertoolresponserequesttype.md index ad53ed32..537662b1 100644 --- a/docs/models/servertoolresponserequesttype.md +++ b/docs/models/servertoolresponserequesttype.md @@ -19,4 +19,5 @@ value = ServerToolResponseRequestType.EXECUTION | --------------------------- | --------------------------- | | `EXECUTION` | EXECUTION | | `AUTHENTICATION_SUGGESTION` | AUTHENTICATION_SUGGESTION | -| `VOTE_SUGGESTION` | VOTE_SUGGESTION | \ No newline at end of file +| `VOTE_SUGGESTION` | VOTE_SUGGESTION | +| `SANDBOX_EGRESS` | SANDBOX_EGRESS | \ 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/src/glean/api_client/models/chatmessagefragment.py b/src/glean/api_client/models/chatmessagefragment.py index a8d3093b..48632a88 100644 --- a/src/glean/api_client/models/chatmessagefragment.py +++ b/src/glean/api_client/models/chatmessagefragment.py @@ -45,6 +45,9 @@ class ChatMessageFragmentTypedDict(TypedDict): For VOTE_SUGGESTION requests: - voted: whether the user voted for this tool + For SANDBOX_EGRESS requests: + - isGranted: whether the sandbox egress call is approved + """ @@ -96,6 +99,9 @@ class ChatMessageFragment(BaseModel): For VOTE_SUGGESTION requests: - voted: whether the user voted for this tool + For SANDBOX_EGRESS requests: + - isGranted: whether the sandbox egress call is approved + """ @model_serializer(mode="wrap") diff --git a/src/glean/api_client/models/servertoolrequest.py b/src/glean/api_client/models/servertoolrequest.py index 2e1f8e53..c88abbe5 100644 --- a/src/glean/api_client/models/servertoolrequest.py +++ b/src/glean/api_client/models/servertoolrequest.py @@ -20,6 +20,8 @@ class ServerToolRequestRequestType(str, Enum, metaclass=utils.OpenEnumMeta): AUTHENTICATION_SUGGESTION = "AUTHENTICATION_SUGGESTION" # Suggestion to vote for enabling an available-but-not-enabled tool. VOTE_SUGGESTION = "VOTE_SUGGESTION" + # Request to approve an outbound/egress call from the sandbox. + SANDBOX_EGRESS = "SANDBOX_EGRESS" class ServerToolRequestTypedDict(TypedDict): diff --git a/src/glean/api_client/models/servertoolresponse.py b/src/glean/api_client/models/servertoolresponse.py index 90ec0049..8af507a2 100644 --- a/src/glean/api_client/models/servertoolresponse.py +++ b/src/glean/api_client/models/servertoolresponse.py @@ -20,6 +20,8 @@ class ServerToolResponseRequestType(str, Enum, metaclass=utils.OpenEnumMeta): AUTHENTICATION_SUGGESTION = "AUTHENTICATION_SUGGESTION" # Suggestion to vote for enabling an available-but-not-enabled tool. VOTE_SUGGESTION = "VOTE_SUGGESTION" + # Request to approve an outbound/egress call from the sandbox. + SANDBOX_EGRESS = "SANDBOX_EGRESS" class GrantScope(str, Enum, metaclass=utils.OpenEnumMeta): @@ -48,6 +50,9 @@ class ServerToolResponseTypedDict(TypedDict): For VOTE_SUGGESTION requests: - voted: whether the user voted for this tool + For SANDBOX_EGRESS requests: + - isGranted: whether the sandbox egress call is approved + """ request_type: ServerToolResponseRequestType @@ -81,6 +86,9 @@ class ServerToolResponse(BaseModel): For VOTE_SUGGESTION requests: - voted: whether the user voted for this tool + For SANDBOX_EGRESS requests: + - isGranted: whether the sandbox egress call is approved + """ request_type: Annotated[ 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/mockserver/internal/sdk/models/components/chatmessagefragment.go b/tests/mockserver/internal/sdk/models/components/chatmessagefragment.go index 632727b0..99f8ed7d 100644 --- a/tests/mockserver/internal/sdk/models/components/chatmessagefragment.go +++ b/tests/mockserver/internal/sdk/models/components/chatmessagefragment.go @@ -30,6 +30,9 @@ type ChatMessageFragment struct { // For VOTE_SUGGESTION requests: // - voted: whether the user voted for this tool // + // For SANDBOX_EGRESS requests: + // - isGranted: whether the sandbox egress call is approved + // ServerToolResponse *ServerToolResponse `json:"serverToolResponse,omitempty"` } diff --git a/tests/mockserver/internal/sdk/models/components/servertoolrequest.go b/tests/mockserver/internal/sdk/models/components/servertoolrequest.go index 3bf8c6b3..c4437ec5 100644 --- a/tests/mockserver/internal/sdk/models/components/servertoolrequest.go +++ b/tests/mockserver/internal/sdk/models/components/servertoolrequest.go @@ -14,6 +14,7 @@ const ( ServerToolRequestRequestTypeExecution ServerToolRequestRequestType = "EXECUTION" ServerToolRequestRequestTypeAuthenticationSuggestion ServerToolRequestRequestType = "AUTHENTICATION_SUGGESTION" ServerToolRequestRequestTypeVoteSuggestion ServerToolRequestRequestType = "VOTE_SUGGESTION" + ServerToolRequestRequestTypeSandboxEgress ServerToolRequestRequestType = "SANDBOX_EGRESS" ) func (e ServerToolRequestRequestType) ToPointer() *ServerToolRequestRequestType { @@ -30,6 +31,8 @@ func (e *ServerToolRequestRequestType) UnmarshalJSON(data []byte) error { case "AUTHENTICATION_SUGGESTION": fallthrough case "VOTE_SUGGESTION": + fallthrough + case "SANDBOX_EGRESS": *e = ServerToolRequestRequestType(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/servertoolresponse.go b/tests/mockserver/internal/sdk/models/components/servertoolresponse.go index f4b84c3b..a518da25 100644 --- a/tests/mockserver/internal/sdk/models/components/servertoolresponse.go +++ b/tests/mockserver/internal/sdk/models/components/servertoolresponse.go @@ -15,6 +15,7 @@ const ( ServerToolResponseRequestTypeExecution ServerToolResponseRequestType = "EXECUTION" ServerToolResponseRequestTypeAuthenticationSuggestion ServerToolResponseRequestType = "AUTHENTICATION_SUGGESTION" ServerToolResponseRequestTypeVoteSuggestion ServerToolResponseRequestType = "VOTE_SUGGESTION" + ServerToolResponseRequestTypeSandboxEgress ServerToolResponseRequestType = "SANDBOX_EGRESS" ) func (e ServerToolResponseRequestType) ToPointer() *ServerToolResponseRequestType { @@ -31,6 +32,8 @@ func (e *ServerToolResponseRequestType) UnmarshalJSON(data []byte) error { case "AUTHENTICATION_SUGGESTION": fallthrough case "VOTE_SUGGESTION": + fallthrough + case "SANDBOX_EGRESS": *e = ServerToolResponseRequestType(v) return nil default: @@ -81,6 +84,9 @@ func (e *GrantScope) UnmarshalJSON(data []byte) error { // // For VOTE_SUGGESTION requests: // - voted: whether the user voted for this tool +// +// For SANDBOX_EGRESS requests: +// - isGranted: whether the sandbox egress call is approved type ServerToolResponse struct { // The type of request made to the user. RequestType ServerToolResponseRequestType `json:"requestType"` 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_messages.py b/tests/test_messages.py index dfdc1864..132005ec 100644 --- a/tests/test_messages.py +++ b/tests/test_messages.py @@ -18,7 +18,7 @@ def test_messages_messages(): res = glean.client.messages.retrieve( id_type=models.IDType.CONVERSATION_ID, id="", - datasource=models.Datasource.SLACKENTGRID, + datasource=models.Datasource.FACEBOOKWORKPLACE, timestamp_millis=558834, ) 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..072b3207 100644 --- a/tests/test_summarize.py +++ b/tests/test_summarize.py @@ -18,11 +18,11 @@ def test_summarize_summarize(): res = glean.client.documents.summarize( document_specs=[ { - "ugc_type": models.DocumentSpecUgcType2.ARTIFACTS, - "ugc_id": "", + "id": "", }, { - "id": "", + "ugc_type": models.DocumentSpecUgcType2.SHORTCUTS, + "ugc_id": "", }, ] )