From 8cf1b3a5226e87f7ca46c9098962a6f15206ae83 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 19 Nov 2026 10:42:20 +0000 Subject: [PATCH 1/2] ## Go SDK Changes: * `Glean.Agents.Search()`: `response.Agents[]` **Changed** * `Glean.Agents.Get()`: `response.Agent` **Changed** * `Glean.Admin.Agents.List()`: `response.Results[]` **Changed** --- .speakeasy/gen.lock | 378 +++++- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 1152 +++++++++++++++-- .speakeasy/tests.arazzo.yaml | 2 +- .speakeasy/workflow.lock | 10 +- RELEASES.md | 12 +- docs/models/components/agentconfig.md | 2 +- docs/models/components/agentconfigmode.md | 24 + docs/models/components/content.md | 10 + docs/models/components/customisationdata.md | 10 + docs/models/components/direction.md | 21 - .../components/insightsoverviewresponse.md | 2 +- docs/models/components/messagesrequest.md | 2 +- .../components/messagesrequestdirection.md | 21 + docs/models/components/mode.md | 24 - docs/models/components/platformagent.md | 31 +- .../components/platformagentchannels.md | 10 + .../components/platformagentcontenttrigger.md | 14 + .../platformagentcontenttriggerfilter.md | 12 + ...atformagentcontenttriggerfilteroperator.md | 26 + .../components/platformagentdependency.md | 11 + .../components/platformagentdependencytype.md | 24 + .../components/platformagentgetresponse.md | 2 +- .../platformagentgleansearchconfig.md | 13 + .../components/platformagentinputfield.md | 16 + .../platformagentinputfieldoption.md | 10 + .../components/platformagentinputfieldtype.md | 26 + .../components/platformagentllmmodel.md | 12 + .../components/platformagentllmmodelmode.md | 24 + docs/models/components/platformagentprompt.md | 11 + .../components/platformagentschedule.md | 12 + .../components/platformagentselectedtool.md | 10 + .../platformagentservicecredential.md | 10 + docs/models/components/platformagentskill.md | 13 + .../components/platformagentslackchannel.md | 13 + .../platformagentslackchannelmapping.md | 11 + .../models/components/platformagenttoolset.md | 12 + .../models/components/platformagenttrigger.md | 14 + .../components/platformagenttriggertype.md | 25 + .../platformskillsourcepreviewfile.md | 2 + docs/models/components/platformsubagent.md | 20 + glean.go | 6 +- models/components/agentconfig.go | 20 +- models/components/insightsoverviewresponse.go | 2 +- models/components/messagesrequest.go | 20 +- models/components/platformagent.go | 172 ++- models/components/platformagentchannels.go | 16 + .../components/platformagentcontenttrigger.go | 54 + .../platformagentcontenttriggerfilter.go | 34 + ...atformagentcontenttriggerfilteroperator.go | 32 + models/components/platformagentdependency.go | 51 + models/components/platformagentgetresponse.go | 1 + .../platformagentgleansearchconfig.go | 37 + models/components/platformagentinputfield.go | 91 ++ .../platformagentinputfieldoption.go | 16 + models/components/platformagentllmmodel.go | 60 + models/components/platformagentprompt.go | 26 + models/components/platformagentschedule.go | 51 + .../components/platformagentselectedtool.go | 16 + .../platformagentservicecredential.go | 16 + models/components/platformagentskill.go | 34 + .../components/platformagentslackchannel.go | 43 + .../platformagentslackchannelmapping.go | 25 + models/components/platformagenttoolset.go | 48 + models/components/platformagenttrigger.go | 93 ++ .../platformskillsourcepreviewfile.go | 1 + models/components/platformsubagent.go | 100 ++ tests/messages_test.go | 2 +- .../handler/pathgetapiagentsagentid.go | 7 +- .../handler/pathpostrestapiv1getchat.go | 6 +- .../sdk/models/components/agentconfig.go | 20 +- .../components/insightsoverviewresponse.go | 2 +- .../sdk/models/components/messagesrequest.go | 20 +- .../sdk/models/components/platformagent.go | 172 ++- .../components/platformagentchannels.go | 16 + .../components/platformagentcontenttrigger.go | 54 + .../platformagentcontenttriggerfilter.go | 34 + ...atformagentcontenttriggerfilteroperator.go | 41 + .../components/platformagentdependency.go | 58 + .../components/platformagentgetresponse.go | 1 + .../platformagentgleansearchconfig.go | 37 + .../components/platformagentinputfield.go | 100 ++ .../platformagentinputfieldoption.go | 16 + .../components/platformagentllmmodel.go | 67 + .../models/components/platformagentprompt.go | 26 + .../components/platformagentschedule.go | 51 + .../components/platformagentselectedtool.go | 16 + .../platformagentservicecredential.go | 16 + .../models/components/platformagentskill.go | 34 + .../components/platformagentslackchannel.go | 43 + .../platformagentslackchannelmapping.go | 25 + .../models/components/platformagenttoolset.go | 48 + .../models/components/platformagenttrigger.go | 101 ++ .../platformskillsourcepreviewfile.go | 1 + .../sdk/models/components/platformsubagent.go | 100 ++ tests/summarize_test.go | 10 +- 96 files changed, 3966 insertions(+), 279 deletions(-) create mode 100644 docs/models/components/agentconfigmode.md create mode 100644 docs/models/components/content.md create mode 100644 docs/models/components/customisationdata.md delete mode 100644 docs/models/components/direction.md create mode 100644 docs/models/components/messagesrequestdirection.md delete mode 100644 docs/models/components/mode.md create mode 100644 docs/models/components/platformagentchannels.md create mode 100644 docs/models/components/platformagentcontenttrigger.md create mode 100644 docs/models/components/platformagentcontenttriggerfilter.md create mode 100644 docs/models/components/platformagentcontenttriggerfilteroperator.md create mode 100644 docs/models/components/platformagentdependency.md create mode 100644 docs/models/components/platformagentdependencytype.md create mode 100644 docs/models/components/platformagentgleansearchconfig.md create mode 100644 docs/models/components/platformagentinputfield.md create mode 100644 docs/models/components/platformagentinputfieldoption.md create mode 100644 docs/models/components/platformagentinputfieldtype.md create mode 100644 docs/models/components/platformagentllmmodel.md create mode 100644 docs/models/components/platformagentllmmodelmode.md create mode 100644 docs/models/components/platformagentprompt.md create mode 100644 docs/models/components/platformagentschedule.md create mode 100644 docs/models/components/platformagentselectedtool.md create mode 100644 docs/models/components/platformagentservicecredential.md create mode 100644 docs/models/components/platformagentskill.md create mode 100644 docs/models/components/platformagentslackchannel.md create mode 100644 docs/models/components/platformagentslackchannelmapping.md create mode 100644 docs/models/components/platformagenttoolset.md create mode 100644 docs/models/components/platformagenttrigger.md create mode 100644 docs/models/components/platformagenttriggertype.md create mode 100644 docs/models/components/platformsubagent.md create mode 100644 models/components/platformagentchannels.go create mode 100644 models/components/platformagentcontenttrigger.go create mode 100644 models/components/platformagentcontenttriggerfilter.go create mode 100644 models/components/platformagentcontenttriggerfilteroperator.go create mode 100644 models/components/platformagentdependency.go create mode 100644 models/components/platformagentgleansearchconfig.go create mode 100644 models/components/platformagentinputfield.go create mode 100644 models/components/platformagentinputfieldoption.go create mode 100644 models/components/platformagentllmmodel.go create mode 100644 models/components/platformagentprompt.go create mode 100644 models/components/platformagentschedule.go create mode 100644 models/components/platformagentselectedtool.go create mode 100644 models/components/platformagentservicecredential.go create mode 100644 models/components/platformagentskill.go create mode 100644 models/components/platformagentslackchannel.go create mode 100644 models/components/platformagentslackchannelmapping.go create mode 100644 models/components/platformagenttoolset.go create mode 100644 models/components/platformagenttrigger.go create mode 100644 models/components/platformsubagent.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentchannels.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentcontenttrigger.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentcontenttriggerfilter.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentcontenttriggerfilteroperator.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentdependency.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentgleansearchconfig.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentinputfield.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentinputfieldoption.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentllmmodel.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentprompt.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentschedule.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentselectedtool.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentservicecredential.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentskill.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentslackchannel.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagentslackchannelmapping.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagenttoolset.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformagenttrigger.go create mode 100644 tests/mockserver/internal/sdk/models/components/platformsubagent.go diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f0d2d37d..d79c3623 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,18 +1,18 @@ lockVersion: 2.0.0 id: 9d90eb9e-33f8-4170-8944-988f4000aad0 management: - docChecksum: b5e6aaf09569e076c7321d15cf12c515 + docChecksum: 4bb1c752f9e3a56aa7b9a22b1afd798a docVersion: 0.9.0 speakeasyVersion: 1.810.0 generationVersion: 2.961.1 - releaseVersion: 0.17.8 - configChecksum: 0c04531b2c9cdc1c946dd2e7fb0d5379 + releaseVersion: 0.17.9 + configChecksum: 99c26ea6b551eda774e840fc86523c4d repoURL: https://github.com/gleanwork/api-client-go.git installationURL: https://github.com/gleanwork/api-client-go persistentEdits: - generation_id: 314f42dc-ab95-4cec-8345-3050632eb9de - pristine_commit_hash: 5d13a0278a630898b9902e523e4ca22f315a026c - pristine_tree_hash: 94f21906bc508e9c5155cc9aeab2299418f65c9e + generation_id: aa8a166f-7266-41db-903f-5342bbbc9919 + pristine_commit_hash: cff7eefa3c0d46edf9465bbbc53b9977ed866a0a + pristine_tree_hash: efbd2996e77876d1c37e47dbcc55bdc62261f96b features: go: acceptHeaders: 2.81.2 @@ -269,8 +269,12 @@ trackedFiles: pristine_git_object: c8bcba91b2dd76ddec8c3d5d0f993b70979c7e37 docs/models/components/agentconfig.md: id: 27416a525e98 - last_write_checksum: sha1:4a17245f952a55d654fbc32698ceffb9838065a5 - pristine_git_object: 24542b4de71c124334891c178f3a3cab6dbeaac8 + last_write_checksum: sha1:e91a1be4e3de4b55e258bb4950a186c20bb1312a + pristine_git_object: 95c7cd7d63711acd8a63d896362d1ff1390839ff + docs/models/components/agentconfigmode.md: + id: a0d7d8dbe8d8 + last_write_checksum: sha1:223cfff342d1343d28447da97f84199d712dee9b + pristine_git_object: ab2c3b7252be9363eb2f00e23b3931e2e8cd6451 docs/models/components/agentenum.md: id: 6e164020cfe3 last_write_checksum: sha1:94f1c33dccf7a152d9736ceff44cb214844846bd @@ -779,6 +783,10 @@ trackedFiles: id: 4114dd6af998 last_write_checksum: sha1:1b07d4db4927034a9e51f74cbce820f37a71f0d7 pristine_git_object: 91a42206487cf8c6f964a9e93ea6387ad7b1356f + docs/models/components/content.md: + id: 171de262e3cc + last_write_checksum: sha1:05c9d5a4c46b964a7d3b3c26a6aea75afda8fb86 + pristine_git_object: e4539ba5cee6a70f09fc728942d09a1c416220d3 docs/models/components/contentdefinition.md: id: f571764e76ee last_write_checksum: sha1:ff2313730c3a73ffc7e7ab1424c7b959bf9ba4f6 @@ -887,6 +895,10 @@ trackedFiles: id: 3d1ca6d0168a last_write_checksum: sha1:45e022d327773dfacd095c6329571f33370357c9 pristine_git_object: 3f2c64237432e6de8542587d979c0abaf6431dfd + docs/models/components/customisationdata.md: + id: d434eb5a0b3f + last_write_checksum: sha1:e94249480fa5d6770673774f85493e33e1493805 + pristine_git_object: 682cae01fbd1f9450fe4df47aba73e9b7dfdb1aa docs/models/components/custommetadatapropertydefinition.md: id: 3540950fb0e2 last_write_checksum: sha1:93adb1203656f4abeff37d37985d9f57c8f7ab0d @@ -1103,10 +1115,6 @@ trackedFiles: id: c502559585dc last_write_checksum: sha1:80141ea7140645de3f42d8cdc9f1cd5aadd5f070 pristine_git_object: 78cbce51da4a2d8597e25dab0850ba516491c84f - docs/models/components/direction.md: - id: 184efcdcbc2f - last_write_checksum: sha1:b79f86faf0a12232040f035cb335fac71e219995 - pristine_git_object: 28dcd43ed18caff6bd53cc3c74f1f96d6d7b809b docs/models/components/disambiguation.md: id: c541b25a8973 last_write_checksum: sha1:820b03aebca30ebb5f3eb8e99532cc63593c30f6 @@ -1761,8 +1769,8 @@ trackedFiles: pristine_git_object: a659575f9f64d0b094681b69fbad6c9a9ce9a300 docs/models/components/insightsoverviewresponse.md: id: e490ed19892d - last_write_checksum: sha1:6b7c03ad422848be02c8bf6b79ba82ba5a5fb5ce - pristine_git_object: d25f98bf1eae67bb718c79ded9500d61128a8236 + last_write_checksum: sha1:7bd839658aa8e59abcaacdbb530f75ddb56a24c9 + pristine_git_object: 29108185a0a1ccd68e7fbded9875c872189997d3 docs/models/components/insightsrequest.md: id: cf96ae543699 last_write_checksum: sha1:7fcfaf5d7656abb9b65e3a7406d0d81d50b3637e @@ -1949,8 +1957,12 @@ trackedFiles: pristine_git_object: d5c2e207e418ec239917cbe9bdbd38b3b8a24242 docs/models/components/messagesrequest.md: id: e568fd3ac212 - last_write_checksum: sha1:a5d57d94ee20bd6c0a265994b7455725318f2dbe - pristine_git_object: c3941f0a25db0e864b259effaf3732916c8cb69c + last_write_checksum: sha1:726a973e0f5573f491fc1c515f0adbe63edd7b51 + pristine_git_object: ae5868185660ec55f459d4c3b9901e9bfd12a351 + docs/models/components/messagesrequestdirection.md: + id: 1f2ddc9739ec + last_write_checksum: sha1:60fdd76d53f65d592e0237194c40a764d35a63ba + pristine_git_object: efe42769b1cb7e339e46523ab4950f27cd77e724 docs/models/components/messagesresponse.md: id: 8e8d535e494a last_write_checksum: sha1:d13e02bc9998a466d5b29fea8454bd882d94dd67 @@ -1967,10 +1979,6 @@ trackedFiles: id: a794af33d840 last_write_checksum: sha1:2ec0bf17de94938dec1cfb4d3315f6b7f2526bb1 pristine_git_object: 488bddd14d7cca9b7643fdabf8357d0c35f83686 - docs/models/components/mode.md: - id: ecad6afdf106 - last_write_checksum: sha1:11b0ac0c357e6b775d00c424f16d8ab97e068776 - pristine_git_object: 83dbfe6a75dc23cdc053ae56998a0266d827c282 docs/models/components/objectdefinition.md: id: 62ae4ce20229 last_write_checksum: sha1:b6252b452c62e9815f899fb3d92dabad987ddb76 @@ -2097,20 +2105,72 @@ trackedFiles: pristine_git_object: 048c5b12900bf059b330cdb569c83223fd68f1eb docs/models/components/platformagent.md: id: cfc6f19bfa42 - last_write_checksum: sha1:f25f89c4c09ba48ecc8aa8f18422efaec4a715e2 - pristine_git_object: fa458019810fd92211a28e6434c96884f7d9fe73 + last_write_checksum: sha1:5ca18258c85f3b1ba878b16abd3011477bc7e7b1 + pristine_git_object: 28262ac69990a41b210a50b5092d9ae65264183c docs/models/components/platformagentcapabilities.md: id: 5589f386e676 last_write_checksum: sha1:fca6e22d7df6de38b17082e499b5ded0ee6b333e pristine_git_object: 10a7bf3bcb054756a774cf0381b871c3fc45c535 + docs/models/components/platformagentchannels.md: + id: 2a4a7fde476d + last_write_checksum: sha1:ea1722907b4a75dd1388cf4f5bc77ab00aede166 + pristine_git_object: 24048b40a3022b39f845fae0c6da391a7f512142 + docs/models/components/platformagentcontenttrigger.md: + id: fe8db30d1071 + last_write_checksum: sha1:07441bda00a5dfb74f03d7a422d87bbfe5b75318 + pristine_git_object: 9785b3702d1a5b9c184cb6c2a5ce1bc36f2ea4c7 + docs/models/components/platformagentcontenttriggerfilter.md: + id: 309d244e59a0 + last_write_checksum: sha1:3089ea259095f3b58460453fd2f03c412851a1ac + pristine_git_object: 85ef9b8c5afa8bc785c044139387291d20abc75b + docs/models/components/platformagentcontenttriggerfilteroperator.md: + id: e21f0261c210 + last_write_checksum: sha1:51c31716e6603053edec742dfe47136535f5d498 + pristine_git_object: b272a6b8a0ab7abf90f8dc50eea1626e62869f96 + docs/models/components/platformagentdependency.md: + id: 4dd8582bc040 + last_write_checksum: sha1:89c9e20acdec944a4a4b456019151aacee33e386 + pristine_git_object: af426f1c21f88040d827d665d560de6ca5010a8a + docs/models/components/platformagentdependencytype.md: + id: c061885ff2d0 + last_write_checksum: sha1:48ca5c2e228f352aa4334f18072dcfbea10ff12f + pristine_git_object: fc5571c873291eed16b326c373310ec817d31ee2 docs/models/components/platformagentexecutionstatus.md: id: 2a01e25cee85 last_write_checksum: sha1:317c62f706430766279f301b68c78bdd831dba13 pristine_git_object: c55644752bc267141d7e124a6ee8410fc9c22d8d docs/models/components/platformagentgetresponse.md: id: 17095cf4b554 - last_write_checksum: sha1:b3c33ce7c241fb0f4b644108168d62fb1e8a37b5 - pristine_git_object: 8c867fde9372c21ec5ec2830d631e2989b9d36eb + last_write_checksum: sha1:a061b2d5473fbc9c445e8fd471d0e96e64c8dc8e + pristine_git_object: 9253d69ecf91d660f8065bcaa41daccafcd61624 + docs/models/components/platformagentgleansearchconfig.md: + id: f959f1c6f622 + last_write_checksum: sha1:13ae9ea8150ae368299391615d9667715f7af52b + pristine_git_object: 067d38906901666a3e6628af16a5132e953c42d3 + docs/models/components/platformagentinputfield.md: + id: f722f77951c5 + last_write_checksum: sha1:5d24c87b113255fa571fd0e2a63560a586f1ebc4 + pristine_git_object: 3b0a62e304c82e1164c9bfbb5953e1f374a15a60 + docs/models/components/platformagentinputfieldoption.md: + id: 9a0aca1f5dd9 + last_write_checksum: sha1:c6eb04bec2ad60ddf4997c29b4cdd870f74c60c6 + pristine_git_object: 952ece32dd6a4c3548513ae2a0524904b3d312e2 + docs/models/components/platformagentinputfieldtype.md: + id: 46db7af0491c + last_write_checksum: sha1:7c1793a0392db3a3927903e4a5e425570c490546 + pristine_git_object: 179779df07de8f0e2aee033279500496eaeaec9c + docs/models/components/platformagentllmmodel.md: + id: 0a3f6f854dd4 + last_write_checksum: sha1:906e3523b70ee5c5cc7dae2b0c763129da20bd16 + pristine_git_object: 1f9584ed74b553b289ffb8e6d062cf19889c58eb + docs/models/components/platformagentllmmodelmode.md: + id: 4484d7f78f0c + last_write_checksum: sha1:ea3fd73442684ba8cc55a58990930cd280a17361 + pristine_git_object: 1dba558d74030ec32c87ea20839a594bd6e352ce + docs/models/components/platformagentprompt.md: + id: c91576f2361e + last_write_checksum: sha1:8234915c09fd74c0fb5219b5860ee1c779505b29 + pristine_git_object: e7a490c1b17e7624dfad92adef3eb33c99581959 docs/models/components/platformagentrun.md: id: 2623b503a857 last_write_checksum: sha1:50179d43e85d31722c5b7ac82546324bd4a47532 @@ -2155,10 +2215,34 @@ trackedFiles: id: 5a1e78680e6a last_write_checksum: sha1:7b3292aef782f7ff140e322330338c0d7e61c595 pristine_git_object: 8610a1a6ba0409fe14505d664fab6d09e56ef238 + docs/models/components/platformagentschedule.md: + id: 3bdee62cc258 + last_write_checksum: sha1:0e44ea781d4ff0802580c5e174b2bb3aa573a7df + pristine_git_object: 5afc7a28c2f318fb75c79388339e0ef1f48cff69 docs/models/components/platformagentschemasresponse.md: id: ffe202d90c33 last_write_checksum: sha1:9b516c32f198c219ae06abd6c31d725e47b79cc3 pristine_git_object: b23d3125cd55cf700618a601c726599cc1184d99 + docs/models/components/platformagentselectedtool.md: + id: 72d6605bab35 + last_write_checksum: sha1:cc761191ecec9826e7e8409526ff492eb89324ad + pristine_git_object: 488b4a700834bdea1d258ff8d3319f11a16517ba + docs/models/components/platformagentservicecredential.md: + id: a08e46b75d96 + last_write_checksum: sha1:4d1fac61d5f828d01af428ca4946c2f00b37f233 + pristine_git_object: bfb0af92a8da6ad604581e0e636bb50e02ce72e5 + docs/models/components/platformagentskill.md: + id: 177c0ecdce5b + last_write_checksum: sha1:2898c226f1671e36baa3b488f9875a36181d6d47 + pristine_git_object: 0ff170e95d1ddb55ffdf1127a656b635335f9bf5 + docs/models/components/platformagentslackchannel.md: + id: 98375df17399 + last_write_checksum: sha1:7ce413fb2e9298229ddeb33d038ed7d782c8194a + pristine_git_object: e1ea8577c29e8420d02891dc5c72d1dd75f46b8d + docs/models/components/platformagentslackchannelmapping.md: + id: 78c96155cf9d + last_write_checksum: sha1:0f8a5e2a125a3ead5ff1e24ec3d83531890020e4 + pristine_git_object: 2a28aa002e882a400f617673e35e7e94fe9d7395 docs/models/components/platformagentssearchrequest.md: id: 8be0757e3290 last_write_checksum: sha1:4950d89f23ddfcf6287df4bd865122be8657b9bd @@ -2167,6 +2251,18 @@ trackedFiles: id: 80dc362d4880 last_write_checksum: sha1:6d25374035d91314fd368cd48c279f361c654f02 pristine_git_object: 5c886cb61bea000401d1be2f16ad7e4942685c8b + docs/models/components/platformagenttoolset.md: + id: ccbd00960c90 + last_write_checksum: sha1:dd96346792a68a7ad08b581dd25590b97db8ec95 + pristine_git_object: 0581b0ce64fffbfe880891ea3c8d581cfd72038d + docs/models/components/platformagenttrigger.md: + id: a2ea68e1ab30 + last_write_checksum: sha1:74a48c7fe2bc0f5af81bc7e969b7e34f5e71cb7c + pristine_git_object: 23742db5e5189bf4a5e178e7ba37d23aa22ace29 + docs/models/components/platformagenttriggertype.md: + id: b067596fa1e9 + last_write_checksum: sha1:1d8228dd4c37017cadaeb299e0da019b21fef3b2 + pristine_git_object: 903f43900590b4beaef4461d99e0f0382c25ddbe docs/models/components/platformauthenticationsuggestion.md: id: 601a727ded23 last_write_checksum: sha1:b020bcc69abb8c6ece7ddde38eba4e4d5a3769c1 @@ -2657,8 +2753,8 @@ trackedFiles: pristine_git_object: 22331e14f41e928cf8767dc0959bc46ce886d052 docs/models/components/platformskillsourcepreviewfile.md: id: 1b1d78e3ecce - last_write_checksum: sha1:e7e3ea7665fc189a42116177b93a408be85a7aa9 - pristine_git_object: a239843aa5958128407a75a23f41aeaca17bd0ab + last_write_checksum: sha1:db24588b1946473c3d6b7d922705361041007927 + pristine_git_object: 27a0ff527cdf029599de0df700afbc08f4af2fbc docs/models/components/platformskillsourcepreviewresponse.md: id: c042e21aa523 last_write_checksum: sha1:ecfe816ea0a78c6acb660da49a65129594c5315e @@ -2799,6 +2895,10 @@ trackedFiles: id: 4eb8de7042ef last_write_checksum: sha1:a59d577e7e15aecd9568e75480e6b9eda01273d4 pristine_git_object: 6fcd4a1031f00ed1a9337da386e9df9e22d6664a + docs/models/components/platformsubagent.md: + id: 3c500f2ada2f + last_write_checksum: sha1:f511955cf4bc35c2b7d063dd71b398e5a8d43ebf + pristine_git_object: fbee24ee7d495efb7df5090235a724b89a0339fc docs/models/components/platformtimerange.md: id: d2e589bb488c last_write_checksum: sha1:61236d3fb6f05a246d0a61150bf2456c18cfd7f5 @@ -5117,8 +5217,8 @@ trackedFiles: pristine_git_object: a3cb3e5448f3fdcfad77ed2a4ba47ae848d5cd5d glean.go: id: f5ed099b8e85 - last_write_checksum: sha1:3a67544fd417f8fa3c2d790c239f24ef175046e6 - pristine_git_object: 20641fc87e58a351f0b25984990eeb61d5e9a528 + last_write_checksum: sha1:2f094344aed501062710e9ca873fafac47a8677a + pristine_git_object: 07546c1130f4d60bb62211ef9f43b15f7195e0f6 go.mod: id: c47645c391ad last_write_checksum: sha1:b3c76c4c50472a60a8c74834bce9770edcc84fb1 @@ -5325,8 +5425,8 @@ trackedFiles: pristine_git_object: cf75f57e7b8cf8187d33c328dc1d7e7405fcd612 models/components/agentconfig.go: id: f4fa41f2f48c - last_write_checksum: sha1:a4c65801cd4657e4efcf7653f87d219f9a5d3d58 - pristine_git_object: 6fa7a95b789e6efdcc2381103d8d845f7b4998cd + last_write_checksum: sha1:5ed27099eaaa9ad40f75f5d33b05c9209a355aba + pristine_git_object: 97e5ca14b2d41ea3e7f0b8d555379da79e3fc616 models/components/agentexecutionstatus.go: id: 0b13823059c2 last_write_checksum: sha1:c11627b58284e3d8e3a28e2b60a016ad50d5add7 @@ -6485,8 +6585,8 @@ trackedFiles: pristine_git_object: 5186f212c30ffca043657c61b69feedea998fa32 models/components/insightsoverviewresponse.go: id: ac8d586dce6f - last_write_checksum: sha1:360958fb518fcf165e1da33a6d76d488f0d8eb9b - pristine_git_object: dea18e87441f33a629d85cd5291d17d9595ed312 + last_write_checksum: sha1:05a55a4691826bea6c70f2f9ac91821f88d9554f + pristine_git_object: e42f72a6e641dee7fb9b4134196fcf313a59d75a models/components/insightsrequest.go: id: 864d5ff0b637 last_write_checksum: sha1:b4a7963549e0d534c6a1ef5064705a71bbcd235d @@ -6621,8 +6721,8 @@ trackedFiles: pristine_git_object: 1968ff64f17760d687dce494fff824c3f8dd5d8b models/components/messagesrequest.go: id: c3efb31bbd81 - last_write_checksum: sha1:b7e6197e3141ab9135007c9e1a5c81c1465188b1 - pristine_git_object: 5b0f4e70f51c333c32565820b6e7fbb265c5aae5 + last_write_checksum: sha1:abc74954014dd6bd72f60b42071247376315c8b2 + pristine_git_object: 2374a32a6f5ff13aa143ec3a692f73c591192b59 models/components/messagesresponse.go: id: "319698070110" last_write_checksum: sha1:2b8b424e1a1bcd45170c88322b1903203432beda @@ -6717,20 +6817,60 @@ trackedFiles: pristine_git_object: abd963bf39b73f2947fa2d83c151a58e322f1d34 models/components/platformagent.go: id: 5a8b54ca3c8f - last_write_checksum: sha1:a5fd04999e90a5c27a786a6d57ed7e9efcac5029 - pristine_git_object: 455ab68ae0e31930f7c58e224ba480fafaf44614 + last_write_checksum: sha1:548f65f16e827fb56f392b7e746e9e1958fa71fe + pristine_git_object: 54f9a8b14a67dae004921c8b6e90f7b6bc15581e models/components/platformagentcapabilities.go: id: c7240e7fb613 last_write_checksum: sha1:ff2e0e19dc24ed8047fd96f4a092078a5897a59c pristine_git_object: d439ea9e52571d083520f90b62fb8d802964ecc2 + models/components/platformagentchannels.go: + id: d36801574beb + last_write_checksum: sha1:436d9a8a6fff250038286d53ff51cc9787daccc2 + pristine_git_object: 8f674b7395d845dd033653ab184e4829f52a3a0d + models/components/platformagentcontenttrigger.go: + id: cb77fec25ed8 + last_write_checksum: sha1:1e40467d17d8fc5a3fe05988a606d43ed87de6dd + pristine_git_object: 772f56b3f22464ef1ea35bfcd3be6b16cbdb6c43 + models/components/platformagentcontenttriggerfilter.go: + id: 25f88d653093 + last_write_checksum: sha1:97ebd76c54968bba53b678344c14e7a45a905223 + pristine_git_object: b67038cc676fa3a62fe6a2d75925c98227a8b056 + models/components/platformagentcontenttriggerfilteroperator.go: + id: 41f929c2f195 + last_write_checksum: sha1:863c2e276e2bb43063cd875653f8f634f8e23177 + pristine_git_object: fac35b951823b7d7898f69f72d93e7673674c862 + models/components/platformagentdependency.go: + id: 0ab4bd480d94 + last_write_checksum: sha1:e0806dc347765d5e6d85a8269b03817264f4f932 + pristine_git_object: 7b91564b500b91399dce8b917a5ed4cc4faeeb63 models/components/platformagentexecutionstatus.go: id: 46316efe6778 last_write_checksum: sha1:8e30f4f8af4fbbff64e665204edc60e5950fad39 pristine_git_object: 692f144dc4d1fca2202d3e4fb558c713d3e0d733 models/components/platformagentgetresponse.go: id: b0b5da1fdceb - last_write_checksum: sha1:595a093d38254a6104cb28d337605e91cd57ee75 - pristine_git_object: cbebd71ceace1541c621735db95f7a16f15cf890 + last_write_checksum: sha1:fa36599c229cfbde8e33043e193182c765c241a0 + pristine_git_object: 705f8117d2d1a2ab7e94b5141b66c7a9af50439c + models/components/platformagentgleansearchconfig.go: + id: cd08b2212a8f + last_write_checksum: sha1:3104d344cff029a09d9f90de6b491172789c4e5c + pristine_git_object: 18d52b8632fdba38904c5133c662f129a3ed0da8 + models/components/platformagentinputfield.go: + id: d97dc89cf86f + last_write_checksum: sha1:d022dcf9c182f22365778502b8f41c097fd17661 + pristine_git_object: 4480544e51452c05c986b1b52e822b2f2c2d6a87 + models/components/platformagentinputfieldoption.go: + id: af2763288024 + last_write_checksum: sha1:2c82b9663e24d7829b053f57ce929b5a7f1f0f1b + pristine_git_object: c8538bfade311e2b5350be05d2fa2386ac0ef6e3 + models/components/platformagentllmmodel.go: + id: 103ab2c754cc + last_write_checksum: sha1:36dc76140681c157d0d7fa9bdf198236111c1012 + pristine_git_object: 8e300c24dc6b80e29f4f4af82d77ca2e4009946b + models/components/platformagentprompt.go: + id: 68966e3e278c + last_write_checksum: sha1:93a0530a99c78888ed14ccce914b42363a170612 + pristine_git_object: 843c43676edaaba2386026d9503406fff89bfed9 models/components/platformagentrun.go: id: bf1f26400d1e last_write_checksum: sha1:be677c65b00a137f18cac6f355af4dfa195c55f4 @@ -6771,10 +6911,34 @@ trackedFiles: id: b2a989acac2b last_write_checksum: sha1:0b2f1b15efd8fb833ce1be928ebf0d93207effae pristine_git_object: f66d4b4ebe1848113923a0c46513235019e76d8c + models/components/platformagentschedule.go: + id: a3ef15a2b7f8 + last_write_checksum: sha1:82af271174604ecd36b66a0adbc875ef17f6ce2b + pristine_git_object: 974ef6c1d7f1bb0fb0b580e8af53e6a4820a13de models/components/platformagentschemasresponse.go: id: b8a8d65c1d29 last_write_checksum: sha1:32fa2fbe419df1aa4e6b2f61e30491d704e5d115 pristine_git_object: 96d82b6558091825ee5cf90242f1d8656916f8b9 + models/components/platformagentselectedtool.go: + id: d4151b2ab94a + last_write_checksum: sha1:38db973eaea7b035c4e7583ba647f7f93b9de02f + pristine_git_object: bb41b948252ec38422cd030dfbc539292f7b3215 + models/components/platformagentservicecredential.go: + id: 8a8db10d09b8 + last_write_checksum: sha1:d563f7ab99998eb8b43b2727b1969e910b94c291 + pristine_git_object: ec66a471720d954c46e88286293639fcae7d05dc + models/components/platformagentskill.go: + id: f58ce2db5b29 + last_write_checksum: sha1:e9dfa74169e3d1d82d1969df17da4c86cff63f0b + pristine_git_object: feef24f3405e6483e20b228856cedcb64d5878f4 + models/components/platformagentslackchannel.go: + id: faa58230c4ee + last_write_checksum: sha1:5ef358bd5a19e5c8661a07d0454de1f04ef7d155 + pristine_git_object: a9b17cf475d03844d6114d727672dc0fdb12987a + models/components/platformagentslackchannelmapping.go: + id: 237a547763e9 + last_write_checksum: sha1:751225e55d3a2849fa8f6a9799e334b3b6520d2c + pristine_git_object: d46566ce25bfa3c60d7882c19c74aecc91b679d4 models/components/platformagentssearchrequest.go: id: 6e0dc4f43ef8 last_write_checksum: sha1:2724b3fb703f1c7d8334ef93580f4d3e0ef567a9 @@ -6783,6 +6947,14 @@ trackedFiles: id: 2cf6a01dd4be last_write_checksum: sha1:faac31b86f3de634431fcca0af54c00aa6949fbf pristine_git_object: ecc7c391d140d225d8b35ad28d732b32e8111d4b + models/components/platformagenttoolset.go: + id: 72e00979d7cb + last_write_checksum: sha1:0ba97e619068bbc3b42c370e071f097b925cf52a + pristine_git_object: d3bc1fb0ae3eac5b262714e66f677a53b0ea9534 + models/components/platformagenttrigger.go: + id: 52e09e08199b + last_write_checksum: sha1:3543bf4bc429b72f439915f4caf8d43c6ef7d9e1 + pristine_git_object: 37629f44fcf0dd93141cadc76c6d867a3b7fa1b8 models/components/platformauthenticationsuggestion.go: id: bfa0746be529 last_write_checksum: sha1:f1372c57c7246c5688e132aaba3817fa3f7bf7fa @@ -7165,8 +7337,8 @@ trackedFiles: pristine_git_object: 919a49672bf3ca836c9c7b95ac4a83844f3d9797 models/components/platformskillsourcepreviewfile.go: id: 0eb6c2c4e29f - last_write_checksum: sha1:894df5c5d0f05f5cbc204f6821e8b2df22265729 - pristine_git_object: f5783a5bf695c34a96c9866a1dcd55eb994c214d + last_write_checksum: sha1:1d1b5f110bb213c2e7ee05a7486bb21995812b09 + pristine_git_object: 84159039ef0a2a8d20c481ebd336b97c9d6e02fd models/components/platformskillsourcepreviewresponse.go: id: a418561df86b last_write_checksum: sha1:1f76708ff3359a0930a0822ebdb389cbf3b3e4bf @@ -7279,6 +7451,10 @@ trackedFiles: id: 8534ed9736fe last_write_checksum: sha1:74c183ca7814897d5c849bce802cc0df94cd81f9 pristine_git_object: 204cf73bf2c3320d3f2770d723ad61f5d1f1127c + models/components/platformsubagent.go: + id: 34db130dded6 + last_write_checksum: sha1:633889539533296617ad6ba9936e4ec1a977dfb2 + pristine_git_object: 058329d6a457fc4a4e2842b699fa23a009801590 models/components/platformtimerange.go: id: f0d79b3ada90 last_write_checksum: sha1:736cbfaac97901328f8d421406492a94be6ce71c @@ -8861,8 +9037,8 @@ trackedFiles: pristine_git_object: 6d9cbca42012c2760de3ecaf4f569c53d32197da tests/messages_test.go: id: 3433c956b7a3 - last_write_checksum: sha1:1cd91a5da0532448c95e970af3d91952394a6cb9 - pristine_git_object: f927c36464e8eb191ae67582831be04e3db1e5dc + last_write_checksum: sha1:0e70d5a95dcfffb2d01931c47eae827d7c95129a + pristine_git_object: bc499ec73cc495c1502d01361347ce76a0fe5f18 tests/mockserver/.gitignore: id: 7705eb663274 last_write_checksum: sha1:228e1b05712a973948fd771323a2140a3b355ff4 @@ -8949,8 +9125,8 @@ trackedFiles: pristine_git_object: f4abe7f8e30699dd520c5f5ac111989052415690 tests/mockserver/internal/handler/pathgetapiagentsagentid.go: id: 118e0c46ba00 - last_write_checksum: sha1:8ad0cc0ad413e34c3d950ee07ccd13ce861a261b - pristine_git_object: 821cdaf9e7e105e44baf2fb6c2352df5c5bd20f7 + last_write_checksum: sha1:de9f558e34a79db449299740e59744c4242245c7 + pristine_git_object: a14e1b6f99d50e88bccaaf92ddf3de2325b57b20 tests/mockserver/internal/handler/pathgetapiagentsagentidrunsrunid.go: id: 475b833c9801 last_write_checksum: sha1:2d7a9ed6338061ad7eb2f9e2e309024d30adbbeb @@ -9413,8 +9589,8 @@ trackedFiles: pristine_git_object: abb763ddc8504b28c0cb6fdf8d25237d46e21bab tests/mockserver/internal/handler/pathpostrestapiv1getchat.go: id: a0ec7bafa599 - last_write_checksum: sha1:2267292ba8173cf8df70ddbc6ac02ff3439cb879 - pristine_git_object: 8740195860b6c08e036caae19aab8e7374350960 + last_write_checksum: sha1:0cf0f4e0b4486711d5e9b6e23d4fffd11775aa96 + pristine_git_object: 652086e95dc07413491076187c019fd5c029ba02 tests/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go: id: 7d101c69d4bc last_write_checksum: sha1:7b81898137fdb3a89b4dcfa318b9b5b92e8860c0 @@ -9633,8 +9809,8 @@ trackedFiles: pristine_git_object: f7b3b13119f56eb58b399290ea4fa65e83b3e490 tests/mockserver/internal/sdk/models/components/agentconfig.go: id: fa742da941da - last_write_checksum: sha1:cd839d5368cb6f41495a5fc8ef333ab5d4f102cb - pristine_git_object: 679f7f3270226aee52d4ade229b20b723d13c29a + last_write_checksum: sha1:aadf9220c6fa026d794a2bf724d6d031f6249e61 + pristine_git_object: 0fcf307eb02029365458bfe3c2bac605f992c058 tests/mockserver/internal/sdk/models/components/agentexecutionstatus.go: id: eb0b8cff2bf6 last_write_checksum: sha1:ef904e3fd25fd902d355e88115d0721dfecab4f8 @@ -10793,8 +10969,8 @@ trackedFiles: pristine_git_object: 5e903919f103f212820d2d4717e0e1e95d78846b tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go: id: 5643c3cf2f72 - last_write_checksum: sha1:38ab70635b4b9fc592ef3e863272410f1db855f4 - pristine_git_object: a4872a274ca370eae187a079685b7b919c776a56 + last_write_checksum: sha1:9c0066315647c55ecd97fbb7ad45ede0fe090290 + pristine_git_object: 200d888d000dd568ff67faee10cf530f4698acba tests/mockserver/internal/sdk/models/components/insightsrequest.go: id: ce15dfb99343 last_write_checksum: sha1:b9f1c9680014aa2b60161886dc0d5932ef0cab20 @@ -10929,8 +11105,8 @@ trackedFiles: pristine_git_object: 958e2d359d3a312b33fffbf3345e40e21b4ca5d5 tests/mockserver/internal/sdk/models/components/messagesrequest.go: id: ad26cc127163 - last_write_checksum: sha1:91ec52d57dfd2e53150a39841b6eebf3bf8d1568 - pristine_git_object: a778dc51fec681f83e9e9b0b5f0801792fc00fa6 + last_write_checksum: sha1:b6ceb2dded7b291f1d6486a89582317247f323c0 + pristine_git_object: 36c077ba4811f4deeaea6d4a64ddd4ed38339f4a tests/mockserver/internal/sdk/models/components/messagesresponse.go: id: b2129871b3f8 last_write_checksum: sha1:cd2a29d8a46d95037a32717f4cc91612a3a29cac @@ -11025,20 +11201,60 @@ trackedFiles: pristine_git_object: 1bdc67b394900c4c3bd31500b76088982ddea656 tests/mockserver/internal/sdk/models/components/platformagent.go: id: dcdd9a7bc9de - last_write_checksum: sha1:b55d4b147d41e3732e54372b8f1fc4c69a6a2426 - pristine_git_object: 79049da4483e06ef116e58df66ecff3551a849ab + last_write_checksum: sha1:62ef57f9332bb2347c05fe312661ebd6256f5a2d + pristine_git_object: d7adfa4868a7728737822028c2cc2630b85a9679 tests/mockserver/internal/sdk/models/components/platformagentcapabilities.go: id: 2807a52a8b1a last_write_checksum: sha1:eed1084087dd93ae61c145598628546d819fe45b pristine_git_object: 562c8682df3bb923ffa1cc3fdc86b8a9048b6e1f + tests/mockserver/internal/sdk/models/components/platformagentchannels.go: + id: d6c197cbb8d0 + last_write_checksum: sha1:c0e8e320646c3dd17cfe7e4720ca5ec9334307c2 + pristine_git_object: 07f1318f5545917dbf9123365b31d2d7ef899088 + tests/mockserver/internal/sdk/models/components/platformagentcontenttrigger.go: + id: 8980fe85fad1 + last_write_checksum: sha1:14dffca6d42d120efa7111977ebe14de42cf629c + pristine_git_object: 24495c404bd0229d0ddb92b0c1c6ccde9262d6c7 + tests/mockserver/internal/sdk/models/components/platformagentcontenttriggerfilter.go: + id: fbf7dd647dc3 + last_write_checksum: sha1:e2271fda62cdd1d273c7e4c7ac3fdd454f6dbfae + pristine_git_object: d8fee0fe1e4cef573013271fe15530116b20617c + tests/mockserver/internal/sdk/models/components/platformagentcontenttriggerfilteroperator.go: + id: 37e57ed1b4dd + last_write_checksum: sha1:a547345dbda194132e9e1f9ace8af01859572ddc + pristine_git_object: 105364b9333be057f2c350c425f7c05443cf6921 + tests/mockserver/internal/sdk/models/components/platformagentdependency.go: + id: 3f7712d41e8a + last_write_checksum: sha1:92dd111f7e48dc8401e58d945a1604433c554bac + pristine_git_object: 44ab8c8dba24179cda56693e75c66b435e8dc432 tests/mockserver/internal/sdk/models/components/platformagentexecutionstatus.go: id: c9db767e876c last_write_checksum: sha1:c8f646aff8df619e61b6f55a22b8ca836e40ce9d pristine_git_object: c8c2bfb9613140654f527aed41518769e10ff152 tests/mockserver/internal/sdk/models/components/platformagentgetresponse.go: id: 531e55c09141 - last_write_checksum: sha1:b36aba6678be9f8a1b18e6e901f1671dcdebd0a3 - pristine_git_object: 3df4f65db7b472cc1bb0fec6603e80830ddd938d + last_write_checksum: sha1:1f15f4f0b961d650eab49436612a93e0ca22fb98 + pristine_git_object: e62c09fb6925579c45c53a71f7e0795dbee22e13 + tests/mockserver/internal/sdk/models/components/platformagentgleansearchconfig.go: + id: e5039ee2198e + last_write_checksum: sha1:7feccfb6820ffb922f6105e2dba2a6acfbafcc9c + pristine_git_object: 9a0847b2e3fdcd64d6b8c3eb2047ace1f538bafb + tests/mockserver/internal/sdk/models/components/platformagentinputfield.go: + id: 1ea0c845657a + last_write_checksum: sha1:e31010f42c40ab4abf32c46b37ef5cad565f5b7b + pristine_git_object: 1680d71f5de7b277cbfcaf573a5dc91eb7a211fc + tests/mockserver/internal/sdk/models/components/platformagentinputfieldoption.go: + id: 5e5bb2618df5 + last_write_checksum: sha1:960257d7ecf1d7c0f2ab2c0b9e0f59ba7fc40084 + pristine_git_object: d21329bc529760fa27d3f0dc0fc5d7c7128d2642 + tests/mockserver/internal/sdk/models/components/platformagentllmmodel.go: + id: 416f0738626e + last_write_checksum: sha1:b3c8305cf7dd6d498003c67bbee76262d6dff15d + pristine_git_object: 4a10ae80e3af32ca6d00e060c977a0902bfdcb39 + tests/mockserver/internal/sdk/models/components/platformagentprompt.go: + id: 24886e030b8b + last_write_checksum: sha1:0ed711825759b5c38362643e3dcbbe220312b0d0 + pristine_git_object: 51f0920db30abda24d19db8d77a4cdea198f3e75 tests/mockserver/internal/sdk/models/components/platformagentrun.go: id: d12a92c365e5 last_write_checksum: sha1:c39a6b74fe9c30850bf5bedd6827577bf4b56566 @@ -11079,10 +11295,34 @@ trackedFiles: id: 368b82c238d0 last_write_checksum: sha1:77ffebf146f2f6f671f10a8ad893f672ee8c67a5 pristine_git_object: b157f036a87b980e584e542010411e4ac69a36f2 + tests/mockserver/internal/sdk/models/components/platformagentschedule.go: + id: 42e797baff90 + last_write_checksum: sha1:4b65aed0698aa7d78eef5864a4880d3fcff91ef6 + pristine_git_object: 9a9c01ae6cbe7393dd01d7cdd920963e0f561e40 tests/mockserver/internal/sdk/models/components/platformagentschemasresponse.go: id: 68274dd0a3df last_write_checksum: sha1:a7e32651fe39006126fc80176910047ac84c9893 pristine_git_object: 6f9aa5d088b6d5d8b6e3490b15ee4c0ad45749b1 + tests/mockserver/internal/sdk/models/components/platformagentselectedtool.go: + id: 6a2cb9e5272b + last_write_checksum: sha1:e2b0793ddfd02c060b016a4669f58a376f5045eb + pristine_git_object: 28fd4df785f56c83bbb8a6545d58cb938b8a197e + tests/mockserver/internal/sdk/models/components/platformagentservicecredential.go: + id: 8584b8ed6465 + last_write_checksum: sha1:2278b5f058180aadc16f9565925084289956d9e5 + pristine_git_object: 2942af95b057d40bbc0617b83a85ee68288ede83 + tests/mockserver/internal/sdk/models/components/platformagentskill.go: + id: 24683fa936e9 + last_write_checksum: sha1:722d51ec5618b74ac593208a565e1fb42ba14181 + pristine_git_object: 09511ec65dbefcf2474e9b1f129081ff507e12b4 + tests/mockserver/internal/sdk/models/components/platformagentslackchannel.go: + id: 447070965a1f + last_write_checksum: sha1:a44ae5aa4273328e5474d4acbb969a44cd6c4ac3 + pristine_git_object: f0a217c905ad2aa31fb2695b6a696d89152a2d7a + tests/mockserver/internal/sdk/models/components/platformagentslackchannelmapping.go: + id: 702a560ab560 + last_write_checksum: sha1:b9efa0e671d28df1f75fce9f4cac1768dd488514 + pristine_git_object: 5d24cf6e7eb3e0b36c62b5820110e6daa1e5c27c tests/mockserver/internal/sdk/models/components/platformagentssearchrequest.go: id: 7eaeaea3b941 last_write_checksum: sha1:7c1f9eb5a6433e664b9ce9e5dd111d3408ff910e @@ -11091,6 +11331,14 @@ trackedFiles: id: f299b36c97da last_write_checksum: sha1:2e0f29320158b7f1b204af2adbc462bdefa34c1f pristine_git_object: ba08e943e4a74ac111304125d6085f642a522085 + tests/mockserver/internal/sdk/models/components/platformagenttoolset.go: + id: 4decc9d14146 + last_write_checksum: sha1:15662761d1f8c67393f5f7f9bea5beb0eb6ce356 + pristine_git_object: e663f381fa9a420048421f7e82e7253fd3cae586 + tests/mockserver/internal/sdk/models/components/platformagenttrigger.go: + id: 3a7aabe2d320 + last_write_checksum: sha1:ef71c8e257a7ae529d9b1dab1f3d9a5067b1548f + pristine_git_object: 43f143e8676d2441d25cb395f70f2ea8339c5d9c tests/mockserver/internal/sdk/models/components/platformauthenticationsuggestion.go: id: 48f115d1756f last_write_checksum: sha1:6d1eae6baac1ea0a8d42a87a076548005e48e016 @@ -11473,8 +11721,8 @@ trackedFiles: pristine_git_object: 0096a29687b3f1e393cb76f6a8f794a20e860eb2 tests/mockserver/internal/sdk/models/components/platformskillsourcepreviewfile.go: id: 7b0601c7fda7 - last_write_checksum: sha1:9aa7df164105692a1c8c94c58bdc905b0292f2d2 - pristine_git_object: 7622555e6e310e61fe97c2018874a2617652b8e0 + last_write_checksum: sha1:5c7102b83c033eb6ca51bb63ef3316da83c00fbe + pristine_git_object: 458c40544a47df80fc88e534fd1a798ec6d4c676 tests/mockserver/internal/sdk/models/components/platformskillsourcepreviewresponse.go: id: d14b15a2dcc9 last_write_checksum: sha1:d441199f3e22acac926b5a9efe954bc9a6ccaf59 @@ -11587,6 +11835,10 @@ trackedFiles: id: 35adfb5fbba2 last_write_checksum: sha1:42f6693dcea22369b550da6b9c2a6fc9a950e389 pristine_git_object: cc6af7a34c50da96df3629b65aa69dc50a8452de + tests/mockserver/internal/sdk/models/components/platformsubagent.go: + id: ae226a4dd1f5 + last_write_checksum: sha1:ab4c78ba8af0c2ba14d0727488e7ac41b8926283 + pristine_git_object: a1114e5d97098b2f84b2dceeff7601dd9fd65798 tests/mockserver/internal/sdk/models/components/platformtimerange.go: id: cf2540151ce1 last_write_checksum: sha1:3a0ec2ca473681b89ff97606f648fc15fcdae38e @@ -13137,8 +13389,8 @@ trackedFiles: pristine_git_object: c529bd5691588e889a10e46bb1cd477a80cb3703 tests/summarize_test.go: id: 1b63b0a16e69 - last_write_checksum: sha1:3c57041c1cccb93ec8919e4d2249e9e9915c55ea - pristine_git_object: c35381dac59e885785cbed4d057b1684f538c77a + last_write_checksum: sha1:6c5e868a7ad781259f9dc9931396bb0850ee23ad + pristine_git_object: f1055702f39c00f122c0d0386689e740629bc376 tests/testclient.go: id: 78d36c6e169c last_write_checksum: sha1:507c44e437934fbff8d295201c1327e18bd00df8 @@ -14163,7 +14415,7 @@ examples: agent_id: "" responses: "200": - application/json: {"agent": {"agent_id": "mho4lwzylcozgoc2", "name": "HR Policy Agent", "capabilities": {}}, "request_id": ""} + application/json: {"agent": {"name": "HR Policy Agent", "agent_id": "mho4lwzylcozgoc2", "capabilities": {}, "subagents": [{"name": "HR Policy Agent"}]}, "request_id": ""} "400": application/problem+json: {"type": "https://developer.glean.com/errors/invalid-cursor", "title": "Invalid Pagination Cursor", "status": 400, "detail": "The provided cursor has expired. Start a new search to get a fresh cursor.\n", "code": "invalid_cursor", "documentation_url": "https://developer.glean.com/errors/invalid-cursor", "request_id": "req_7f8a9b0c1d2e", "errors": [{"pointer": "/messages/0/role", "detail": "Must be one of: USER, GLEAN_AI.", "code": "invalid_cursor"}]} "500": @@ -15064,7 +15316,9 @@ generatedTests: platform-search-enumeration: "2026-11-16T11:54:07Z" releaseNotes: | ## Go SDK Changes: - * `Glean.Search.Enumerate()`: **Removed** (Breaking ⚠️) + * `Glean.Agents.Search()`: `response.Agents[]` **Changed** + * `Glean.Agents.Get()`: `response.Agent` **Changed** + * `Glean.Admin.Agents.List()`: `response.Results[]` **Changed** generatedFiles: - .devcontainer/README.md - .devcontainer/devcontainer.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index dffcc04c..89c88f1b 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -33,7 +33,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true go: - version: 0.17.8 + version: 0.17.9 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false baseErrorName: GleanError diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index ad10f296..c09a31ca 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,8 +2,8 @@ openapi: 3.1.0 info: version: "0.9.0" title: Glean API - x-source-commit-sha: 2f6fc4fe9fed01ad76ee9aa694041c743bd74875 - x-open-api-commit-sha: 241062eca12866ea62b6e58d504ef481935fcf48 + x-source-commit-sha: 88a6c970bc2595551d275a7c0f6c482f7dc74bf3 + x-open-api-commit-sha: 552255087a44252dc86e22aa5b09093cdb4a9a29 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. @@ -1899,6 +1899,139 @@ paths: x-speakeasy-name-override: applyLimits security: - APIToken: [] + /api/usage/search: + post: + tags: + - Usage + summary: Search measured usage + description: | + Search delayed measured spend, not live enforcement counters or invoices. Principal filters select the scope; there is no target. With no user_id or agent_id filter, the scope is the authenticated user. A single-value EQUALS user_id filter must name the caller. A single-value EQUALS agent_id filter, with no user_id filter, must name a top-level agent the caller can currently edit, including disabled agents, and measures that agent. Any other principal filter needs an organization read, so like other-user, subagent, and principal-dimension requests it is accepted structurally but returns 403 insufficient_permissions. Unknown product and feature values remain in OTHER; absent attribution remains null. Results, totals, and cursor pages share one pinned read snapshot. Totals cover observed stored rows, not certified exports or verified absent usage. AGENT uses app-compatible best-effort recorded top-agent/root attribution and same-run AGENT/LLM_CALL events, not complete run lineage. Source freshness and earliest historical coverage are null when unsupported. Usage billed in GCU on full-consumption plans isn't reported yet and is excluded from results and totals. A month whose source rows exceed 200,000 at the day and user detail the query needs, or whose source read exceeds its size, billed-byte or 30-second limit, returns 422 unprocessable_query; use a coarser granularity, fewer dimensions, or a shorter range. + operationId: platform-usage-search + x-visibility: Public + x-glean-scopes: + legacy: + - USAGE + platform: + - usage:read + x-glean-experimental: + id: 99b8297a-ead7-4a58-bbeb-26fe0a3c51e6 + introduced: "2026-10-09" + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/PlatformSearchCallerUsageRequest" + example: + time_range: + start: "2026-09-01T00:00:00Z" + end: "2026-10-01T00:00:00Z" + group_by: + - CLIENT_ID + include: + - DISPLAY_NAMES + responses: + "200": + description: Measured usage buckets and complete-query totals. + content: + application/json: + schema: + $ref: "#/components/schemas/PlatformSearchUsageResponse" + "400": + $ref: "#/components/responses/PlatformBadRequest" + "401": + $ref: "#/components/responses/PlatformUnauthorized" + "403": + $ref: "#/components/responses/PlatformForbidden" + "404": + $ref: "#/components/responses/PlatformNotFound" + "408": + $ref: "#/components/responses/PlatformRequestTimeout" + "413": + $ref: "#/components/responses/PlatformRequestTooLarge" + "422": + $ref: "#/components/responses/PlatformUnprocessableEntity" + "429": + $ref: "#/components/responses/PlatformTooManyRequests" + "500": + $ref: "#/components/responses/PlatformInternalServerError" + "503": + $ref: "#/components/responses/PlatformServiceUnavailable" + x-speakeasy-group: usage + x-speakeasy-name-override: search + security: + - APIToken: [] + /api/admin/usage/search: + post: + tags: + - Admin Usage + summary: Search workspace measured usage + description: | + Search delayed measured spend. Principal filters select the scope; there is no target. With no user_id or agent_id filter, the scope is the organization. A single-value EQUALS user_id filter reads that user's measured events. A single-value EQUALS agent_id filter, with no user_id filter, reads that top-level agent. Any other principal filter reads the organization, then narrows rows. Requires admin.usage:read and workspace billing read permission; an administrator role alone is not sufficient. USER_ID grouping is supported; DEPARTMENT_NAME and GROUP_ID are deferred and return invalid_parameter. The calculation and response are shared with personal search. Labels remain subject to current resource visibility, not billing access. Historical agent attribution is never reparented at query time. AGENT uses app-compatible best-effort recorded top-agent/root attribution and same-run AGENT/LLM_CALL events, not complete run lineage. Totals describe the observed stored snapshot, not certified billing history. Usage billed in GCU on full-consumption plans isn't reported yet and is excluded from results and totals. A month whose source rows exceed 200,000 at the day and user detail the query needs, or whose source read exceeds its size, billed-byte or 30-second limit, returns 422 unprocessable_query; use a coarser granularity, fewer dimensions, or a shorter range. Organization and agent reads return 503 while the directory loads. In workspaces with more than 100,000 directory identities, reads that group or filter by user return 503. + operationId: platform-admin-usage-search + x-visibility: Public + x-glean-scopes: + legacy: + - ADMIN_USAGE + platform: + - admin.usage:read + x-glean-experimental: + id: 8302f34b-a55b-4d29-aecb-3ee7d170309b + introduced: "2026-10-09" + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/PlatformSearchAdminUsageRequest" + example: + time_range: + start: "2026-09-01T00:00:00Z" + end: "2026-10-01T00:00:00Z" + group_by: + - USER_ID + filters: + - field: client_id + values: + - glean + sort: + field: USED + direction: DESC + unit: CREDITS + include: + - TOTAL_COUNT + page_size: 100 + responses: + "200": + description: Measured usage buckets and complete-query totals. + content: + application/json: + schema: + $ref: "#/components/schemas/PlatformSearchUsageResponse" + "400": + $ref: "#/components/responses/PlatformBadRequest" + "401": + $ref: "#/components/responses/PlatformUnauthorized" + "403": + $ref: "#/components/responses/PlatformForbidden" + "404": + $ref: "#/components/responses/PlatformNotFound" + "408": + $ref: "#/components/responses/PlatformRequestTimeout" + "413": + $ref: "#/components/responses/PlatformRequestTooLarge" + "422": + $ref: "#/components/responses/PlatformUnprocessableEntity" + "429": + $ref: "#/components/responses/PlatformTooManyRequests" + "500": + $ref: "#/components/responses/PlatformInternalServerError" + "503": + $ref: "#/components/responses/PlatformServiceUnavailable" + x-speakeasy-group: admin.usage + x-speakeasy-name-override: search + security: + - APIToken: [] /api/admin/usage/limits/evaluate: post: tags: @@ -9055,6 +9188,190 @@ components: type: string description: Case-insensitive substring to match against agent names. If omitted or empty, no name filter is applied. example: HR Policy Agent + PlatformSkillSourcePreviewFile: + type: object + description: A supporting file bundled with a skill. + required: + - path + - content + properties: + path: + type: string + description: Relative path within the skill bundle. + content: + type: string + description: UTF-8 file content. + PlatformAgentSkill: + type: object + description: | + A skill defined inline in the agent. Reference a published skill through `dependencies` instead. + required: + - display_name + - main_content + properties: + display_name: + type: string + description: Human-readable skill name. + main_content: + type: string + description: Main skill content, inlined from `SKILL.md`. + files: + type: array + description: Additional files bundled in the skill folder. + items: + $ref: "#/components/schemas/PlatformSkillSourcePreviewFile" + PlatformAgentDependency: + type: object + description: A published artifact the agent references by platform ID. + required: + - id + - type + properties: + id: + type: string + description: | + ID of the referenced artifact: the `skill_id` of a published skill when `type` is SKILL, or the `agent_id` of a published agent when `type` is AGENT. + type: + type: string + description: Type of a published artifact referenced as a dependency. + enum: + - SKILL + - AGENT + x-enumDescriptions: + SKILL: A published skill. + AGENT: A published agent. Not valid for subagents. + x-speakeasy-enum-descriptions: + SKILL: A published skill. + AGENT: A published agent. Not valid for subagents. + PlatformAgentSelectedTool: + type: object + description: A tool selected from a tool provider. + required: + - display_name + properties: + display_name: + type: string + description: Name of the tool within its provider. + PlatformAgentToolset: + type: object + description: A tool provider and the subset of its tools available to the agent. + required: + - tool_provider_id + properties: + tool_provider_id: + type: string + description: ID of the tool provider, or `native` for built-in Glean tools. + selected_tools: + type: array + description: Tools from the provider that are exposed to the agent. + items: + $ref: "#/components/schemas/PlatformAgentSelectedTool" + customisation_data: + type: object + additionalProperties: false + description: Settings applied to every tool in this provider entry. + properties: + skip_confirmation: + type: boolean + description: | + Whether tools in this entry run without asking the user for confirmation. Defaults to false. + PlatformAgentGleanSearchConfig: + type: object + description: | + Glean Search configuration. When omitted, Glean Search is disabled for the agent. An empty object searches all company knowledge available to the invoking user. Populated lists restrict search to the union of the listed datasource instances and URLs. + properties: + knowledge_profile_id: + type: string + description: | + ID of a knowledge profile whose permissions Glean Search uses instead of the invoking user's permissions. + datasource_instances: + type: array + description: | + Datasource instance names that search is restricted to. Each name selects one instance, not every instance of a datasource type. + items: + type: string + description: | + Datasource instance name. The default instance of a datasource uses the datasource name, for example `confluence`. + urls: + type: array + description: | + Document or folder URLs that search is restricted to. Folder URLs include every document contained in the folder. + items: + type: string + description: Document or folder URL. + PlatformAgentLlmModel: + type: object + description: Agentic model the agent runs on and its reasoning effort. + properties: + model_set_id: + type: string + description: Agentic model set ID. When omitted, the tenant default is used. + mode: + type: string + description: Reasoning effort per turn. Defaults to ADVANCED. + enum: + - ADVANCED + - FAST + x-enumDescriptions: + ADVANCED: High reasoning effort. + FAST: Low reasoning effort for latency-sensitive, narrow tasks. + x-speakeasy-enum-descriptions: + ADVANCED: High reasoning effort. + FAST: Low reasoning effort for latency-sensitive, narrow tasks. + auto_upgrade: + type: boolean + description: | + Whether the agent follows model upgrades. When omitted, a model with a `model_set_id` is pinned, and a model without one follows the tenant default. + PlatformAgentServiceCredential: + type: object + description: A service credential the agent uses. + required: + - service_credential_id + properties: + service_credential_id: + type: string + description: ID of the service credential. + PlatformAgentBase: + type: object + description: Definition fields shared by agents and subagents. + required: + - name + properties: + name: + type: string + description: Human-readable name. + example: HR Policy Agent + description: + type: string + description: Description of the agent's purpose and behavior. + instructions: + type: string + description: System prompt the agent follows. + skills: + type: array + description: Skills defined inline. + items: + $ref: "#/components/schemas/PlatformAgentSkill" + dependencies: + type: array + description: | + Published artifacts referenced by platform ID. Their content is not inlined in `skills` or `subagents`. + items: + $ref: "#/components/schemas/PlatformAgentDependency" + tools: + type: array + description: Tool providers and the subset of their tools available to the agent. + items: + $ref: "#/components/schemas/PlatformAgentToolset" + glean_search_config: + $ref: "#/components/schemas/PlatformAgentGleanSearchConfig" + model: + $ref: "#/components/schemas/PlatformAgentLlmModel" + service_credentials: + type: array + description: Service credentials the agent uses to call tools. + items: + $ref: "#/components/schemas/PlatformAgentServiceCredential" PlatformAgentCapabilities: type: object additionalProperties: true @@ -9065,54 +9382,340 @@ components: ap.io.streaming: type: boolean description: Whether the agent supports streaming output. - PlatformAgent: + PlatformAgentSlackChannelMapping: type: object + description: A Slack channel the agent is mapped to. required: - - agent_id - - name - - capabilities + - channel_id properties: - agent_id: + channel_id: type: string - description: ID of the agent. - example: mho4lwzylcozgoc2 - name: + description: ID of the Slack channel. + auto_engage: + type: boolean + description: Whether the agent engages with messages without being mentioned. + PlatformAgentSlackChannel: + type: object + description: Slack deployment of the agent. + properties: + service_credential_id: type: string - description: Name of the agent. - example: HR Policy Agent - description: + description: ID of the service credential for the Slack app. + channel_mappings: + type: array + description: Slack channels the agent is mapped to. + items: + $ref: "#/components/schemas/PlatformAgentSlackChannelMapping" + engagement_filter_instructions: type: string - description: Description of the agent. - metadata: - type: object - description: Agent metadata. - additionalProperties: true - capabilities: - $ref: "#/components/schemas/PlatformAgentCapabilities" - PlatformAgentsSearchResponse: + description: Instructions that decide which messages the agent engages with. + allow_mentions_outside_channel_mappings: + type: boolean + description: Whether the agent responds to mentions in channels that are not mapped. + PlatformAgentChannels: + type: object + description: Messaging channels the agent is deployed to. Requires `use_agent_identity`. + properties: + slack: + $ref: "#/components/schemas/PlatformAgentSlackChannel" + PlatformSubagent: + description: | + An isolated execution unit that its parent agent dispatches work to. A subagent has no trigger, channels, or subagents of its own, and its dependencies may only reference published skills. + allOf: + - $ref: "#/components/schemas/PlatformAgentBase" + - type: object + properties: + subagent_id: + type: string + description: | + ID of the subagent, unique within its parent agent. It is not an agent ID and cannot be used with other Agents APIs. + PlatformAgentInputFieldOption: type: object + description: A choice of a SELECT input field. required: - - agents - - request_id + - value properties: - agents: - type: array - description: Agents matching the search request. - items: - $ref: "#/components/schemas/PlatformAgent" - request_id: + value: type: string - description: Platform-generated request ID for support correlation. - PlatformProblemDetailCode: - type: string - description: Stable machine-readable error code. - enum: - - invalid_request - - missing_required_field - - invalid_parameter - - unsupported_action_target - - invalid_cursor - - expired_cursor + description: Value substituted into the field's placeholder. + PlatformAgentInputField: + type: object + description: | + A typed input of the agent, referenced from the instructions as `[[display_name]]`. + required: + - display_name + - type + properties: + display_name: + type: string + description: Label of the field and its placeholder name in the instructions. Unique within the agent. + type: + type: string + description: Type of an agent input field. + enum: + - TEXT + - SELECT + - DATE + - DOCUMENT + x-enumDescriptions: + TEXT: Free-form text. + SELECT: One choice from the declared options. + DATE: Calendar date in `YYYY-MM-DD` format. + DOCUMENT: Glean file ID of an uploaded file. + x-speakeasy-enum-descriptions: + TEXT: Free-form text. + SELECT: One choice from the declared options. + DATE: Calendar date in `YYYY-MM-DD` format. + DOCUMENT: Glean file ID of an uploaded file. + description: + type: string + description: Helper text describing the field. + default_value: + type: string + description: | + Pre-filled value. For SELECT fields, one of the option values. For DATE fields, a `YYYY-MM-DD` date. + is_optional: + type: boolean + description: Whether the field accepts empty input. Defaults to false. + options: + type: array + description: Choices of a SELECT field. + items: + $ref: "#/components/schemas/PlatformAgentInputFieldOption" + PlatformAgentSchedule: + type: object + description: Wall-clock schedule for INPUT_FORM and CHAT_MESSAGE agents. + required: + - frequency + - timezone + properties: + frequency: + type: string + description: Five-field Unix cron expression, for example `0 9 * * 1-5`. + timezone: + type: string + description: IANA time zone name, for example `America/Los_Angeles`. + start_at: + type: string + format: date-time + description: | + ISO 8601 timestamp with an explicit offset before which the schedule stays dormant. + PlatformAgentPrompt: + type: object + description: A conversation starter whose template is sent as the first chat message. + required: + - display_name + - template + properties: + display_name: + type: string + description: Short title of the conversation starter. + template: + type: string + description: | + Chat message that starts the conversation. May contain `[[variable_name]]` placeholders. + PlatformAgentContentTriggerFilterOperator: + type: string + description: Operator of a content trigger filter. + enum: + - IS_ONE_OF + - IS_NOT_ONE_OF + - CONTAINS + - FIELD_CHANGED + x-enum-varnames: + - AgentContentTriggerFilterOperatorISONEOF + - AgentContentTriggerFilterOperatorISNOTONEOF + - AgentContentTriggerFilterOperatorCONTAINS + - AgentContentTriggerFilterOperatorFIELDCHANGED + x-enumDescriptions: + IS_ONE_OF: The field equals one of the values. + IS_NOT_ONE_OF: The field equals none of the values. Not valid for TITLE or CONTENT. + CONTAINS: The field contains one of the values. + FIELD_CHANGED: The field changed in the event. Not valid for TITLE or CONTENT. + x-speakeasy-enum-descriptions: + IS_ONE_OF: The field equals one of the values. + IS_NOT_ONE_OF: The field equals none of the values. Not valid for TITLE or CONTENT. + CONTAINS: The field contains one of the values. + FIELD_CHANGED: The field changed in the event. Not valid for TITLE or CONTENT. + PlatformAgentContentTriggerFilter: + type: object + additionalProperties: false + description: A filter on the document that fired a content trigger. Values are ORed. + required: + - field + - operator + properties: + field: + type: string + description: "`TITLE` or `CONTENT` for the document's title or body, or a facet key." + operator: + $ref: "#/components/schemas/PlatformAgentContentTriggerFilterOperator" + values: + type: array + description: Match values. Required except for FIELD_CHANGED. + items: + type: string + description: A match value. + PlatformAgentContentTrigger: + type: object + description: A subscribed document event and the filters that narrow it. + required: + - datasource + - template_id + properties: + datasource: + type: string + description: Event source in enum form, for example `JIRA`. + template_id: + type: string + description: Subscribed event identifier, for example `JIRA_TICKET_CREATED`. + document_type: + type: string + description: Document type the entry watches. + time_offset_seconds: + type: integer + format: int32 + description: | + Seconds before an event time carried in the document at which the agent runs. Pre-event triggers only. + filters: + type: array + description: | + Filters on the document that fired the event. Every filter must match for the entry to fire. Without filters, every event for this entry fires. + items: + $ref: "#/components/schemas/PlatformAgentContentTriggerFilter" + PlatformAgentTrigger: + type: object + description: How the agent is invoked. Applies to top-level agents only. + required: + - type + properties: + type: + type: string + description: Invocation mode of the agent. + enum: + - CHAT_MESSAGE + - INPUT_FORM + - CONTENT_TRIGGER + x-enum-varnames: + - AgentTriggerTypeCHATMESSAGE + - AgentTriggerTypeINPUTFORM + - AgentTriggerTypeCONTENTTRIGGER + x-enumDescriptions: + CHAT_MESSAGE: The user converses with the agent. + INPUT_FORM: The agent runs on typed input fields, or with no input when none are declared. + CONTENT_TRIGGER: The agent runs on a document event. + x-speakeasy-enum-descriptions: + CHAT_MESSAGE: The user converses with the agent. + INPUT_FORM: The agent runs on typed input fields, or with no input when none are declared. + CONTENT_TRIGGER: The agent runs on a document event. + input_fields: + type: array + description: | + Typed inputs collected when the agent is invoked. Valid for INPUT_FORM and CONTENT_TRIGGER. An INPUT_FORM trigger without input fields runs with no input. + items: + $ref: "#/components/schemas/PlatformAgentInputField" + schedule: + $ref: "#/components/schemas/PlatformAgentSchedule" + prompts: + type: array + description: Conversation starters. Valid only for CHAT_MESSAGE. + items: + $ref: "#/components/schemas/PlatformAgentPrompt" + content: + type: object + description: Document events that run a CONTENT_TRIGGER agent. + required: + - triggers + properties: + triggers: + type: array + description: Event subscriptions. The agent runs when any entry matches. + items: + $ref: "#/components/schemas/PlatformAgentContentTrigger" + PlatformPersonReference: + type: object + description: A lightweight reference to a person, used where a payload merely points at someone. + required: + - name + properties: + id: + type: string + description: Opaque Glean person ID. + name: + type: string + description: Display name. + PlatformAgent: + description: An agent available to the authenticated user. + allOf: + - $ref: "#/components/schemas/PlatformAgentBase" + - type: object + required: + - agent_id + - capabilities + properties: + agent_id: + type: string + description: ID of the agent. + example: ef33aecf52c142a6873adf76037b642e + metadata: + type: object + description: Agent metadata. + additionalProperties: true + capabilities: + $ref: "#/components/schemas/PlatformAgentCapabilities" + use_agent_identity: + type: boolean + description: | + Whether the agent acts with its own identity instead of the invoking user's. Cannot be changed after the agent is created. + channels: + $ref: "#/components/schemas/PlatformAgentChannels" + subagents: + type: array + description: | + Subagents the agent dispatches work to. Subagents cannot contain subagents. + items: + $ref: "#/components/schemas/PlatformSubagent" + trigger: + $ref: "#/components/schemas/PlatformAgentTrigger" + created_by: + $ref: "#/components/schemas/PlatformPersonReference" + description: Person who created the agent. Omitted when the agent hides attribution. + updated_by: + $ref: "#/components/schemas/PlatformPersonReference" + description: | + Person who last updated the agent. Omitted when the agent hides attribution. + created_at: + type: string + format: date-time + description: Time the agent was created. + updated_at: + type: string + format: date-time + description: Time the agent was last updated. + PlatformAgentsSearchResponse: + type: object + required: + - agents + - request_id + properties: + agents: + type: array + description: Agents matching the search request. + items: + $ref: "#/components/schemas/PlatformAgent" + request_id: + type: string + description: Platform-generated request ID for support correlation. + PlatformProblemDetailCode: + type: string + description: Stable machine-readable error code. + enum: + - invalid_request + - missing_required_field + - invalid_parameter + - unsupported_action_target + - invalid_cursor + - expired_cursor - invalid_filter - invalid_datasource - authentication_required @@ -10230,18 +10833,6 @@ components: sync_error: type: string description: Human-readable sync failure reason, present only when sync_status is SYNC_FAILED. - PlatformPersonReference: - type: object - description: A lightweight reference to a person, used where a payload merely points at someone. - required: - - name - properties: - id: - type: string - description: Opaque Glean person ID. - name: - type: string - description: Display name. PlatformSkill: type: object required: @@ -10445,18 +11036,6 @@ components: type: boolean default: false description: Whether to stream repository scan progress using server-sent events. - PlatformSkillSourcePreviewFile: - type: object - required: - - path - - content - properties: - path: - type: string - description: Relative path within the skill bundle. - content: - type: string - description: UTF-8 file content. PlatformSkillSourcePreview: type: object required: @@ -11802,6 +12381,431 @@ components: request_id: type: string description: Request identifier for correlating this response. + PlatformUsageSearchTimeRange: + type: object + additionalProperties: false + description: | + UTC midnight interval, end exclusive. A new search starts no earlier than the UTC day 90 days before the request; an earlier start is 400 invalid_parameter. Cursor pages keep the bound their first page passed. NONE and MONTH allow at most 12 calendar months; DAY and WEEK allow 180 days. USER_ID grouping with DAY allows 31 days. + required: + - start + - end + properties: + start: + type: string + format: date-time + description: | + Inclusive UTC midnight boundary, no earlier than midnight of the UTC day that contains the request time minus 90 days. + end: + type: string + format: date-time + description: Exclusive UTC midnight boundary, strictly after start. + allOf: + - $ref: "#/components/schemas/PlatformTimeRange" + PlatformUsageSearchGranularity: + type: string + description: NONE omits periods; DAY, Monday-based WEEK, and MONTH are clipped to the interval. + default: NONE + enum: + - NONE + - DAY + - WEEK + - MONTH + PlatformUsageDimension: + type: string + description: | + Grouping key, named for the response dimension it fills (MODEL_ID fills model_id). USER_ID is admin-only. DEPARTMENT_NAME and GROUP_ID are admin-only and deferred. Their well-formed personal requests return 403, not 400. + enum: + - PRODUCT + - FEATURE + - MODEL_ID + - CLIENT_ID + - AGENT_ID + - USER_ID + - DEPARTMENT_NAME + - GROUP_ID + x-enum-varnames: + - UsageDimensionProduct + - UsageDimensionFeature + - UsageDimensionModelId + - UsageDimensionClientId + - UsageDimensionAgentId + - UsageDimensionUserId + - UsageDimensionDepartmentName + - UsageDimensionGroupId + PlatformUsageSearchFilter: + type: object + additionalProperties: false + description: Exact, case-sensitive filter. Values OR together; filters AND together. Null cannot be selected. + required: + - field + - values + properties: + field: + type: string + minLength: 1 + description: | + Allowlist is product, feature, model_id, client_id, agent_id, user_id, department_name, group_id. Unknown names return invalid_filter. user_id and agent_id also select the scope (see the operation); department_name and group_id are admin-only and deferred. + values: + type: array + minItems: 1 + maxItems: 100 + description: | + Nonblank exact values with no trimming. client_id follows Usage limit target client_id validation: empty, whitespace-only, control, and synthetic IDs are invalid; unknown IDs are valid. PRODUCT and FEATURE match normalized taxonomy. + items: + type: string + minLength: 1 + maxLength: 512 + description: Exact value to match. + operator: + allOf: + - $ref: "#/components/schemas/PlatformFilterOperator" + enum: + - EQUALS + - NOT_EQUALS + default: EQUALS + description: EQUALS (default) or NOT_EQUALS only; range operators are invalid. + PlatformUsageSearchSort: + type: object + additionalProperties: false + description: | + Sort without converting units. Missing spend in the selected unit sorts last in either direction. Without unit, compare USD then CREDITS. Ties use dimension values ASC (null first), then period.start ASC. + required: + - field + - direction + properties: + field: + type: string + enum: + - USED + - PERIOD_START + description: PERIOD_START requires time granularity. + direction: + type: string + enum: + - ASC + - DESC + description: Sort direction; required whenever sort is supplied. + unit: + $ref: "#/components/schemas/PlatformUsageUnit" + description: Valid only with USED; omission compares USD first, then CREDITS. + PlatformSearchCallerUsageRequest: + type: object + description: | + Measured-usage query. user_id and agent_id filters select the scope; there is no target field. Structural principal acceptance does not grant permission; forbidden personal requests return 403. + additionalProperties: false + required: + - time_range + properties: + time_range: + $ref: "#/components/schemas/PlatformUsageSearchTimeRange" + description: | + UTC midnight bounds, with an exclusive end. Search requires an explicit range because an implicit default would hide an expensive warehouse scan. + granularity: + $ref: "#/components/schemas/PlatformUsageSearchGranularity" + description: Period size; defaults to NONE. + group_by: + type: array + maxItems: 5 + uniqueItems: true + description: Up to five unique dimensions, at most one principal dimension; principals require the admin route. + items: + $ref: "#/components/schemas/PlatformUsageDimension" + filters: + type: array + maxItems: 20 + description: Filters AND together; values within each filter OR together. + items: + $ref: "#/components/schemas/PlatformUsageSearchFilter" + metrics: + type: array + uniqueItems: true + description: USED is always returned; EVENT_COUNT sums raw billing events in both units. + items: + type: string + description: Optional measured-usage metric. + enum: + - USED + - EVENT_COUNT + sort: + $ref: "#/components/schemas/PlatformUsageSearchSort" + description: | + When omitted, defaults to PERIOD_START ASC for time series, otherwise USED DESC. When supplied, field and direction are both required. + include: + type: array + uniqueItems: true + description: Add page-only visible labels or the complete-query bucket count. + items: + type: string + description: Opt-in enrichment. + enum: + - DISPLAY_NAMES + - TOTAL_COUNT + page_size: + type: integer + minimum: 1 + maximum: 1000 + default: 100 + description: Maximum buckets per page; defaults to 100, maximum 1,000. + cursor: + type: string + minLength: 1 + maxLength: 512 + description: | + Opaque cursor from a prior page. Resend the same query and page size; it is bound to the route, caller, tenant, filter-derived scope, and snapshot. Missing retained state or a snapshot older than 24 hours is expired_cursor. + example: "" + PlatformUsageSearchDimensions: + type: object + additionalProperties: false + x-go-type: map[string]*string + description: | + A property is present only when its field is grouped. Absent attribution is an explicit null, not omitted. Raw AGENT scopes use best-effort recorded top-agent/root attribution across same-run AGENT/LLM_CALL events, and USER scopes use the same attribution. Current hierarchy is never used to reparent historical rows; missing complete run lineage is not reconstructed. + properties: + product: + type: + - string + - "null" + description: | + Server-owned product taxonomy: ASSISTANT (including LLM_CALL), AGENT, DESKTOP_APP (from GLEAN_DESKTOP_APP), API, MCP, AI_GATEWAY (from LLM_GATEWAY), or OTHER for unknown nonempty event types. Values can be added. + feature: + type: + - string + - "null" + description: | + Server-owned feature taxonomy: ARTIFACT_AUDIO, ASSISTANT, DEEP_RESEARCH, DICTATION, ENGRAM_MEMORY, GLEAN_CODE, GLEAN_IN_SLACK, GLEAN_IN_TEAMS, IMAGE_GENERATION, INDEPENDENT_AGENT_MEMORY, MEETING_NOTES (from AUDIO_TRANSCRIPTION), PRESENTATION_GENERATION, PRISM_PAID, REALTIME_VOICE (from VOICE_TRANSCRIPTION), SKILL_SCAN, API, SEARCH, or OTHER for unknown nonempty subtypes. API uses the recorded entity when subtype is absent. Values can be added. + model_id: + type: + - string + - "null" + description: Recorded model enum ID. + client_id: + type: + - string + - "null" + description: | + Recorded spend client ID. Usage with no client and Glean Desktop gateway usage are glean. + agent_id: + type: + - string + - "null" + description: Recorded top-level agent ID. + user_id: + type: + - string + - "null" + description: Canonical user ID; admin route only. + department_name: + type: + - string + - "null" + description: Deferred; not returned yet. + group_id: + type: + - string + - "null" + description: Deferred; not returned yet. + PlatformUsageUsedValue: + type: object + additionalProperties: false + description: Accrued usage in one unit, without combining or converting units. + required: + - used + - unit + properties: + used: + type: string + minLength: 1 + maxLength: 24 + pattern: ^(0|[1-9][0-9]*)(\.[0-9]{1,6})?$ + description: Nonnegative decimal usage with at most six fractional digits. + unit: + $ref: "#/components/schemas/PlatformUsageUnit" + description: Unit of accrued usage. + PlatformUsageSearchBucket: + type: object + additionalProperties: false + description: One observed period and grouped-dimension combination; empty buckets are omitted. + required: + - dimensions + - used_by_unit + properties: + period: + $ref: "#/components/schemas/PlatformUsageSearchTimeRange" + description: Clipped bucket interval; omitted for NONE. + dimensions: + $ref: "#/components/schemas/PlatformUsageSearchDimensions" + description: Grouped values for this bucket. + used_by_unit: + type: array + description: Observed spend units only, ordered USD then CREDITS; never combined or converted. + items: + $ref: "#/components/schemas/PlatformUsageUsedValue" + event_count: + type: integer + format: int64 + minimum: 0 + description: Raw billing events across both units; present only when requested. + PlatformUsageTaxonomyLabel: + type: object + additionalProperties: false + description: Display name of a product or feature value. + required: + - display_name + properties: + display_name: + type: string + description: Display name. + PlatformUsageModelLabel: + type: object + additionalProperties: false + description: Current model metadata. + required: + - display_name + properties: + display_name: + type: string + description: Current display name. + creator: + type: string + description: Model creator, when known. + PlatformUsageClientLabel: + type: object + additionalProperties: false + description: Current spend client metadata. + required: + - display_name + properties: + display_name: + type: string + description: Current application name; Glean for glean. + PlatformUsageAgentLabel: + type: object + additionalProperties: false + description: Current metadata of an agent the caller can read. + required: + - display_name + properties: + display_name: + type: string + description: Current agent name. + PlatformUsageUserLabel: + type: object + additionalProperties: false + description: Current user metadata from the People directory. + required: + - display_name + properties: + display_name: + type: string + description: Current display name. + email: + type: string + description: User email, when permitted and known. + PlatformUsageSearchLabels: + type: object + additionalProperties: false + description: | + Current visible metadata for grouped IDs on this page, one lookup per field. Missing, deleted, disabled, or hidden resources omit labels, not usage. + properties: + product: + type: object + description: Product value to label. + additionalProperties: + $ref: "#/components/schemas/PlatformUsageTaxonomyLabel" + feature: + type: object + description: Feature value to label. + additionalProperties: + $ref: "#/components/schemas/PlatformUsageTaxonomyLabel" + model_id: + type: object + description: Model ID to label. + additionalProperties: + $ref: "#/components/schemas/PlatformUsageModelLabel" + client_id: + type: object + description: Spend client ID to label. + additionalProperties: + $ref: "#/components/schemas/PlatformUsageClientLabel" + agent_id: + type: object + description: Agent ID to label. + additionalProperties: + $ref: "#/components/schemas/PlatformUsageAgentLabel" + user_id: + type: object + description: User ID to label. + additionalProperties: + $ref: "#/components/schemas/PlatformUsageUserLabel" + PlatformSearchUsageResponse: + type: object + additionalProperties: false + description: | + Measured spend observed in one pinned stored snapshot, not live counters, certified export completeness, verified absent usage or a final invoice. Source freshness and historical coverage are unknown when unsupported. Legacy rows without a unit use the app's current-plan fallback frozen at read selection; this is denomination inference, not certified historical denomination. + required: + - target + - results + - totals + - time_range + - data_updated_at + - earliest_available_at + - has_more + - next_cursor + - request_id + properties: + target: + $ref: "#/components/schemas/PlatformUsageTarget" + description: | + Scope measured for this query, derived from its user_id and agent_id filters: ORGANIZATION, USER with canonical user_id and known email, or AGENT. + results: + type: array + description: Requested page of observed buckets, at most page_size. + items: + $ref: "#/components/schemas/PlatformUsageSearchBucket" + totals: + type: array + description: Totals over all observed stored rows matching this query across every page; USD then CREDITS, observed units only. + items: + $ref: "#/components/schemas/PlatformUsageUsedValue" + total_count: + type: integer + minimum: 0 + maximum: 100000 + description: Bucket count across every page; present only with TOTAL_COUNT. + time_range: + $ref: "#/components/schemas/PlatformUsageSearchTimeRange" + description: Resolved inclusive-start, exclusive-end UTC interval. + data_updated_at: + type: + - string + - "null" + format: date-time + description: Last completed source refresh when supported, otherwise null; read selection time is not source freshness. + earliest_available_at: + type: + - string + - "null" + format: date-time + description: Earliest historical coverage when supported for this scope, otherwise null; an empty result does not verify absent usage. + labels: + $ref: "#/components/schemas/PlatformUsageSearchLabels" + description: | + With DISPLAY_NAMES, labels for grouped IDs on this page only, hydrated outside the shared measured-data cache. + has_more: + type: boolean + description: Whether another page exists in the pinned snapshot. + next_cursor: + type: + - string + - "null" + description: Opaque continuation cursor, or null when has_more is false. + request_id: + type: string + description: Request identifier for troubleshooting. + PlatformSearchAdminUsageRequest: + description: | + Administrative measured-usage query, the same shape as personal search. Without a principal filter it measures the organization. Requires billing read. + allOf: + - $ref: "#/components/schemas/PlatformSearchCallerUsageRequest" PlatformEvaluateUsageLimitRequest: type: object additionalProperties: false @@ -12018,23 +13022,6 @@ components: source: $ref: "#/components/schemas/PlatformUsagePolicySourceTarget" description: Configured policy supplying this restriction. - PlatformUsageUsedValue: - type: object - additionalProperties: false - description: Accrued usage in one unit, without combining or converting units. - required: - - used - - unit - properties: - used: - type: string - minLength: 1 - maxLength: 24 - pattern: ^(0|[1-9][0-9]*)(\.[0-9]{1,6})?$ - description: Nonnegative decimal usage with at most six fractional digits. - unit: - $ref: "#/components/schemas/PlatformUsageUnit" - description: Unit of accrued usage. PlatformUsageAggregateUsage: type: object additionalProperties: false @@ -20567,7 +21554,8 @@ components: description: Unix timestamp of the last update for the insights data in the response. totalSignupsWeekAgo: type: integer - description: Number of current employees in the specified departments who had signed up 7 days before the latest day of insights data. Compare with totalSignups for week-over-week signup change. + description: Number of current employees in the specified departments who had signed up 7 days before the latest day of insights data. Compare with totalSignups for week-over-week signup change. Included even when zero. + x-includeEmpty: true searchSessionSatisfaction: type: number format: float diff --git a/.speakeasy/tests.arazzo.yaml b/.speakeasy/tests.arazzo.yaml index 5d0dfb60..a2c92b84 100644 --- a/.speakeasy/tests.arazzo.yaml +++ b/.speakeasy/tests.arazzo.yaml @@ -164602,7 +164602,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - {"agent":{"agent_id":"mho4lwzylcozgoc2","name":"HR Policy Agent","capabilities":{}},"request_id":""} + {"agent":{"name":"HR Policy Agent","agent_id":"mho4lwzylcozgoc2","capabilities":{},"subagents":[{"name":"HR Policy Agent"}]},"request_id":""} type: simple x-speakeasy-test-group: agents x-speakeasy-test-rebuild: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index c7619963..1217972a 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.810.0 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:0ce4e9b2b8560aa2004ea154dba75c6bb685cccc1fc5dd9a0b10c8825182e0b5 - sourceBlobDigest: sha256:4f89567ad6174b01fa95ea0e4c705bcfe303ad158f8935313105767ec9cd3492 + sourceRevisionDigest: sha256:84a05dcb86918661f57b7d0e5069f3803f1aef3b43cfb1e78b2ad8ed8b8ca1ee + sourceBlobDigest: sha256:07098f3955607bd1f6f14da07359797de542881ca1deb3994198b6da9709cecf tags: - latest petstore-oas: @@ -17,10 +17,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:0ce4e9b2b8560aa2004ea154dba75c6bb685cccc1fc5dd9a0b10c8825182e0b5 - sourceBlobDigest: sha256:4f89567ad6174b01fa95ea0e4c705bcfe303ad158f8935313105767ec9cd3492 + sourceRevisionDigest: sha256:84a05dcb86918661f57b7d0e5069f3803f1aef3b43cfb1e78b2ad8ed8b8ca1ee + sourceBlobDigest: sha256:07098f3955607bd1f6f14da07359797de542881ca1deb3994198b6da9709cecf codeSamplesNamespace: glean-api-specs-go-code-samples - codeSamplesRevisionDigest: sha256:76f0de87055ebaf36603147ff3188a4d7d7aa32b6825ad830ed5dd43266cd142 + codeSamplesRevisionDigest: sha256:c25e3379d4fe4e868481df57627504433d38566797ba72296106387a1c2ba9ac petstore: source: petstore-oas sourceNamespace: petstore-oas diff --git a/RELEASES.md b/RELEASES.md index b03992bc..a1df0ba6 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1108,4 +1108,14 @@ Based on: ### Generated - [go v0.17.8] . ### Releases -- [Go v0.17.8] https://github.com/gleanwork/api-client-go/releases/tag/v0.17.8 - . \ No newline at end of file +- [Go v0.17.8] https://github.com/gleanwork/api-client-go/releases/tag/v0.17.8 - . + +## 2026-11-19 10:34:36 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.810.0 (2.961.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.17.9] . +### Releases +- [Go v0.17.9] https://github.com/gleanwork/api-client-go/releases/tag/v0.17.9 - . \ No newline at end of file diff --git a/docs/models/components/agentconfig.md b/docs/models/components/agentconfig.md index 24542b4d..95c7cd7d 100644 --- a/docs/models/components/agentconfig.md +++ b/docs/models/components/agentconfig.md @@ -9,5 +9,5 @@ Describes the agent that executes the request. | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | | `Agent` | [*components.AgentEnum](../../models/components/agentenum.md) | :heavy_minus_sign: | Name of the agent. | | `ToolSets` | [*components.ToolSets](../../models/components/toolsets.md) | :heavy_minus_sign: | The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values | -| `Mode` | [*components.Mode](../../models/components/mode.md) | :heavy_minus_sign: | Top level modes to run GleanChat in. | +| `Mode` | [*components.AgentConfigMode](../../models/components/agentconfigmode.md) | :heavy_minus_sign: | Top level modes to run GleanChat in. | | `UseImageGeneration` | `*bool` | :heavy_minus_sign: | Whether the agent should create an image. | \ No newline at end of file diff --git a/docs/models/components/agentconfigmode.md b/docs/models/components/agentconfigmode.md new file mode 100644 index 00000000..ab2c3b72 --- /dev/null +++ b/docs/models/components/agentconfigmode.md @@ -0,0 +1,24 @@ +# AgentConfigMode + +Top level modes to run GleanChat in. + +## Example Usage + +```go +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +value := components.AgentConfigModeDefault + +// Open enum: custom values can be created with a direct type cast +custom := components.AgentConfigMode("custom_value") +``` + + +## Values + +| Name | Value | +| ------------------------ | ------------------------ | +| `AgentConfigModeDefault` | DEFAULT | +| `AgentConfigModeQuick` | QUICK | \ No newline at end of file diff --git a/docs/models/components/content.md b/docs/models/components/content.md new file mode 100644 index 00000000..e4539ba5 --- /dev/null +++ b/docs/models/components/content.md @@ -0,0 +1,10 @@ +# Content + +Document events that run a CONTENT_TRIGGER agent. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `Triggers` | [][components.PlatformAgentContentTrigger](../../models/components/platformagentcontenttrigger.md) | :heavy_check_mark: | Event subscriptions. The agent runs when any entry matches. | \ No newline at end of file diff --git a/docs/models/components/customisationdata.md b/docs/models/components/customisationdata.md new file mode 100644 index 00000000..682cae01 --- /dev/null +++ b/docs/models/components/customisationdata.md @@ -0,0 +1,10 @@ +# CustomisationData + +Settings applied to every tool in this provider entry. + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `SkipConfirmation` | `*bool` | :heavy_minus_sign: | Whether tools in this entry run without asking the user for confirmation. Defaults to false.
| \ No newline at end of file diff --git a/docs/models/components/direction.md b/docs/models/components/direction.md deleted file mode 100644 index 28dcd43e..00000000 --- a/docs/models/components/direction.md +++ /dev/null @@ -1,21 +0,0 @@ -# Direction - -The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. - -## Example Usage - -```go -import ( - "github.com/gleanwork/api-client-go/models/components" -) - -value := components.DirectionOlder -``` - - -## Values - -| Name | Value | -| ---------------- | ---------------- | -| `DirectionOlder` | OLDER | -| `DirectionNewer` | NEWER | \ No newline at end of file diff --git a/docs/models/components/insightsoverviewresponse.md b/docs/models/components/insightsoverviewresponse.md index d25f98bf..29108185 100644 --- a/docs/models/components/insightsoverviewresponse.md +++ b/docs/models/components/insightsoverviewresponse.md @@ -19,7 +19,7 @@ | `ExtensionSummary` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A | | `UgcSummary` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A | | `LastUpdatedTs` | `*int64` | :heavy_minus_sign: | Unix timestamp of the last update for the insights data in the response. | -| `TotalSignupsWeekAgo` | `*int64` | :heavy_minus_sign: | Number of current employees in the specified departments who had signed up 7 days before the latest day of insights data. Compare with totalSignups for week-over-week signup change. | +| `TotalSignupsWeekAgo` | `*int64` | :heavy_minus_sign: | Number of current employees in the specified departments who had signed up 7 days before the latest day of insights data. Compare with totalSignups for week-over-week signup change. Included even when zero. | | ~~`SearchSessionSatisfaction`~~ | `*float32` | :heavy_minus_sign: | :warning: **DEPRECATED**: Deprecated on 2026-05-13, removal scheduled for 2027-01-15: This property is no longer supported. Please contact Support for alternatives..

Search session satisfaction rate, over the specified time period in the specified departments. | | `MonthlyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | | `WeeklyActiveUserTimeseries` | [*components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/components/messagesrequest.md b/docs/models/components/messagesrequest.md index c3941f0a..ae586818 100644 --- a/docs/models/components/messagesrequest.md +++ b/docs/models/components/messagesrequest.md @@ -8,7 +8,7 @@ | `IDType` | [components.IDType](../../models/components/idtype.md) | :heavy_check_mark: | Type of the id in the incoming request. | | `ID` | `string` | :heavy_check_mark: | ID corresponding to the requested idType. Note that channel and threads are represented by the underlying datasource's ID and conversations are represented by their document's ID. | | `WorkspaceID` | `*string` | :heavy_minus_sign: | Id for the for the workspace in case of multiple workspaces. | -| `Direction` | [*components.Direction](../../models/components/direction.md) | :heavy_minus_sign: | The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. | +| `Direction` | [*components.MessagesRequestDirection](../../models/components/messagesrequestdirection.md) | :heavy_minus_sign: | The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. | | `TimestampMillis` | `*int64` | :heavy_minus_sign: | Timestamp in millis of the reference message. Only applicable when using a message_id. | | `IncludeRootMessage` | `*bool` | :heavy_minus_sign: | Whether to include root message in response. | | `Datasource` | [components.Datasource](../../models/components/datasource.md) | :heavy_check_mark: | The type of the data source. | diff --git a/docs/models/components/messagesrequestdirection.md b/docs/models/components/messagesrequestdirection.md new file mode 100644 index 00000000..efe42769 --- /dev/null +++ b/docs/models/components/messagesrequestdirection.md @@ -0,0 +1,21 @@ +# MessagesRequestDirection + +The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. + +## Example Usage + +```go +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +value := components.MessagesRequestDirectionOlder +``` + + +## Values + +| Name | Value | +| ------------------------------- | ------------------------------- | +| `MessagesRequestDirectionOlder` | OLDER | +| `MessagesRequestDirectionNewer` | NEWER | \ No newline at end of file diff --git a/docs/models/components/mode.md b/docs/models/components/mode.md deleted file mode 100644 index 83dbfe6a..00000000 --- a/docs/models/components/mode.md +++ /dev/null @@ -1,24 +0,0 @@ -# Mode - -Top level modes to run GleanChat in. - -## Example Usage - -```go -import ( - "github.com/gleanwork/api-client-go/models/components" -) - -value := components.ModeDefault - -// Open enum: custom values can be created with a direct type cast -custom := components.Mode("custom_value") -``` - - -## Values - -| Name | Value | -| ------------- | ------------- | -| `ModeDefault` | DEFAULT | -| `ModeQuick` | QUICK | \ No newline at end of file diff --git a/docs/models/components/platformagent.md b/docs/models/components/platformagent.md index fa458019..28262ac6 100644 --- a/docs/models/components/platformagent.md +++ b/docs/models/components/platformagent.md @@ -1,12 +1,29 @@ # PlatformAgent +An agent available to the authenticated user. + ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `AgentID` | `string` | :heavy_check_mark: | ID of the agent. | mho4lwzylcozgoc2 | -| `Name` | `string` | :heavy_check_mark: | Name of the agent. | HR Policy Agent | -| `Description` | `*string` | :heavy_minus_sign: | Description of the agent. | | -| `Metadata` | map[string]`any` | :heavy_minus_sign: | Agent metadata. | | -| `Capabilities` | [components.PlatformAgentCapabilities](../../models/components/platformagentcapabilities.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Name` | `string` | :heavy_check_mark: | Human-readable name. | HR Policy Agent | +| `Description` | `*string` | :heavy_minus_sign: | Description of the agent's purpose and behavior. | | +| `Instructions` | `*string` | :heavy_minus_sign: | System prompt the agent follows. | | +| `Skills` | [][components.PlatformAgentSkill](../../models/components/platformagentskill.md) | :heavy_minus_sign: | Skills defined inline. | | +| `Dependencies` | [][components.PlatformAgentDependency](../../models/components/platformagentdependency.md) | :heavy_minus_sign: | Published artifacts referenced by platform ID. Their content is not inlined in `skills` or `subagents`.
| | +| `Tools` | [][components.PlatformAgentToolset](../../models/components/platformagenttoolset.md) | :heavy_minus_sign: | Tool providers and the subset of their tools available to the agent. | | +| `GleanSearchConfig` | [*components.PlatformAgentGleanSearchConfig](../../models/components/platformagentgleansearchconfig.md) | :heavy_minus_sign: | Glean Search configuration. When omitted, Glean Search is disabled for the agent. An empty object searches all company knowledge available to the invoking user. Populated lists restrict search to the union of the listed datasource instances and URLs.
| | +| `Model` | [*components.PlatformAgentLlmModel](../../models/components/platformagentllmmodel.md) | :heavy_minus_sign: | Agentic model the agent runs on and its reasoning effort. | | +| `ServiceCredentials` | [][components.PlatformAgentServiceCredential](../../models/components/platformagentservicecredential.md) | :heavy_minus_sign: | Service credentials the agent uses to call tools. | | +| `AgentID` | `string` | :heavy_check_mark: | ID of the agent. | ef33aecf52c142a6873adf76037b642e | +| `Metadata` | map[string]`any` | :heavy_minus_sign: | Agent metadata. | | +| `Capabilities` | [components.PlatformAgentCapabilities](../../models/components/platformagentcapabilities.md) | :heavy_check_mark: | N/A | | +| `UseAgentIdentity` | `*bool` | :heavy_minus_sign: | Whether the agent acts with its own identity instead of the invoking user's. Cannot be changed after the agent is created.
| | +| `Channels` | [*components.PlatformAgentChannels](../../models/components/platformagentchannels.md) | :heavy_minus_sign: | Messaging channels the agent is deployed to. Requires `use_agent_identity`. | | +| `Subagents` | [][components.PlatformSubagent](../../models/components/platformsubagent.md) | :heavy_minus_sign: | Subagents the agent dispatches work to. Subagents cannot contain subagents.
| | +| `Trigger` | [*components.PlatformAgentTrigger](../../models/components/platformagenttrigger.md) | :heavy_minus_sign: | How the agent is invoked. Applies to top-level agents only. | | +| `CreatedBy` | [*components.PlatformPersonReference](../../models/components/platformpersonreference.md) | :heavy_minus_sign: | A lightweight reference to a person, used where a payload merely points at someone. | | +| `UpdatedBy` | [*components.PlatformPersonReference](../../models/components/platformpersonreference.md) | :heavy_minus_sign: | A lightweight reference to a person, used where a payload merely points at someone. | | +| `CreatedAt` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | Time the agent was created. | | +| `UpdatedAt` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | Time the agent was last updated. | | \ No newline at end of file diff --git a/docs/models/components/platformagentchannels.md b/docs/models/components/platformagentchannels.md new file mode 100644 index 00000000..24048b40 --- /dev/null +++ b/docs/models/components/platformagentchannels.md @@ -0,0 +1,10 @@ +# PlatformAgentChannels + +Messaging channels the agent is deployed to. Requires `use_agent_identity`. + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `Slack` | [*components.PlatformAgentSlackChannel](../../models/components/platformagentslackchannel.md) | :heavy_minus_sign: | Slack deployment of the agent. | \ No newline at end of file diff --git a/docs/models/components/platformagentcontenttrigger.md b/docs/models/components/platformagentcontenttrigger.md new file mode 100644 index 00000000..9785b370 --- /dev/null +++ b/docs/models/components/platformagentcontenttrigger.md @@ -0,0 +1,14 @@ +# PlatformAgentContentTrigger + +A subscribed document event and the filters that narrow it. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| `Datasource` | `string` | :heavy_check_mark: | Event source in enum form, for example `JIRA`. | +| `TemplateID` | `string` | :heavy_check_mark: | Subscribed event identifier, for example `JIRA_TICKET_CREATED`. | +| `DocumentType` | `*string` | :heavy_minus_sign: | Document type the entry watches. | +| `TimeOffsetSeconds` | `*int` | :heavy_minus_sign: | Seconds before an event time carried in the document at which the agent runs. Pre-event triggers only.
| +| `Filters` | [][components.PlatformAgentContentTriggerFilter](../../models/components/platformagentcontenttriggerfilter.md) | :heavy_minus_sign: | Filters on the document that fired the event. Every filter must match for the entry to fire. Without filters, every event for this entry fires.
| \ No newline at end of file diff --git a/docs/models/components/platformagentcontenttriggerfilter.md b/docs/models/components/platformagentcontenttriggerfilter.md new file mode 100644 index 00000000..85ef9b8c --- /dev/null +++ b/docs/models/components/platformagentcontenttriggerfilter.md @@ -0,0 +1,12 @@ +# PlatformAgentContentTriggerFilter + +A filter on the document that fired a content trigger. Values are ORed. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `Field` | `string` | :heavy_check_mark: | `TITLE` or `CONTENT` for the document's title or body, or a facet key. | +| `Operator` | [components.PlatformAgentContentTriggerFilterOperator](../../models/components/platformagentcontenttriggerfilteroperator.md) | :heavy_check_mark: | Operator of a content trigger filter. | +| `Values` | []`string` | :heavy_minus_sign: | Match values. Required except for FIELD_CHANGED. | \ No newline at end of file diff --git a/docs/models/components/platformagentcontenttriggerfilteroperator.md b/docs/models/components/platformagentcontenttriggerfilteroperator.md new file mode 100644 index 00000000..b272a6b8 --- /dev/null +++ b/docs/models/components/platformagentcontenttriggerfilteroperator.md @@ -0,0 +1,26 @@ +# PlatformAgentContentTriggerFilterOperator + +Operator of a content trigger filter. + +## Example Usage + +```go +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +value := components.PlatformAgentContentTriggerFilterOperatorIsOneOf + +// Open enum: custom values can be created with a direct type cast +custom := components.PlatformAgentContentTriggerFilterOperator("custom_value") +``` + + +## Values + +| Name | Value | +| ------------------------------------------------------- | ------------------------------------------------------- | +| `PlatformAgentContentTriggerFilterOperatorIsOneOf` | IS_ONE_OF | +| `PlatformAgentContentTriggerFilterOperatorIsNotOneOf` | IS_NOT_ONE_OF | +| `PlatformAgentContentTriggerFilterOperatorContains` | CONTAINS | +| `PlatformAgentContentTriggerFilterOperatorFieldChanged` | FIELD_CHANGED | \ No newline at end of file diff --git a/docs/models/components/platformagentdependency.md b/docs/models/components/platformagentdependency.md new file mode 100644 index 00000000..af426f1c --- /dev/null +++ b/docs/models/components/platformagentdependency.md @@ -0,0 +1,11 @@ +# PlatformAgentDependency + +A published artifact the agent references by platform ID. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `ID` | `string` | :heavy_check_mark: | ID of the referenced artifact: the `skill_id` of a published skill when `type` is SKILL, or the `agent_id` of a published agent when `type` is AGENT.
| +| `Type` | [components.PlatformAgentDependencyType](../../models/components/platformagentdependencytype.md) | :heavy_check_mark: | Type of a published artifact referenced as a dependency. | \ No newline at end of file diff --git a/docs/models/components/platformagentdependencytype.md b/docs/models/components/platformagentdependencytype.md new file mode 100644 index 00000000..fc5571c8 --- /dev/null +++ b/docs/models/components/platformagentdependencytype.md @@ -0,0 +1,24 @@ +# PlatformAgentDependencyType + +Type of a published artifact referenced as a dependency. + +## Example Usage + +```go +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +value := components.PlatformAgentDependencyTypeSkill + +// Open enum: custom values can be created with a direct type cast +custom := components.PlatformAgentDependencyType("custom_value") +``` + + +## Values + +| Name | Value | +| ---------------------------------- | ---------------------------------- | +| `PlatformAgentDependencyTypeSkill` | SKILL | +| `PlatformAgentDependencyTypeAgent` | AGENT | \ No newline at end of file diff --git a/docs/models/components/platformagentgetresponse.md b/docs/models/components/platformagentgetresponse.md index 8c867fde..9253d69e 100644 --- a/docs/models/components/platformagentgetresponse.md +++ b/docs/models/components/platformagentgetresponse.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `Agent` | [components.PlatformAgent](../../models/components/platformagent.md) | :heavy_check_mark: | N/A | +| `Agent` | [components.PlatformAgent](../../models/components/platformagent.md) | :heavy_check_mark: | An agent available to the authenticated user. | | `RequestID` | `string` | :heavy_check_mark: | Platform-generated request ID for support correlation. | \ No newline at end of file diff --git a/docs/models/components/platformagentgleansearchconfig.md b/docs/models/components/platformagentgleansearchconfig.md new file mode 100644 index 00000000..067d3890 --- /dev/null +++ b/docs/models/components/platformagentgleansearchconfig.md @@ -0,0 +1,13 @@ +# PlatformAgentGleanSearchConfig + +Glean Search configuration. When omitted, Glean Search is disabled for the agent. An empty object searches all company knowledge available to the invoking user. Populated lists restrict search to the union of the listed datasource instances and URLs. + + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | +| `KnowledgeProfileID` | `*string` | :heavy_minus_sign: | ID of a knowledge profile whose permissions Glean Search uses instead of the invoking user's permissions.
| +| `DatasourceInstances` | []`string` | :heavy_minus_sign: | Datasource instance names that search is restricted to. Each name selects one instance, not every instance of a datasource type.
| +| `Urls` | []`string` | :heavy_minus_sign: | Document or folder URLs that search is restricted to. Folder URLs include every document contained in the folder.
| \ No newline at end of file diff --git a/docs/models/components/platformagentinputfield.md b/docs/models/components/platformagentinputfield.md new file mode 100644 index 00000000..3b0a62e3 --- /dev/null +++ b/docs/models/components/platformagentinputfield.md @@ -0,0 +1,16 @@ +# PlatformAgentInputField + +A typed input of the agent, referenced from the instructions as `[[display_name]]`. + + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `DisplayName` | `string` | :heavy_check_mark: | Label of the field and its placeholder name in the instructions. Unique within the agent. | +| `Type` | [components.PlatformAgentInputFieldType](../../models/components/platformagentinputfieldtype.md) | :heavy_check_mark: | Type of an agent input field. | +| `Description` | `*string` | :heavy_minus_sign: | Helper text describing the field. | +| `DefaultValue` | `*string` | :heavy_minus_sign: | Pre-filled value. For SELECT fields, one of the option values. For DATE fields, a `YYYY-MM-DD` date.
| +| `IsOptional` | `*bool` | :heavy_minus_sign: | Whether the field accepts empty input. Defaults to false. | +| `Options` | [][components.PlatformAgentInputFieldOption](../../models/components/platformagentinputfieldoption.md) | :heavy_minus_sign: | Choices of a SELECT field. | \ No newline at end of file diff --git a/docs/models/components/platformagentinputfieldoption.md b/docs/models/components/platformagentinputfieldoption.md new file mode 100644 index 00000000..952ece32 --- /dev/null +++ b/docs/models/components/platformagentinputfieldoption.md @@ -0,0 +1,10 @@ +# PlatformAgentInputFieldOption + +A choice of a SELECT input field. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| `Value` | `string` | :heavy_check_mark: | Value substituted into the field's placeholder. | \ No newline at end of file diff --git a/docs/models/components/platformagentinputfieldtype.md b/docs/models/components/platformagentinputfieldtype.md new file mode 100644 index 00000000..179779df --- /dev/null +++ b/docs/models/components/platformagentinputfieldtype.md @@ -0,0 +1,26 @@ +# PlatformAgentInputFieldType + +Type of an agent input field. + +## Example Usage + +```go +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +value := components.PlatformAgentInputFieldTypeText + +// Open enum: custom values can be created with a direct type cast +custom := components.PlatformAgentInputFieldType("custom_value") +``` + + +## Values + +| Name | Value | +| ------------------------------------- | ------------------------------------- | +| `PlatformAgentInputFieldTypeText` | TEXT | +| `PlatformAgentInputFieldTypeSelect` | SELECT | +| `PlatformAgentInputFieldTypeDate` | DATE | +| `PlatformAgentInputFieldTypeDocument` | DOCUMENT | \ No newline at end of file diff --git a/docs/models/components/platformagentllmmodel.md b/docs/models/components/platformagentllmmodel.md new file mode 100644 index 00000000..1f9584ed --- /dev/null +++ b/docs/models/components/platformagentllmmodel.md @@ -0,0 +1,12 @@ +# PlatformAgentLlmModel + +Agentic model the agent runs on and its reasoning effort. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ModelSetID` | `*string` | :heavy_minus_sign: | Agentic model set ID. When omitted, the tenant default is used. | +| `Mode` | [*components.PlatformAgentLlmModelMode](../../models/components/platformagentllmmodelmode.md) | :heavy_minus_sign: | Reasoning effort per turn. Defaults to ADVANCED. | +| `AutoUpgrade` | `*bool` | :heavy_minus_sign: | Whether the agent follows model upgrades. When omitted, a model with a `model_set_id` is pinned, and a model without one follows the tenant default.
| \ No newline at end of file diff --git a/docs/models/components/platformagentllmmodelmode.md b/docs/models/components/platformagentllmmodelmode.md new file mode 100644 index 00000000..1dba558d --- /dev/null +++ b/docs/models/components/platformagentllmmodelmode.md @@ -0,0 +1,24 @@ +# PlatformAgentLlmModelMode + +Reasoning effort per turn. Defaults to ADVANCED. + +## Example Usage + +```go +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +value := components.PlatformAgentLlmModelModeAdvanced + +// Open enum: custom values can be created with a direct type cast +custom := components.PlatformAgentLlmModelMode("custom_value") +``` + + +## Values + +| Name | Value | +| ----------------------------------- | ----------------------------------- | +| `PlatformAgentLlmModelModeAdvanced` | ADVANCED | +| `PlatformAgentLlmModelModeFast` | FAST | \ No newline at end of file diff --git a/docs/models/components/platformagentprompt.md b/docs/models/components/platformagentprompt.md new file mode 100644 index 00000000..e7a490c1 --- /dev/null +++ b/docs/models/components/platformagentprompt.md @@ -0,0 +1,11 @@ +# PlatformAgentPrompt + +A conversation starter whose template is sent as the first chat message. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `DisplayName` | `string` | :heavy_check_mark: | Short title of the conversation starter. | +| `Template` | `string` | :heavy_check_mark: | Chat message that starts the conversation. May contain `[[variable_name]]` placeholders.
| \ No newline at end of file diff --git a/docs/models/components/platformagentschedule.md b/docs/models/components/platformagentschedule.md new file mode 100644 index 00000000..5afc7a28 --- /dev/null +++ b/docs/models/components/platformagentschedule.md @@ -0,0 +1,12 @@ +# PlatformAgentSchedule + +Wall-clock schedule for INPUT_FORM and CHAT_MESSAGE agents. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `Frequency` | `string` | :heavy_check_mark: | Five-field Unix cron expression, for example `0 9 * * 1-5`. | +| `Timezone` | `string` | :heavy_check_mark: | IANA time zone name, for example `America/Los_Angeles`. | +| `StartAt` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | ISO 8601 timestamp with an explicit offset before which the schedule stays dormant.
| \ No newline at end of file diff --git a/docs/models/components/platformagentselectedtool.md b/docs/models/components/platformagentselectedtool.md new file mode 100644 index 00000000..488b4a70 --- /dev/null +++ b/docs/models/components/platformagentselectedtool.md @@ -0,0 +1,10 @@ +# PlatformAgentSelectedTool + +A tool selected from a tool provider. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `DisplayName` | `string` | :heavy_check_mark: | Name of the tool within its provider. | \ No newline at end of file diff --git a/docs/models/components/platformagentservicecredential.md b/docs/models/components/platformagentservicecredential.md new file mode 100644 index 00000000..bfb0af92 --- /dev/null +++ b/docs/models/components/platformagentservicecredential.md @@ -0,0 +1,10 @@ +# PlatformAgentServiceCredential + +A service credential the agent uses. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | +| `ServiceCredentialID` | `string` | :heavy_check_mark: | ID of the service credential. | \ No newline at end of file diff --git a/docs/models/components/platformagentskill.md b/docs/models/components/platformagentskill.md new file mode 100644 index 00000000..0ff170e9 --- /dev/null +++ b/docs/models/components/platformagentskill.md @@ -0,0 +1,13 @@ +# PlatformAgentSkill + +A skill defined inline in the agent. Reference a published skill through `dependencies` instead. + + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `DisplayName` | `string` | :heavy_check_mark: | Human-readable skill name. | +| `MainContent` | `string` | :heavy_check_mark: | Main skill content, inlined from `SKILL.md`. | +| `Files` | [][components.PlatformSkillSourcePreviewFile](../../models/components/platformskillsourcepreviewfile.md) | :heavy_minus_sign: | Additional files bundled in the skill folder. | \ No newline at end of file diff --git a/docs/models/components/platformagentslackchannel.md b/docs/models/components/platformagentslackchannel.md new file mode 100644 index 00000000..e1ea8577 --- /dev/null +++ b/docs/models/components/platformagentslackchannel.md @@ -0,0 +1,13 @@ +# PlatformAgentSlackChannel + +Slack deployment of the agent. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `ServiceCredentialID` | `*string` | :heavy_minus_sign: | ID of the service credential for the Slack app. | +| `ChannelMappings` | [][components.PlatformAgentSlackChannelMapping](../../models/components/platformagentslackchannelmapping.md) | :heavy_minus_sign: | Slack channels the agent is mapped to. | +| `EngagementFilterInstructions` | `*string` | :heavy_minus_sign: | Instructions that decide which messages the agent engages with. | +| `AllowMentionsOutsideChannelMappings` | `*bool` | :heavy_minus_sign: | Whether the agent responds to mentions in channels that are not mapped. | \ No newline at end of file diff --git a/docs/models/components/platformagentslackchannelmapping.md b/docs/models/components/platformagentslackchannelmapping.md new file mode 100644 index 00000000..2a28aa00 --- /dev/null +++ b/docs/models/components/platformagentslackchannelmapping.md @@ -0,0 +1,11 @@ +# PlatformAgentSlackChannelMapping + +A Slack channel the agent is mapped to. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `ChannelID` | `string` | :heavy_check_mark: | ID of the Slack channel. | +| `AutoEngage` | `*bool` | :heavy_minus_sign: | Whether the agent engages with messages without being mentioned. | \ No newline at end of file diff --git a/docs/models/components/platformagenttoolset.md b/docs/models/components/platformagenttoolset.md new file mode 100644 index 00000000..0581b0ce --- /dev/null +++ b/docs/models/components/platformagenttoolset.md @@ -0,0 +1,12 @@ +# PlatformAgentToolset + +A tool provider and the subset of its tools available to the agent. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `ToolProviderID` | `string` | :heavy_check_mark: | ID of the tool provider, or `native` for built-in Glean tools. | +| `SelectedTools` | [][components.PlatformAgentSelectedTool](../../models/components/platformagentselectedtool.md) | :heavy_minus_sign: | Tools from the provider that are exposed to the agent. | +| `CustomisationData` | [*components.CustomisationData](../../models/components/customisationdata.md) | :heavy_minus_sign: | Settings applied to every tool in this provider entry. | \ No newline at end of file diff --git a/docs/models/components/platformagenttrigger.md b/docs/models/components/platformagenttrigger.md new file mode 100644 index 00000000..23742db5 --- /dev/null +++ b/docs/models/components/platformagenttrigger.md @@ -0,0 +1,14 @@ +# PlatformAgentTrigger + +How the agent is invoked. Applies to top-level agents only. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Type` | [components.PlatformAgentTriggerType](../../models/components/platformagenttriggertype.md) | :heavy_check_mark: | Invocation mode of the agent. | +| `InputFields` | [][components.PlatformAgentInputField](../../models/components/platformagentinputfield.md) | :heavy_minus_sign: | Typed inputs collected when the agent is invoked. Valid for INPUT_FORM and CONTENT_TRIGGER. An INPUT_FORM trigger without input fields runs with no input.
| +| `Schedule` | [*components.PlatformAgentSchedule](../../models/components/platformagentschedule.md) | :heavy_minus_sign: | Wall-clock schedule for INPUT_FORM and CHAT_MESSAGE agents. | +| `Prompts` | [][components.PlatformAgentPrompt](../../models/components/platformagentprompt.md) | :heavy_minus_sign: | Conversation starters. Valid only for CHAT_MESSAGE. | +| `Content` | [*components.Content](../../models/components/content.md) | :heavy_minus_sign: | Document events that run a CONTENT_TRIGGER agent. | \ No newline at end of file diff --git a/docs/models/components/platformagenttriggertype.md b/docs/models/components/platformagenttriggertype.md new file mode 100644 index 00000000..903f4390 --- /dev/null +++ b/docs/models/components/platformagenttriggertype.md @@ -0,0 +1,25 @@ +# PlatformAgentTriggerType + +Invocation mode of the agent. + +## Example Usage + +```go +import ( + "github.com/gleanwork/api-client-go/models/components" +) + +value := components.PlatformAgentTriggerTypeChatMessage + +// Open enum: custom values can be created with a direct type cast +custom := components.PlatformAgentTriggerType("custom_value") +``` + + +## Values + +| Name | Value | +| ---------------------------------------- | ---------------------------------------- | +| `PlatformAgentTriggerTypeChatMessage` | CHAT_MESSAGE | +| `PlatformAgentTriggerTypeInputForm` | INPUT_FORM | +| `PlatformAgentTriggerTypeContentTrigger` | CONTENT_TRIGGER | \ No newline at end of file diff --git a/docs/models/components/platformskillsourcepreviewfile.md b/docs/models/components/platformskillsourcepreviewfile.md index a239843a..27a0ff52 100644 --- a/docs/models/components/platformskillsourcepreviewfile.md +++ b/docs/models/components/platformskillsourcepreviewfile.md @@ -1,5 +1,7 @@ # PlatformSkillSourcePreviewFile +A supporting file bundled with a skill. + ## Fields diff --git a/docs/models/components/platformsubagent.md b/docs/models/components/platformsubagent.md new file mode 100644 index 00000000..fbee24ee --- /dev/null +++ b/docs/models/components/platformsubagent.md @@ -0,0 +1,20 @@ +# PlatformSubagent + +An isolated execution unit that its parent agent dispatches work to. A subagent has no trigger, channels, or subagents of its own, and its dependencies may only reference published skills. + + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Name` | `string` | :heavy_check_mark: | Human-readable name. | HR Policy Agent | +| `Description` | `*string` | :heavy_minus_sign: | Description of the agent's purpose and behavior. | | +| `Instructions` | `*string` | :heavy_minus_sign: | System prompt the agent follows. | | +| `Skills` | [][components.PlatformAgentSkill](../../models/components/platformagentskill.md) | :heavy_minus_sign: | Skills defined inline. | | +| `Dependencies` | [][components.PlatformAgentDependency](../../models/components/platformagentdependency.md) | :heavy_minus_sign: | Published artifacts referenced by platform ID. Their content is not inlined in `skills` or `subagents`.
| | +| `Tools` | [][components.PlatformAgentToolset](../../models/components/platformagenttoolset.md) | :heavy_minus_sign: | Tool providers and the subset of their tools available to the agent. | | +| `GleanSearchConfig` | [*components.PlatformAgentGleanSearchConfig](../../models/components/platformagentgleansearchconfig.md) | :heavy_minus_sign: | Glean Search configuration. When omitted, Glean Search is disabled for the agent. An empty object searches all company knowledge available to the invoking user. Populated lists restrict search to the union of the listed datasource instances and URLs.
| | +| `Model` | [*components.PlatformAgentLlmModel](../../models/components/platformagentllmmodel.md) | :heavy_minus_sign: | Agentic model the agent runs on and its reasoning effort. | | +| `ServiceCredentials` | [][components.PlatformAgentServiceCredential](../../models/components/platformagentservicecredential.md) | :heavy_minus_sign: | Service credentials the agent uses to call tools. | | +| `SubagentID` | `*string` | :heavy_minus_sign: | ID of the subagent, unique within its parent agent. It is not an agent ID and cannot be used with other Agents APIs.
| | \ No newline at end of file diff --git a/glean.go b/glean.go index 20641fc8..07546c11 100644 --- a/glean.go +++ b/glean.go @@ -165,10 +165,10 @@ func WithTimeout(timeout time.Duration) SDKOption { // New creates a new instance of the SDK with the provided options func New(opts ...SDKOption) *Glean { sdk := &Glean{ - SDKVersion: "0.17.8", + SDKVersion: "0.17.9", sdkConfiguration: config.SDKConfiguration{ - UserAgent: "speakeasy-sdk/go 0.17.8 2.961.1 0.9.0 github.com/gleanwork/api-client-go", - SDKVersion: "0.17.8", + UserAgent: "speakeasy-sdk/go 0.17.9 2.961.1 0.9.0 github.com/gleanwork/api-client-go", + SDKVersion: "0.17.9", GenVersion: "2.961.1", OpenAPIDocVersion: "0.9.0", ServerList: ServerList, diff --git a/models/components/agentconfig.go b/models/components/agentconfig.go index 6fa7a95b..97e5ca14 100644 --- a/models/components/agentconfig.go +++ b/models/components/agentconfig.go @@ -35,22 +35,22 @@ func (e *AgentEnum) IsExact() bool { return false } -// Mode - Top level modes to run GleanChat in. -type Mode string +// AgentConfigMode - Top level modes to run GleanChat in. +type AgentConfigMode string const ( - // ModeDefault Used if no mode supplied. - ModeDefault Mode = "DEFAULT" - // ModeQuick Deprecated. - ModeQuick Mode = "QUICK" + // AgentConfigModeDefault Used if no mode supplied. + AgentConfigModeDefault AgentConfigMode = "DEFAULT" + // AgentConfigModeQuick Deprecated. + AgentConfigModeQuick AgentConfigMode = "QUICK" ) -func (e Mode) ToPointer() *Mode { +func (e AgentConfigMode) ToPointer() *AgentConfigMode { return &e } // IsExact returns true if the value matches a known enum value, false otherwise. -func (e *Mode) IsExact() bool { +func (e *AgentConfigMode) IsExact() bool { if e != nil { switch *e { case "DEFAULT", "QUICK": @@ -67,7 +67,7 @@ type AgentConfig struct { // The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values ToolSets *ToolSets `json:"toolSets,omitempty"` // Top level modes to run GleanChat in. - Mode *Mode `json:"mode,omitempty"` + Mode *AgentConfigMode `json:"mode,omitempty"` // Whether the agent should create an image. UseImageGeneration *bool `json:"useImageGeneration,omitempty"` } @@ -86,7 +86,7 @@ func (a *AgentConfig) GetToolSets() *ToolSets { return a.ToolSets } -func (a *AgentConfig) GetMode() *Mode { +func (a *AgentConfig) GetMode() *AgentConfigMode { if a == nil { return nil } diff --git a/models/components/insightsoverviewresponse.go b/models/components/insightsoverviewresponse.go index dea18e87..e42f72a6 100644 --- a/models/components/insightsoverviewresponse.go +++ b/models/components/insightsoverviewresponse.go @@ -23,7 +23,7 @@ type InsightsOverviewResponse struct { UgcSummary *CurrentActiveUsers `json:"ugcSummary,omitempty"` // Unix timestamp of the last update for the insights data in the response. LastUpdatedTs *int64 `json:"lastUpdatedTs,omitempty"` - // Number of current employees in the specified departments who had signed up 7 days before the latest day of insights data. Compare with totalSignups for week-over-week signup change. + // Number of current employees in the specified departments who had signed up 7 days before the latest day of insights data. Compare with totalSignups for week-over-week signup change. Included even when zero. TotalSignupsWeekAgo *int64 `json:"totalSignupsWeekAgo,omitempty"` // Search session satisfaction rate, over the specified time period in the specified departments. // diff --git a/models/components/messagesrequest.go b/models/components/messagesrequest.go index 5b0f4e70..2374a32a 100644 --- a/models/components/messagesrequest.go +++ b/models/components/messagesrequest.go @@ -37,18 +37,18 @@ func (e *IDType) UnmarshalJSON(data []byte) error { } } -// Direction - The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. -type Direction string +// MessagesRequestDirection - The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. +type MessagesRequestDirection string const ( - DirectionOlder Direction = "OLDER" - DirectionNewer Direction = "NEWER" + MessagesRequestDirectionOlder MessagesRequestDirection = "OLDER" + MessagesRequestDirectionNewer MessagesRequestDirection = "NEWER" ) -func (e Direction) ToPointer() *Direction { +func (e MessagesRequestDirection) ToPointer() *MessagesRequestDirection { return &e } -func (e *Direction) UnmarshalJSON(data []byte) error { +func (e *MessagesRequestDirection) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -57,10 +57,10 @@ func (e *Direction) UnmarshalJSON(data []byte) error { case "OLDER": fallthrough case "NEWER": - *e = Direction(v) + *e = MessagesRequestDirection(v) return nil default: - return fmt.Errorf("invalid value for Direction: %v", v) + return fmt.Errorf("invalid value for MessagesRequestDirection: %v", v) } } @@ -108,7 +108,7 @@ type MessagesRequest struct { // Id for the for the workspace in case of multiple workspaces. WorkspaceID *string `json:"workspaceId,omitempty"` // The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. - Direction *Direction `json:"direction,omitempty"` + Direction *MessagesRequestDirection `json:"direction,omitempty"` // Timestamp in millis of the reference message. Only applicable when using a message_id. TimestampMillis *int64 `json:"timestampMillis,omitempty"` // Whether to include root message in response. @@ -140,7 +140,7 @@ func (m *MessagesRequest) GetWorkspaceID() *string { return m.WorkspaceID } -func (m *MessagesRequest) GetDirection() *Direction { +func (m *MessagesRequest) GetDirection() *MessagesRequestDirection { if m == nil { return nil } diff --git a/models/components/platformagent.go b/models/components/platformagent.go index 455ab68a..54f9a8b1 100644 --- a/models/components/platformagent.go +++ b/models/components/platformagent.go @@ -2,23 +2,67 @@ package components +import ( + "github.com/gleanwork/api-client-go/internal/utils" + "time" +) + +// PlatformAgent - An agent available to the authenticated user. type PlatformAgent struct { - // ID of the agent. - AgentID string `json:"agent_id"` - // Name of the agent. + // Human-readable name. Name string `json:"name"` - // Description of the agent. + // Description of the agent's purpose and behavior. Description *string `json:"description,omitempty"` + // System prompt the agent follows. + Instructions *string `json:"instructions,omitempty"` + // Skills defined inline. + Skills []PlatformAgentSkill `json:"skills,omitempty"` + // Published artifacts referenced by platform ID. Their content is not inlined in `skills` or `subagents`. + // + Dependencies []PlatformAgentDependency `json:"dependencies,omitempty"` + // Tool providers and the subset of their tools available to the agent. + Tools []PlatformAgentToolset `json:"tools,omitempty"` + // Glean Search configuration. When omitted, Glean Search is disabled for the agent. An empty object searches all company knowledge available to the invoking user. Populated lists restrict search to the union of the listed datasource instances and URLs. + // + GleanSearchConfig *PlatformAgentGleanSearchConfig `json:"glean_search_config,omitempty"` + // Agentic model the agent runs on and its reasoning effort. + Model *PlatformAgentLlmModel `json:"model,omitempty"` + // Service credentials the agent uses to call tools. + ServiceCredentials []PlatformAgentServiceCredential `json:"service_credentials,omitempty"` + // ID of the agent. + AgentID string `json:"agent_id"` // Agent metadata. Metadata map[string]any `json:"metadata,omitempty"` Capabilities PlatformAgentCapabilities `json:"capabilities"` + // Whether the agent acts with its own identity instead of the invoking user's. Cannot be changed after the agent is created. + // + UseAgentIdentity *bool `json:"use_agent_identity,omitempty"` + // Messaging channels the agent is deployed to. Requires `use_agent_identity`. + Channels *PlatformAgentChannels `json:"channels,omitempty"` + // Subagents the agent dispatches work to. Subagents cannot contain subagents. + // + Subagents []PlatformSubagent `json:"subagents,omitempty"` + // How the agent is invoked. Applies to top-level agents only. + Trigger *PlatformAgentTrigger `json:"trigger,omitempty"` + // A lightweight reference to a person, used where a payload merely points at someone. + CreatedBy *PlatformPersonReference `json:"created_by,omitempty"` + // A lightweight reference to a person, used where a payload merely points at someone. + UpdatedBy *PlatformPersonReference `json:"updated_by,omitempty"` + // Time the agent was created. + CreatedAt *time.Time `json:"created_at,omitempty"` + // Time the agent was last updated. + UpdatedAt *time.Time `json:"updated_at,omitempty"` } -func (p *PlatformAgent) GetAgentID() string { - if p == nil { - return "" +func (p PlatformAgent) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PlatformAgent) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err } - return p.AgentID + return nil } func (p *PlatformAgent) GetName() string { @@ -35,6 +79,62 @@ func (p *PlatformAgent) GetDescription() *string { return p.Description } +func (p *PlatformAgent) GetInstructions() *string { + if p == nil { + return nil + } + return p.Instructions +} + +func (p *PlatformAgent) GetSkills() []PlatformAgentSkill { + if p == nil { + return nil + } + return p.Skills +} + +func (p *PlatformAgent) GetDependencies() []PlatformAgentDependency { + if p == nil { + return nil + } + return p.Dependencies +} + +func (p *PlatformAgent) GetTools() []PlatformAgentToolset { + if p == nil { + return nil + } + return p.Tools +} + +func (p *PlatformAgent) GetGleanSearchConfig() *PlatformAgentGleanSearchConfig { + if p == nil { + return nil + } + return p.GleanSearchConfig +} + +func (p *PlatformAgent) GetModel() *PlatformAgentLlmModel { + if p == nil { + return nil + } + return p.Model +} + +func (p *PlatformAgent) GetServiceCredentials() []PlatformAgentServiceCredential { + if p == nil { + return nil + } + return p.ServiceCredentials +} + +func (p *PlatformAgent) GetAgentID() string { + if p == nil { + return "" + } + return p.AgentID +} + func (p *PlatformAgent) GetMetadata() map[string]any { if p == nil { return nil @@ -48,3 +148,59 @@ func (p *PlatformAgent) GetCapabilities() PlatformAgentCapabilities { } return p.Capabilities } + +func (p *PlatformAgent) GetUseAgentIdentity() *bool { + if p == nil { + return nil + } + return p.UseAgentIdentity +} + +func (p *PlatformAgent) GetChannels() *PlatformAgentChannels { + if p == nil { + return nil + } + return p.Channels +} + +func (p *PlatformAgent) GetSubagents() []PlatformSubagent { + if p == nil { + return nil + } + return p.Subagents +} + +func (p *PlatformAgent) GetTrigger() *PlatformAgentTrigger { + if p == nil { + return nil + } + return p.Trigger +} + +func (p *PlatformAgent) GetCreatedBy() *PlatformPersonReference { + if p == nil { + return nil + } + return p.CreatedBy +} + +func (p *PlatformAgent) GetUpdatedBy() *PlatformPersonReference { + if p == nil { + return nil + } + return p.UpdatedBy +} + +func (p *PlatformAgent) GetCreatedAt() *time.Time { + if p == nil { + return nil + } + return p.CreatedAt +} + +func (p *PlatformAgent) GetUpdatedAt() *time.Time { + if p == nil { + return nil + } + return p.UpdatedAt +} diff --git a/models/components/platformagentchannels.go b/models/components/platformagentchannels.go new file mode 100644 index 00000000..8f674b73 --- /dev/null +++ b/models/components/platformagentchannels.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentChannels - Messaging channels the agent is deployed to. Requires `use_agent_identity`. +type PlatformAgentChannels struct { + // Slack deployment of the agent. + Slack *PlatformAgentSlackChannel `json:"slack,omitempty"` +} + +func (p *PlatformAgentChannels) GetSlack() *PlatformAgentSlackChannel { + if p == nil { + return nil + } + return p.Slack +} diff --git a/models/components/platformagentcontenttrigger.go b/models/components/platformagentcontenttrigger.go new file mode 100644 index 00000000..772f56b3 --- /dev/null +++ b/models/components/platformagentcontenttrigger.go @@ -0,0 +1,54 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentContentTrigger - A subscribed document event and the filters that narrow it. +type PlatformAgentContentTrigger struct { + // Event source in enum form, for example `JIRA`. + Datasource string `json:"datasource"` + // Subscribed event identifier, for example `JIRA_TICKET_CREATED`. + TemplateID string `json:"template_id"` + // Document type the entry watches. + DocumentType *string `json:"document_type,omitempty"` + // Seconds before an event time carried in the document at which the agent runs. Pre-event triggers only. + // + TimeOffsetSeconds *int `json:"time_offset_seconds,omitempty"` + // Filters on the document that fired the event. Every filter must match for the entry to fire. Without filters, every event for this entry fires. + // + Filters []PlatformAgentContentTriggerFilter `json:"filters,omitempty"` +} + +func (p *PlatformAgentContentTrigger) GetDatasource() string { + if p == nil { + return "" + } + return p.Datasource +} + +func (p *PlatformAgentContentTrigger) GetTemplateID() string { + if p == nil { + return "" + } + return p.TemplateID +} + +func (p *PlatformAgentContentTrigger) GetDocumentType() *string { + if p == nil { + return nil + } + return p.DocumentType +} + +func (p *PlatformAgentContentTrigger) GetTimeOffsetSeconds() *int { + if p == nil { + return nil + } + return p.TimeOffsetSeconds +} + +func (p *PlatformAgentContentTrigger) GetFilters() []PlatformAgentContentTriggerFilter { + if p == nil { + return nil + } + return p.Filters +} diff --git a/models/components/platformagentcontenttriggerfilter.go b/models/components/platformagentcontenttriggerfilter.go new file mode 100644 index 00000000..b67038cc --- /dev/null +++ b/models/components/platformagentcontenttriggerfilter.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentContentTriggerFilter - A filter on the document that fired a content trigger. Values are ORed. +type PlatformAgentContentTriggerFilter struct { + // `TITLE` or `CONTENT` for the document's title or body, or a facet key. + Field string `json:"field"` + // Operator of a content trigger filter. + Operator PlatformAgentContentTriggerFilterOperator `json:"operator"` + // Match values. Required except for FIELD_CHANGED. + Values []string `json:"values,omitempty"` +} + +func (p *PlatformAgentContentTriggerFilter) GetField() string { + if p == nil { + return "" + } + return p.Field +} + +func (p *PlatformAgentContentTriggerFilter) GetOperator() PlatformAgentContentTriggerFilterOperator { + if p == nil { + return PlatformAgentContentTriggerFilterOperator("") + } + return p.Operator +} + +func (p *PlatformAgentContentTriggerFilter) GetValues() []string { + if p == nil { + return nil + } + return p.Values +} diff --git a/models/components/platformagentcontenttriggerfilteroperator.go b/models/components/platformagentcontenttriggerfilteroperator.go new file mode 100644 index 00000000..fac35b95 --- /dev/null +++ b/models/components/platformagentcontenttriggerfilteroperator.go @@ -0,0 +1,32 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentContentTriggerFilterOperator - Operator of a content trigger filter. +type PlatformAgentContentTriggerFilterOperator string + +const ( + // PlatformAgentContentTriggerFilterOperatorIsOneOf The field equals one of the values. + PlatformAgentContentTriggerFilterOperatorIsOneOf PlatformAgentContentTriggerFilterOperator = "IS_ONE_OF" + // PlatformAgentContentTriggerFilterOperatorIsNotOneOf The field equals none of the values. Not valid for TITLE or CONTENT. + PlatformAgentContentTriggerFilterOperatorIsNotOneOf PlatformAgentContentTriggerFilterOperator = "IS_NOT_ONE_OF" + // PlatformAgentContentTriggerFilterOperatorContains The field contains one of the values. + PlatformAgentContentTriggerFilterOperatorContains PlatformAgentContentTriggerFilterOperator = "CONTAINS" + // PlatformAgentContentTriggerFilterOperatorFieldChanged The field changed in the event. Not valid for TITLE or CONTENT. + PlatformAgentContentTriggerFilterOperatorFieldChanged PlatformAgentContentTriggerFilterOperator = "FIELD_CHANGED" +) + +func (e PlatformAgentContentTriggerFilterOperator) ToPointer() *PlatformAgentContentTriggerFilterOperator { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *PlatformAgentContentTriggerFilterOperator) IsExact() bool { + if e != nil { + switch *e { + case "IS_ONE_OF", "IS_NOT_ONE_OF", "CONTAINS", "FIELD_CHANGED": + return true + } + } + return false +} diff --git a/models/components/platformagentdependency.go b/models/components/platformagentdependency.go new file mode 100644 index 00000000..7b91564b --- /dev/null +++ b/models/components/platformagentdependency.go @@ -0,0 +1,51 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentDependencyType - Type of a published artifact referenced as a dependency. +type PlatformAgentDependencyType string + +const ( + // PlatformAgentDependencyTypeSkill A published skill. + PlatformAgentDependencyTypeSkill PlatformAgentDependencyType = "SKILL" + // PlatformAgentDependencyTypeAgent A published agent. Not valid for subagents. + PlatformAgentDependencyTypeAgent PlatformAgentDependencyType = "AGENT" +) + +func (e PlatformAgentDependencyType) ToPointer() *PlatformAgentDependencyType { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *PlatformAgentDependencyType) IsExact() bool { + if e != nil { + switch *e { + case "SKILL", "AGENT": + return true + } + } + return false +} + +// PlatformAgentDependency - A published artifact the agent references by platform ID. +type PlatformAgentDependency struct { + // ID of the referenced artifact: the `skill_id` of a published skill when `type` is SKILL, or the `agent_id` of a published agent when `type` is AGENT. + // + ID string `json:"id"` + // Type of a published artifact referenced as a dependency. + Type PlatformAgentDependencyType `json:"type"` +} + +func (p *PlatformAgentDependency) GetID() string { + if p == nil { + return "" + } + return p.ID +} + +func (p *PlatformAgentDependency) GetType() PlatformAgentDependencyType { + if p == nil { + return PlatformAgentDependencyType("") + } + return p.Type +} diff --git a/models/components/platformagentgetresponse.go b/models/components/platformagentgetresponse.go index cbebd71c..705f8117 100644 --- a/models/components/platformagentgetresponse.go +++ b/models/components/platformagentgetresponse.go @@ -3,6 +3,7 @@ package components type PlatformAgentGetResponse struct { + // An agent available to the authenticated user. Agent PlatformAgent `json:"agent"` // Platform-generated request ID for support correlation. RequestID string `json:"request_id"` diff --git a/models/components/platformagentgleansearchconfig.go b/models/components/platformagentgleansearchconfig.go new file mode 100644 index 00000000..18d52b86 --- /dev/null +++ b/models/components/platformagentgleansearchconfig.go @@ -0,0 +1,37 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentGleanSearchConfig - Glean Search configuration. When omitted, Glean Search is disabled for the agent. An empty object searches all company knowledge available to the invoking user. Populated lists restrict search to the union of the listed datasource instances and URLs. +type PlatformAgentGleanSearchConfig struct { + // ID of a knowledge profile whose permissions Glean Search uses instead of the invoking user's permissions. + // + KnowledgeProfileID *string `json:"knowledge_profile_id,omitempty"` + // Datasource instance names that search is restricted to. Each name selects one instance, not every instance of a datasource type. + // + DatasourceInstances []string `json:"datasource_instances,omitempty"` + // Document or folder URLs that search is restricted to. Folder URLs include every document contained in the folder. + // + Urls []string `json:"urls,omitempty"` +} + +func (p *PlatformAgentGleanSearchConfig) GetKnowledgeProfileID() *string { + if p == nil { + return nil + } + return p.KnowledgeProfileID +} + +func (p *PlatformAgentGleanSearchConfig) GetDatasourceInstances() []string { + if p == nil { + return nil + } + return p.DatasourceInstances +} + +func (p *PlatformAgentGleanSearchConfig) GetUrls() []string { + if p == nil { + return nil + } + return p.Urls +} diff --git a/models/components/platformagentinputfield.go b/models/components/platformagentinputfield.go new file mode 100644 index 00000000..4480544e --- /dev/null +++ b/models/components/platformagentinputfield.go @@ -0,0 +1,91 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentInputFieldType - Type of an agent input field. +type PlatformAgentInputFieldType string + +const ( + // PlatformAgentInputFieldTypeText Free-form text. + PlatformAgentInputFieldTypeText PlatformAgentInputFieldType = "TEXT" + // PlatformAgentInputFieldTypeSelect One choice from the declared options. + PlatformAgentInputFieldTypeSelect PlatformAgentInputFieldType = "SELECT" + // PlatformAgentInputFieldTypeDate Calendar date in `YYYY-MM-DD` format. + PlatformAgentInputFieldTypeDate PlatformAgentInputFieldType = "DATE" + // PlatformAgentInputFieldTypeDocument Glean file ID of an uploaded file. + PlatformAgentInputFieldTypeDocument PlatformAgentInputFieldType = "DOCUMENT" +) + +func (e PlatformAgentInputFieldType) ToPointer() *PlatformAgentInputFieldType { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *PlatformAgentInputFieldType) IsExact() bool { + if e != nil { + switch *e { + case "TEXT", "SELECT", "DATE", "DOCUMENT": + return true + } + } + return false +} + +// PlatformAgentInputField - A typed input of the agent, referenced from the instructions as `[[display_name]]`. +type PlatformAgentInputField struct { + // Label of the field and its placeholder name in the instructions. Unique within the agent. + DisplayName string `json:"display_name"` + // Type of an agent input field. + Type PlatformAgentInputFieldType `json:"type"` + // Helper text describing the field. + Description *string `json:"description,omitempty"` + // Pre-filled value. For SELECT fields, one of the option values. For DATE fields, a `YYYY-MM-DD` date. + // + DefaultValue *string `json:"default_value,omitempty"` + // Whether the field accepts empty input. Defaults to false. + IsOptional *bool `json:"is_optional,omitempty"` + // Choices of a SELECT field. + Options []PlatformAgentInputFieldOption `json:"options,omitempty"` +} + +func (p *PlatformAgentInputField) GetDisplayName() string { + if p == nil { + return "" + } + return p.DisplayName +} + +func (p *PlatformAgentInputField) GetType() PlatformAgentInputFieldType { + if p == nil { + return PlatformAgentInputFieldType("") + } + return p.Type +} + +func (p *PlatformAgentInputField) GetDescription() *string { + if p == nil { + return nil + } + return p.Description +} + +func (p *PlatformAgentInputField) GetDefaultValue() *string { + if p == nil { + return nil + } + return p.DefaultValue +} + +func (p *PlatformAgentInputField) GetIsOptional() *bool { + if p == nil { + return nil + } + return p.IsOptional +} + +func (p *PlatformAgentInputField) GetOptions() []PlatformAgentInputFieldOption { + if p == nil { + return nil + } + return p.Options +} diff --git a/models/components/platformagentinputfieldoption.go b/models/components/platformagentinputfieldoption.go new file mode 100644 index 00000000..c8538bfa --- /dev/null +++ b/models/components/platformagentinputfieldoption.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentInputFieldOption - A choice of a SELECT input field. +type PlatformAgentInputFieldOption struct { + // Value substituted into the field's placeholder. + Value string `json:"value"` +} + +func (p *PlatformAgentInputFieldOption) GetValue() string { + if p == nil { + return "" + } + return p.Value +} diff --git a/models/components/platformagentllmmodel.go b/models/components/platformagentllmmodel.go new file mode 100644 index 00000000..8e300c24 --- /dev/null +++ b/models/components/platformagentllmmodel.go @@ -0,0 +1,60 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentLlmModelMode - Reasoning effort per turn. Defaults to ADVANCED. +type PlatformAgentLlmModelMode string + +const ( + // PlatformAgentLlmModelModeAdvanced High reasoning effort. + PlatformAgentLlmModelModeAdvanced PlatformAgentLlmModelMode = "ADVANCED" + // PlatformAgentLlmModelModeFast Low reasoning effort for latency-sensitive, narrow tasks. + PlatformAgentLlmModelModeFast PlatformAgentLlmModelMode = "FAST" +) + +func (e PlatformAgentLlmModelMode) ToPointer() *PlatformAgentLlmModelMode { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *PlatformAgentLlmModelMode) IsExact() bool { + if e != nil { + switch *e { + case "ADVANCED", "FAST": + return true + } + } + return false +} + +// PlatformAgentLlmModel - Agentic model the agent runs on and its reasoning effort. +type PlatformAgentLlmModel struct { + // Agentic model set ID. When omitted, the tenant default is used. + ModelSetID *string `json:"model_set_id,omitempty"` + // Reasoning effort per turn. Defaults to ADVANCED. + Mode *PlatformAgentLlmModelMode `json:"mode,omitempty"` + // Whether the agent follows model upgrades. When omitted, a model with a `model_set_id` is pinned, and a model without one follows the tenant default. + // + AutoUpgrade *bool `json:"auto_upgrade,omitempty"` +} + +func (p *PlatformAgentLlmModel) GetModelSetID() *string { + if p == nil { + return nil + } + return p.ModelSetID +} + +func (p *PlatformAgentLlmModel) GetMode() *PlatformAgentLlmModelMode { + if p == nil { + return nil + } + return p.Mode +} + +func (p *PlatformAgentLlmModel) GetAutoUpgrade() *bool { + if p == nil { + return nil + } + return p.AutoUpgrade +} diff --git a/models/components/platformagentprompt.go b/models/components/platformagentprompt.go new file mode 100644 index 00000000..843c4367 --- /dev/null +++ b/models/components/platformagentprompt.go @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentPrompt - A conversation starter whose template is sent as the first chat message. +type PlatformAgentPrompt struct { + // Short title of the conversation starter. + DisplayName string `json:"display_name"` + // Chat message that starts the conversation. May contain `[[variable_name]]` placeholders. + // + Template string `json:"template"` +} + +func (p *PlatformAgentPrompt) GetDisplayName() string { + if p == nil { + return "" + } + return p.DisplayName +} + +func (p *PlatformAgentPrompt) GetTemplate() string { + if p == nil { + return "" + } + return p.Template +} diff --git a/models/components/platformagentschedule.go b/models/components/platformagentschedule.go new file mode 100644 index 00000000..974ef6c1 --- /dev/null +++ b/models/components/platformagentschedule.go @@ -0,0 +1,51 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "github.com/gleanwork/api-client-go/internal/utils" + "time" +) + +// PlatformAgentSchedule - Wall-clock schedule for INPUT_FORM and CHAT_MESSAGE agents. +type PlatformAgentSchedule struct { + // Five-field Unix cron expression, for example `0 9 * * 1-5`. + Frequency string `json:"frequency"` + // IANA time zone name, for example `America/Los_Angeles`. + Timezone string `json:"timezone"` + // ISO 8601 timestamp with an explicit offset before which the schedule stays dormant. + // + StartAt *time.Time `json:"start_at,omitempty"` +} + +func (p PlatformAgentSchedule) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PlatformAgentSchedule) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + +func (p *PlatformAgentSchedule) GetFrequency() string { + if p == nil { + return "" + } + return p.Frequency +} + +func (p *PlatformAgentSchedule) GetTimezone() string { + if p == nil { + return "" + } + return p.Timezone +} + +func (p *PlatformAgentSchedule) GetStartAt() *time.Time { + if p == nil { + return nil + } + return p.StartAt +} diff --git a/models/components/platformagentselectedtool.go b/models/components/platformagentselectedtool.go new file mode 100644 index 00000000..bb41b948 --- /dev/null +++ b/models/components/platformagentselectedtool.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentSelectedTool - A tool selected from a tool provider. +type PlatformAgentSelectedTool struct { + // Name of the tool within its provider. + DisplayName string `json:"display_name"` +} + +func (p *PlatformAgentSelectedTool) GetDisplayName() string { + if p == nil { + return "" + } + return p.DisplayName +} diff --git a/models/components/platformagentservicecredential.go b/models/components/platformagentservicecredential.go new file mode 100644 index 00000000..ec66a471 --- /dev/null +++ b/models/components/platformagentservicecredential.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentServiceCredential - A service credential the agent uses. +type PlatformAgentServiceCredential struct { + // ID of the service credential. + ServiceCredentialID string `json:"service_credential_id"` +} + +func (p *PlatformAgentServiceCredential) GetServiceCredentialID() string { + if p == nil { + return "" + } + return p.ServiceCredentialID +} diff --git a/models/components/platformagentskill.go b/models/components/platformagentskill.go new file mode 100644 index 00000000..feef24f3 --- /dev/null +++ b/models/components/platformagentskill.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentSkill - A skill defined inline in the agent. Reference a published skill through `dependencies` instead. +type PlatformAgentSkill struct { + // Human-readable skill name. + DisplayName string `json:"display_name"` + // Main skill content, inlined from `SKILL.md`. + MainContent string `json:"main_content"` + // Additional files bundled in the skill folder. + Files []PlatformSkillSourcePreviewFile `json:"files,omitempty"` +} + +func (p *PlatformAgentSkill) GetDisplayName() string { + if p == nil { + return "" + } + return p.DisplayName +} + +func (p *PlatformAgentSkill) GetMainContent() string { + if p == nil { + return "" + } + return p.MainContent +} + +func (p *PlatformAgentSkill) GetFiles() []PlatformSkillSourcePreviewFile { + if p == nil { + return nil + } + return p.Files +} diff --git a/models/components/platformagentslackchannel.go b/models/components/platformagentslackchannel.go new file mode 100644 index 00000000..a9b17cf4 --- /dev/null +++ b/models/components/platformagentslackchannel.go @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentSlackChannel - Slack deployment of the agent. +type PlatformAgentSlackChannel struct { + // ID of the service credential for the Slack app. + ServiceCredentialID *string `json:"service_credential_id,omitempty"` + // Slack channels the agent is mapped to. + ChannelMappings []PlatformAgentSlackChannelMapping `json:"channel_mappings,omitempty"` + // Instructions that decide which messages the agent engages with. + EngagementFilterInstructions *string `json:"engagement_filter_instructions,omitempty"` + // Whether the agent responds to mentions in channels that are not mapped. + AllowMentionsOutsideChannelMappings *bool `json:"allow_mentions_outside_channel_mappings,omitempty"` +} + +func (p *PlatformAgentSlackChannel) GetServiceCredentialID() *string { + if p == nil { + return nil + } + return p.ServiceCredentialID +} + +func (p *PlatformAgentSlackChannel) GetChannelMappings() []PlatformAgentSlackChannelMapping { + if p == nil { + return nil + } + return p.ChannelMappings +} + +func (p *PlatformAgentSlackChannel) GetEngagementFilterInstructions() *string { + if p == nil { + return nil + } + return p.EngagementFilterInstructions +} + +func (p *PlatformAgentSlackChannel) GetAllowMentionsOutsideChannelMappings() *bool { + if p == nil { + return nil + } + return p.AllowMentionsOutsideChannelMappings +} diff --git a/models/components/platformagentslackchannelmapping.go b/models/components/platformagentslackchannelmapping.go new file mode 100644 index 00000000..d46566ce --- /dev/null +++ b/models/components/platformagentslackchannelmapping.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentSlackChannelMapping - A Slack channel the agent is mapped to. +type PlatformAgentSlackChannelMapping struct { + // ID of the Slack channel. + ChannelID string `json:"channel_id"` + // Whether the agent engages with messages without being mentioned. + AutoEngage *bool `json:"auto_engage,omitempty"` +} + +func (p *PlatformAgentSlackChannelMapping) GetChannelID() string { + if p == nil { + return "" + } + return p.ChannelID +} + +func (p *PlatformAgentSlackChannelMapping) GetAutoEngage() *bool { + if p == nil { + return nil + } + return p.AutoEngage +} diff --git a/models/components/platformagenttoolset.go b/models/components/platformagenttoolset.go new file mode 100644 index 00000000..d3bc1fb0 --- /dev/null +++ b/models/components/platformagenttoolset.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// CustomisationData - Settings applied to every tool in this provider entry. +type CustomisationData struct { + // Whether tools in this entry run without asking the user for confirmation. Defaults to false. + // + SkipConfirmation *bool `json:"skip_confirmation,omitempty"` +} + +func (c *CustomisationData) GetSkipConfirmation() *bool { + if c == nil { + return nil + } + return c.SkipConfirmation +} + +// PlatformAgentToolset - A tool provider and the subset of its tools available to the agent. +type PlatformAgentToolset struct { + // ID of the tool provider, or `native` for built-in Glean tools. + ToolProviderID string `json:"tool_provider_id"` + // Tools from the provider that are exposed to the agent. + SelectedTools []PlatformAgentSelectedTool `json:"selected_tools,omitempty"` + // Settings applied to every tool in this provider entry. + CustomisationData *CustomisationData `json:"customisation_data,omitempty"` +} + +func (p *PlatformAgentToolset) GetToolProviderID() string { + if p == nil { + return "" + } + return p.ToolProviderID +} + +func (p *PlatformAgentToolset) GetSelectedTools() []PlatformAgentSelectedTool { + if p == nil { + return nil + } + return p.SelectedTools +} + +func (p *PlatformAgentToolset) GetCustomisationData() *CustomisationData { + if p == nil { + return nil + } + return p.CustomisationData +} diff --git a/models/components/platformagenttrigger.go b/models/components/platformagenttrigger.go new file mode 100644 index 00000000..37629f44 --- /dev/null +++ b/models/components/platformagenttrigger.go @@ -0,0 +1,93 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentTriggerType - Invocation mode of the agent. +type PlatformAgentTriggerType string + +const ( + // PlatformAgentTriggerTypeChatMessage The user converses with the agent. + PlatformAgentTriggerTypeChatMessage PlatformAgentTriggerType = "CHAT_MESSAGE" + // PlatformAgentTriggerTypeInputForm The agent runs on typed input fields, or with no input when none are declared. + PlatformAgentTriggerTypeInputForm PlatformAgentTriggerType = "INPUT_FORM" + // PlatformAgentTriggerTypeContentTrigger The agent runs on a document event. + PlatformAgentTriggerTypeContentTrigger PlatformAgentTriggerType = "CONTENT_TRIGGER" +) + +func (e PlatformAgentTriggerType) ToPointer() *PlatformAgentTriggerType { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *PlatformAgentTriggerType) IsExact() bool { + if e != nil { + switch *e { + case "CHAT_MESSAGE", "INPUT_FORM", "CONTENT_TRIGGER": + return true + } + } + return false +} + +// Content - Document events that run a CONTENT_TRIGGER agent. +type Content struct { + // Event subscriptions. The agent runs when any entry matches. + Triggers []PlatformAgentContentTrigger `json:"triggers"` +} + +func (c *Content) GetTriggers() []PlatformAgentContentTrigger { + if c == nil { + return []PlatformAgentContentTrigger{} + } + return c.Triggers +} + +// PlatformAgentTrigger - How the agent is invoked. Applies to top-level agents only. +type PlatformAgentTrigger struct { + // Invocation mode of the agent. + Type PlatformAgentTriggerType `json:"type"` + // Typed inputs collected when the agent is invoked. Valid for INPUT_FORM and CONTENT_TRIGGER. An INPUT_FORM trigger without input fields runs with no input. + // + InputFields []PlatformAgentInputField `json:"input_fields,omitempty"` + // Wall-clock schedule for INPUT_FORM and CHAT_MESSAGE agents. + Schedule *PlatformAgentSchedule `json:"schedule,omitempty"` + // Conversation starters. Valid only for CHAT_MESSAGE. + Prompts []PlatformAgentPrompt `json:"prompts,omitempty"` + // Document events that run a CONTENT_TRIGGER agent. + Content *Content `json:"content,omitempty"` +} + +func (p *PlatformAgentTrigger) GetType() PlatformAgentTriggerType { + if p == nil { + return PlatformAgentTriggerType("") + } + return p.Type +} + +func (p *PlatformAgentTrigger) GetInputFields() []PlatformAgentInputField { + if p == nil { + return nil + } + return p.InputFields +} + +func (p *PlatformAgentTrigger) GetSchedule() *PlatformAgentSchedule { + if p == nil { + return nil + } + return p.Schedule +} + +func (p *PlatformAgentTrigger) GetPrompts() []PlatformAgentPrompt { + if p == nil { + return nil + } + return p.Prompts +} + +func (p *PlatformAgentTrigger) GetContent() *Content { + if p == nil { + return nil + } + return p.Content +} diff --git a/models/components/platformskillsourcepreviewfile.go b/models/components/platformskillsourcepreviewfile.go index f5783a5b..84159039 100644 --- a/models/components/platformskillsourcepreviewfile.go +++ b/models/components/platformskillsourcepreviewfile.go @@ -6,6 +6,7 @@ import ( "github.com/gleanwork/api-client-go/internal/utils" ) +// PlatformSkillSourcePreviewFile - A supporting file bundled with a skill. type PlatformSkillSourcePreviewFile struct { // Relative path within the skill bundle. Path string `json:"path"` diff --git a/models/components/platformsubagent.go b/models/components/platformsubagent.go new file mode 100644 index 00000000..058329d6 --- /dev/null +++ b/models/components/platformsubagent.go @@ -0,0 +1,100 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformSubagent - An isolated execution unit that its parent agent dispatches work to. A subagent has no trigger, channels, or subagents of its own, and its dependencies may only reference published skills. +type PlatformSubagent struct { + // Human-readable name. + Name string `json:"name"` + // Description of the agent's purpose and behavior. + Description *string `json:"description,omitempty"` + // System prompt the agent follows. + Instructions *string `json:"instructions,omitempty"` + // Skills defined inline. + Skills []PlatformAgentSkill `json:"skills,omitempty"` + // Published artifacts referenced by platform ID. Their content is not inlined in `skills` or `subagents`. + // + Dependencies []PlatformAgentDependency `json:"dependencies,omitempty"` + // Tool providers and the subset of their tools available to the agent. + Tools []PlatformAgentToolset `json:"tools,omitempty"` + // Glean Search configuration. When omitted, Glean Search is disabled for the agent. An empty object searches all company knowledge available to the invoking user. Populated lists restrict search to the union of the listed datasource instances and URLs. + // + GleanSearchConfig *PlatformAgentGleanSearchConfig `json:"glean_search_config,omitempty"` + // Agentic model the agent runs on and its reasoning effort. + Model *PlatformAgentLlmModel `json:"model,omitempty"` + // Service credentials the agent uses to call tools. + ServiceCredentials []PlatformAgentServiceCredential `json:"service_credentials,omitempty"` + // ID of the subagent, unique within its parent agent. It is not an agent ID and cannot be used with other Agents APIs. + // + SubagentID *string `json:"subagent_id,omitempty"` +} + +func (p *PlatformSubagent) GetName() string { + if p == nil { + return "" + } + return p.Name +} + +func (p *PlatformSubagent) GetDescription() *string { + if p == nil { + return nil + } + return p.Description +} + +func (p *PlatformSubagent) GetInstructions() *string { + if p == nil { + return nil + } + return p.Instructions +} + +func (p *PlatformSubagent) GetSkills() []PlatformAgentSkill { + if p == nil { + return nil + } + return p.Skills +} + +func (p *PlatformSubagent) GetDependencies() []PlatformAgentDependency { + if p == nil { + return nil + } + return p.Dependencies +} + +func (p *PlatformSubagent) GetTools() []PlatformAgentToolset { + if p == nil { + return nil + } + return p.Tools +} + +func (p *PlatformSubagent) GetGleanSearchConfig() *PlatformAgentGleanSearchConfig { + if p == nil { + return nil + } + return p.GleanSearchConfig +} + +func (p *PlatformSubagent) GetModel() *PlatformAgentLlmModel { + if p == nil { + return nil + } + return p.Model +} + +func (p *PlatformSubagent) GetServiceCredentials() []PlatformAgentServiceCredential { + if p == nil { + return nil + } + return p.ServiceCredentials +} + +func (p *PlatformSubagent) GetSubagentID() *string { + if p == nil { + return nil + } + return p.SubagentID +} diff --git a/tests/messages_test.go b/tests/messages_test.go index f927c364..bc499ec7 100644 --- a/tests/messages_test.go +++ b/tests/messages_test.go @@ -27,7 +27,7 @@ func TestMessages_Messages(t *testing.T) { IDType: components.IDTypeConversationID, ID: "", TimestampMillis: apiclientgo.Pointer[int64](558834), - Datasource: components.DatasourceSlack, + Datasource: components.DatasourceMicrosoftteams, }, nil) require.NoError(t, err) assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) diff --git a/tests/mockserver/internal/handler/pathgetapiagentsagentid.go b/tests/mockserver/internal/handler/pathgetapiagentsagentid.go index 821cdaf9..a14e1b6f 100644 --- a/tests/mockserver/internal/handler/pathgetapiagentsagentid.go +++ b/tests/mockserver/internal/handler/pathgetapiagentsagentid.go @@ -47,9 +47,14 @@ func testPlatformAgentsGetPlatformAgentsGet0(w http.ResponseWriter, req *http.Re } var respBody *components.PlatformAgentGetResponse = &components.PlatformAgentGetResponse{ Agent: components.PlatformAgent{ - AgentID: "mho4lwzylcozgoc2", Name: "HR Policy Agent", + AgentID: "mho4lwzylcozgoc2", Capabilities: components.PlatformAgentCapabilities{}, + Subagents: []components.PlatformSubagent{ + components.PlatformSubagent{ + Name: "HR Policy Agent", + }, + }, }, RequestID: "", } diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go index 87401958..652086e9 100644 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go +++ b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go @@ -74,7 +74,7 @@ func testGetchatGetchat0(w http.ResponseWriter, req *http.Request) { components.ChatMessage{ AgentConfig: &components.AgentConfig{ Agent: components.AgentEnumDefault.ToPointer(), - Mode: components.ModeDefault.ToPointer(), + Mode: components.AgentConfigModeDefault.ToPointer(), }, Author: components.AuthorUser.ToPointer(), Citations: []components.ChatMessageCitation{ @@ -628,8 +628,8 @@ func testGetchatGetchat0(w http.ResponseWriter, req *http.Request) { Roles: []components.UserRoleSpecification{}, SourceDocumentSpec: types.Pointer(components.CreateDocumentSpecUnionDocumentSpec3( components.DocumentSpec3{ - UgcType: components.DocumentSpecUgcType1Shortcuts, - ContentID: 602763, + UgcType: components.DocumentSpecUgcType1Announcements, + ContentID: 848009, }, )), SourceType: components.AnswerSourceTypeAssistant.ToPointer(), diff --git a/tests/mockserver/internal/sdk/models/components/agentconfig.go b/tests/mockserver/internal/sdk/models/components/agentconfig.go index 679f7f32..0fcf307e 100644 --- a/tests/mockserver/internal/sdk/models/components/agentconfig.go +++ b/tests/mockserver/internal/sdk/models/components/agentconfig.go @@ -46,18 +46,18 @@ func (e *AgentEnum) UnmarshalJSON(data []byte) error { } } -// Mode - Top level modes to run GleanChat in. -type Mode string +// AgentConfigMode - Top level modes to run GleanChat in. +type AgentConfigMode string const ( - ModeDefault Mode = "DEFAULT" - ModeQuick Mode = "QUICK" + AgentConfigModeDefault AgentConfigMode = "DEFAULT" + AgentConfigModeQuick AgentConfigMode = "QUICK" ) -func (e Mode) ToPointer() *Mode { +func (e AgentConfigMode) ToPointer() *AgentConfigMode { return &e } -func (e *Mode) UnmarshalJSON(data []byte) error { +func (e *AgentConfigMode) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -66,10 +66,10 @@ func (e *Mode) UnmarshalJSON(data []byte) error { case "DEFAULT": fallthrough case "QUICK": - *e = Mode(v) + *e = AgentConfigMode(v) return nil default: - return fmt.Errorf("invalid value for Mode: %v", v) + return fmt.Errorf("invalid value for AgentConfigMode: %v", v) } } @@ -80,7 +80,7 @@ type AgentConfig struct { // The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values ToolSets *ToolSets `json:"toolSets,omitempty"` // Top level modes to run GleanChat in. - Mode *Mode `json:"mode,omitempty"` + Mode *AgentConfigMode `json:"mode,omitempty"` // Whether the agent should create an image. UseImageGeneration *bool `json:"useImageGeneration,omitempty"` } @@ -99,7 +99,7 @@ func (o *AgentConfig) GetToolSets() *ToolSets { return o.ToolSets } -func (o *AgentConfig) GetMode() *Mode { +func (o *AgentConfig) GetMode() *AgentConfigMode { if o == nil { return nil } diff --git a/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go b/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go index a4872a27..200d888d 100644 --- a/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go +++ b/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go @@ -23,7 +23,7 @@ type InsightsOverviewResponse struct { UgcSummary *CurrentActiveUsers `json:"ugcSummary,omitempty"` // Unix timestamp of the last update for the insights data in the response. LastUpdatedTs *int64 `json:"lastUpdatedTs,omitempty"` - // Number of current employees in the specified departments who had signed up 7 days before the latest day of insights data. Compare with totalSignups for week-over-week signup change. + // Number of current employees in the specified departments who had signed up 7 days before the latest day of insights data. Compare with totalSignups for week-over-week signup change. Included even when zero. TotalSignupsWeekAgo *int64 `json:"totalSignupsWeekAgo,omitempty"` // Search session satisfaction rate, over the specified time period in the specified departments. // diff --git a/tests/mockserver/internal/sdk/models/components/messagesrequest.go b/tests/mockserver/internal/sdk/models/components/messagesrequest.go index a778dc51..36c077ba 100644 --- a/tests/mockserver/internal/sdk/models/components/messagesrequest.go +++ b/tests/mockserver/internal/sdk/models/components/messagesrequest.go @@ -37,18 +37,18 @@ func (e *IDType) UnmarshalJSON(data []byte) error { } } -// Direction - The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. -type Direction string +// MessagesRequestDirection - The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. +type MessagesRequestDirection string const ( - DirectionOlder Direction = "OLDER" - DirectionNewer Direction = "NEWER" + MessagesRequestDirectionOlder MessagesRequestDirection = "OLDER" + MessagesRequestDirectionNewer MessagesRequestDirection = "NEWER" ) -func (e Direction) ToPointer() *Direction { +func (e MessagesRequestDirection) ToPointer() *MessagesRequestDirection { return &e } -func (e *Direction) UnmarshalJSON(data []byte) error { +func (e *MessagesRequestDirection) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -57,10 +57,10 @@ func (e *Direction) UnmarshalJSON(data []byte) error { case "OLDER": fallthrough case "NEWER": - *e = Direction(v) + *e = MessagesRequestDirection(v) return nil default: - return fmt.Errorf("invalid value for Direction: %v", v) + return fmt.Errorf("invalid value for MessagesRequestDirection: %v", v) } } @@ -108,7 +108,7 @@ type MessagesRequest struct { // Id for the for the workspace in case of multiple workspaces. WorkspaceID *string `json:"workspaceId,omitempty"` // The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. - Direction *Direction `json:"direction,omitempty"` + Direction *MessagesRequestDirection `json:"direction,omitempty"` // Timestamp in millis of the reference message. Only applicable when using a message_id. TimestampMillis *int64 `json:"timestampMillis,omitempty"` // Whether to include root message in response. @@ -140,7 +140,7 @@ func (o *MessagesRequest) GetWorkspaceID() *string { return o.WorkspaceID } -func (o *MessagesRequest) GetDirection() *Direction { +func (o *MessagesRequest) GetDirection() *MessagesRequestDirection { if o == nil { return nil } diff --git a/tests/mockserver/internal/sdk/models/components/platformagent.go b/tests/mockserver/internal/sdk/models/components/platformagent.go index 79049da4..d7adfa48 100644 --- a/tests/mockserver/internal/sdk/models/components/platformagent.go +++ b/tests/mockserver/internal/sdk/models/components/platformagent.go @@ -2,23 +2,67 @@ package components +import ( + "mockserver/internal/sdk/utils" + "time" +) + +// PlatformAgent - An agent available to the authenticated user. type PlatformAgent struct { - // ID of the agent. - AgentID string `json:"agent_id"` - // Name of the agent. + // Human-readable name. Name string `json:"name"` - // Description of the agent. + // Description of the agent's purpose and behavior. Description *string `json:"description,omitempty"` + // System prompt the agent follows. + Instructions *string `json:"instructions,omitempty"` + // Skills defined inline. + Skills []PlatformAgentSkill `json:"skills,omitempty"` + // Published artifacts referenced by platform ID. Their content is not inlined in `skills` or `subagents`. + // + Dependencies []PlatformAgentDependency `json:"dependencies,omitempty"` + // Tool providers and the subset of their tools available to the agent. + Tools []PlatformAgentToolset `json:"tools,omitempty"` + // Glean Search configuration. When omitted, Glean Search is disabled for the agent. An empty object searches all company knowledge available to the invoking user. Populated lists restrict search to the union of the listed datasource instances and URLs. + // + GleanSearchConfig *PlatformAgentGleanSearchConfig `json:"glean_search_config,omitempty"` + // Agentic model the agent runs on and its reasoning effort. + Model *PlatformAgentLlmModel `json:"model,omitempty"` + // Service credentials the agent uses to call tools. + ServiceCredentials []PlatformAgentServiceCredential `json:"service_credentials,omitempty"` + // ID of the agent. + AgentID string `json:"agent_id"` // Agent metadata. Metadata map[string]any `json:"metadata,omitempty"` Capabilities PlatformAgentCapabilities `json:"capabilities"` + // Whether the agent acts with its own identity instead of the invoking user's. Cannot be changed after the agent is created. + // + UseAgentIdentity *bool `json:"use_agent_identity,omitempty"` + // Messaging channels the agent is deployed to. Requires `use_agent_identity`. + Channels *PlatformAgentChannels `json:"channels,omitempty"` + // Subagents the agent dispatches work to. Subagents cannot contain subagents. + // + Subagents []PlatformSubagent `json:"subagents,omitempty"` + // How the agent is invoked. Applies to top-level agents only. + Trigger *PlatformAgentTrigger `json:"trigger,omitempty"` + // A lightweight reference to a person, used where a payload merely points at someone. + CreatedBy *PlatformPersonReference `json:"created_by,omitempty"` + // A lightweight reference to a person, used where a payload merely points at someone. + UpdatedBy *PlatformPersonReference `json:"updated_by,omitempty"` + // Time the agent was created. + CreatedAt *time.Time `json:"created_at,omitempty"` + // Time the agent was last updated. + UpdatedAt *time.Time `json:"updated_at,omitempty"` } -func (o *PlatformAgent) GetAgentID() string { - if o == nil { - return "" +func (p PlatformAgent) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PlatformAgent) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name", "agent_id", "capabilities"}); err != nil { + return err } - return o.AgentID + return nil } func (o *PlatformAgent) GetName() string { @@ -35,6 +79,62 @@ func (o *PlatformAgent) GetDescription() *string { return o.Description } +func (o *PlatformAgent) GetInstructions() *string { + if o == nil { + return nil + } + return o.Instructions +} + +func (o *PlatformAgent) GetSkills() []PlatformAgentSkill { + if o == nil { + return nil + } + return o.Skills +} + +func (o *PlatformAgent) GetDependencies() []PlatformAgentDependency { + if o == nil { + return nil + } + return o.Dependencies +} + +func (o *PlatformAgent) GetTools() []PlatformAgentToolset { + if o == nil { + return nil + } + return o.Tools +} + +func (o *PlatformAgent) GetGleanSearchConfig() *PlatformAgentGleanSearchConfig { + if o == nil { + return nil + } + return o.GleanSearchConfig +} + +func (o *PlatformAgent) GetModel() *PlatformAgentLlmModel { + if o == nil { + return nil + } + return o.Model +} + +func (o *PlatformAgent) GetServiceCredentials() []PlatformAgentServiceCredential { + if o == nil { + return nil + } + return o.ServiceCredentials +} + +func (o *PlatformAgent) GetAgentID() string { + if o == nil { + return "" + } + return o.AgentID +} + func (o *PlatformAgent) GetMetadata() map[string]any { if o == nil { return nil @@ -48,3 +148,59 @@ func (o *PlatformAgent) GetCapabilities() PlatformAgentCapabilities { } return o.Capabilities } + +func (o *PlatformAgent) GetUseAgentIdentity() *bool { + if o == nil { + return nil + } + return o.UseAgentIdentity +} + +func (o *PlatformAgent) GetChannels() *PlatformAgentChannels { + if o == nil { + return nil + } + return o.Channels +} + +func (o *PlatformAgent) GetSubagents() []PlatformSubagent { + if o == nil { + return nil + } + return o.Subagents +} + +func (o *PlatformAgent) GetTrigger() *PlatformAgentTrigger { + if o == nil { + return nil + } + return o.Trigger +} + +func (o *PlatformAgent) GetCreatedBy() *PlatformPersonReference { + if o == nil { + return nil + } + return o.CreatedBy +} + +func (o *PlatformAgent) GetUpdatedBy() *PlatformPersonReference { + if o == nil { + return nil + } + return o.UpdatedBy +} + +func (o *PlatformAgent) GetCreatedAt() *time.Time { + if o == nil { + return nil + } + return o.CreatedAt +} + +func (o *PlatformAgent) GetUpdatedAt() *time.Time { + if o == nil { + return nil + } + return o.UpdatedAt +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentchannels.go b/tests/mockserver/internal/sdk/models/components/platformagentchannels.go new file mode 100644 index 00000000..07f1318f --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentchannels.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentChannels - Messaging channels the agent is deployed to. Requires `use_agent_identity`. +type PlatformAgentChannels struct { + // Slack deployment of the agent. + Slack *PlatformAgentSlackChannel `json:"slack,omitempty"` +} + +func (o *PlatformAgentChannels) GetSlack() *PlatformAgentSlackChannel { + if o == nil { + return nil + } + return o.Slack +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentcontenttrigger.go b/tests/mockserver/internal/sdk/models/components/platformagentcontenttrigger.go new file mode 100644 index 00000000..24495c40 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentcontenttrigger.go @@ -0,0 +1,54 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentContentTrigger - A subscribed document event and the filters that narrow it. +type PlatformAgentContentTrigger struct { + // Event source in enum form, for example `JIRA`. + Datasource string `json:"datasource"` + // Subscribed event identifier, for example `JIRA_TICKET_CREATED`. + TemplateID string `json:"template_id"` + // Document type the entry watches. + DocumentType *string `json:"document_type,omitempty"` + // Seconds before an event time carried in the document at which the agent runs. Pre-event triggers only. + // + TimeOffsetSeconds *int `json:"time_offset_seconds,omitempty"` + // Filters on the document that fired the event. Every filter must match for the entry to fire. Without filters, every event for this entry fires. + // + Filters []PlatformAgentContentTriggerFilter `json:"filters,omitempty"` +} + +func (o *PlatformAgentContentTrigger) GetDatasource() string { + if o == nil { + return "" + } + return o.Datasource +} + +func (o *PlatformAgentContentTrigger) GetTemplateID() string { + if o == nil { + return "" + } + return o.TemplateID +} + +func (o *PlatformAgentContentTrigger) GetDocumentType() *string { + if o == nil { + return nil + } + return o.DocumentType +} + +func (o *PlatformAgentContentTrigger) GetTimeOffsetSeconds() *int { + if o == nil { + return nil + } + return o.TimeOffsetSeconds +} + +func (o *PlatformAgentContentTrigger) GetFilters() []PlatformAgentContentTriggerFilter { + if o == nil { + return nil + } + return o.Filters +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentcontenttriggerfilter.go b/tests/mockserver/internal/sdk/models/components/platformagentcontenttriggerfilter.go new file mode 100644 index 00000000..d8fee0fe --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentcontenttriggerfilter.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentContentTriggerFilter - A filter on the document that fired a content trigger. Values are ORed. +type PlatformAgentContentTriggerFilter struct { + // `TITLE` or `CONTENT` for the document's title or body, or a facet key. + Field string `json:"field"` + // Operator of a content trigger filter. + Operator PlatformAgentContentTriggerFilterOperator `json:"operator"` + // Match values. Required except for FIELD_CHANGED. + Values []string `json:"values,omitempty"` +} + +func (o *PlatformAgentContentTriggerFilter) GetField() string { + if o == nil { + return "" + } + return o.Field +} + +func (o *PlatformAgentContentTriggerFilter) GetOperator() PlatformAgentContentTriggerFilterOperator { + if o == nil { + return PlatformAgentContentTriggerFilterOperator("") + } + return o.Operator +} + +func (o *PlatformAgentContentTriggerFilter) GetValues() []string { + if o == nil { + return nil + } + return o.Values +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentcontenttriggerfilteroperator.go b/tests/mockserver/internal/sdk/models/components/platformagentcontenttriggerfilteroperator.go new file mode 100644 index 00000000..105364b9 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentcontenttriggerfilteroperator.go @@ -0,0 +1,41 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" +) + +// PlatformAgentContentTriggerFilterOperator - Operator of a content trigger filter. +type PlatformAgentContentTriggerFilterOperator string + +const ( + PlatformAgentContentTriggerFilterOperatorIsOneOf PlatformAgentContentTriggerFilterOperator = "IS_ONE_OF" + PlatformAgentContentTriggerFilterOperatorIsNotOneOf PlatformAgentContentTriggerFilterOperator = "IS_NOT_ONE_OF" + PlatformAgentContentTriggerFilterOperatorContains PlatformAgentContentTriggerFilterOperator = "CONTAINS" + PlatformAgentContentTriggerFilterOperatorFieldChanged PlatformAgentContentTriggerFilterOperator = "FIELD_CHANGED" +) + +func (e PlatformAgentContentTriggerFilterOperator) ToPointer() *PlatformAgentContentTriggerFilterOperator { + return &e +} +func (e *PlatformAgentContentTriggerFilterOperator) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "IS_ONE_OF": + fallthrough + case "IS_NOT_ONE_OF": + fallthrough + case "CONTAINS": + fallthrough + case "FIELD_CHANGED": + *e = PlatformAgentContentTriggerFilterOperator(v) + return nil + default: + return fmt.Errorf("invalid value for PlatformAgentContentTriggerFilterOperator: %v", v) + } +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentdependency.go b/tests/mockserver/internal/sdk/models/components/platformagentdependency.go new file mode 100644 index 00000000..44ab8c8d --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentdependency.go @@ -0,0 +1,58 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" +) + +// PlatformAgentDependencyType - Type of a published artifact referenced as a dependency. +type PlatformAgentDependencyType string + +const ( + PlatformAgentDependencyTypeSkill PlatformAgentDependencyType = "SKILL" + PlatformAgentDependencyTypeAgent PlatformAgentDependencyType = "AGENT" +) + +func (e PlatformAgentDependencyType) ToPointer() *PlatformAgentDependencyType { + return &e +} +func (e *PlatformAgentDependencyType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "SKILL": + fallthrough + case "AGENT": + *e = PlatformAgentDependencyType(v) + return nil + default: + return fmt.Errorf("invalid value for PlatformAgentDependencyType: %v", v) + } +} + +// PlatformAgentDependency - A published artifact the agent references by platform ID. +type PlatformAgentDependency struct { + // ID of the referenced artifact: the `skill_id` of a published skill when `type` is SKILL, or the `agent_id` of a published agent when `type` is AGENT. + // + ID string `json:"id"` + // Type of a published artifact referenced as a dependency. + Type PlatformAgentDependencyType `json:"type"` +} + +func (o *PlatformAgentDependency) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *PlatformAgentDependency) GetType() PlatformAgentDependencyType { + if o == nil { + return PlatformAgentDependencyType("") + } + return o.Type +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentgetresponse.go b/tests/mockserver/internal/sdk/models/components/platformagentgetresponse.go index 3df4f65d..e62c09fb 100644 --- a/tests/mockserver/internal/sdk/models/components/platformagentgetresponse.go +++ b/tests/mockserver/internal/sdk/models/components/platformagentgetresponse.go @@ -3,6 +3,7 @@ package components type PlatformAgentGetResponse struct { + // An agent available to the authenticated user. Agent PlatformAgent `json:"agent"` // Platform-generated request ID for support correlation. RequestID string `json:"request_id"` diff --git a/tests/mockserver/internal/sdk/models/components/platformagentgleansearchconfig.go b/tests/mockserver/internal/sdk/models/components/platformagentgleansearchconfig.go new file mode 100644 index 00000000..9a0847b2 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentgleansearchconfig.go @@ -0,0 +1,37 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentGleanSearchConfig - Glean Search configuration. When omitted, Glean Search is disabled for the agent. An empty object searches all company knowledge available to the invoking user. Populated lists restrict search to the union of the listed datasource instances and URLs. +type PlatformAgentGleanSearchConfig struct { + // ID of a knowledge profile whose permissions Glean Search uses instead of the invoking user's permissions. + // + KnowledgeProfileID *string `json:"knowledge_profile_id,omitempty"` + // Datasource instance names that search is restricted to. Each name selects one instance, not every instance of a datasource type. + // + DatasourceInstances []string `json:"datasource_instances,omitempty"` + // Document or folder URLs that search is restricted to. Folder URLs include every document contained in the folder. + // + Urls []string `json:"urls,omitempty"` +} + +func (o *PlatformAgentGleanSearchConfig) GetKnowledgeProfileID() *string { + if o == nil { + return nil + } + return o.KnowledgeProfileID +} + +func (o *PlatformAgentGleanSearchConfig) GetDatasourceInstances() []string { + if o == nil { + return nil + } + return o.DatasourceInstances +} + +func (o *PlatformAgentGleanSearchConfig) GetUrls() []string { + if o == nil { + return nil + } + return o.Urls +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentinputfield.go b/tests/mockserver/internal/sdk/models/components/platformagentinputfield.go new file mode 100644 index 00000000..1680d71f --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentinputfield.go @@ -0,0 +1,100 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" +) + +// PlatformAgentInputFieldType - Type of an agent input field. +type PlatformAgentInputFieldType string + +const ( + PlatformAgentInputFieldTypeText PlatformAgentInputFieldType = "TEXT" + PlatformAgentInputFieldTypeSelect PlatformAgentInputFieldType = "SELECT" + PlatformAgentInputFieldTypeDate PlatformAgentInputFieldType = "DATE" + PlatformAgentInputFieldTypeDocument PlatformAgentInputFieldType = "DOCUMENT" +) + +func (e PlatformAgentInputFieldType) ToPointer() *PlatformAgentInputFieldType { + return &e +} +func (e *PlatformAgentInputFieldType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "TEXT": + fallthrough + case "SELECT": + fallthrough + case "DATE": + fallthrough + case "DOCUMENT": + *e = PlatformAgentInputFieldType(v) + return nil + default: + return fmt.Errorf("invalid value for PlatformAgentInputFieldType: %v", v) + } +} + +// PlatformAgentInputField - A typed input of the agent, referenced from the instructions as `[[display_name]]`. +type PlatformAgentInputField struct { + // Label of the field and its placeholder name in the instructions. Unique within the agent. + DisplayName string `json:"display_name"` + // Type of an agent input field. + Type PlatformAgentInputFieldType `json:"type"` + // Helper text describing the field. + Description *string `json:"description,omitempty"` + // Pre-filled value. For SELECT fields, one of the option values. For DATE fields, a `YYYY-MM-DD` date. + // + DefaultValue *string `json:"default_value,omitempty"` + // Whether the field accepts empty input. Defaults to false. + IsOptional *bool `json:"is_optional,omitempty"` + // Choices of a SELECT field. + Options []PlatformAgentInputFieldOption `json:"options,omitempty"` +} + +func (o *PlatformAgentInputField) GetDisplayName() string { + if o == nil { + return "" + } + return o.DisplayName +} + +func (o *PlatformAgentInputField) GetType() PlatformAgentInputFieldType { + if o == nil { + return PlatformAgentInputFieldType("") + } + return o.Type +} + +func (o *PlatformAgentInputField) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +func (o *PlatformAgentInputField) GetDefaultValue() *string { + if o == nil { + return nil + } + return o.DefaultValue +} + +func (o *PlatformAgentInputField) GetIsOptional() *bool { + if o == nil { + return nil + } + return o.IsOptional +} + +func (o *PlatformAgentInputField) GetOptions() []PlatformAgentInputFieldOption { + if o == nil { + return nil + } + return o.Options +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentinputfieldoption.go b/tests/mockserver/internal/sdk/models/components/platformagentinputfieldoption.go new file mode 100644 index 00000000..d21329bc --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentinputfieldoption.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentInputFieldOption - A choice of a SELECT input field. +type PlatformAgentInputFieldOption struct { + // Value substituted into the field's placeholder. + Value string `json:"value"` +} + +func (o *PlatformAgentInputFieldOption) GetValue() string { + if o == nil { + return "" + } + return o.Value +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentllmmodel.go b/tests/mockserver/internal/sdk/models/components/platformagentllmmodel.go new file mode 100644 index 00000000..4a10ae80 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentllmmodel.go @@ -0,0 +1,67 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" +) + +// PlatformAgentLlmModelMode - Reasoning effort per turn. Defaults to ADVANCED. +type PlatformAgentLlmModelMode string + +const ( + PlatformAgentLlmModelModeAdvanced PlatformAgentLlmModelMode = "ADVANCED" + PlatformAgentLlmModelModeFast PlatformAgentLlmModelMode = "FAST" +) + +func (e PlatformAgentLlmModelMode) ToPointer() *PlatformAgentLlmModelMode { + return &e +} +func (e *PlatformAgentLlmModelMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "ADVANCED": + fallthrough + case "FAST": + *e = PlatformAgentLlmModelMode(v) + return nil + default: + return fmt.Errorf("invalid value for PlatformAgentLlmModelMode: %v", v) + } +} + +// PlatformAgentLlmModel - Agentic model the agent runs on and its reasoning effort. +type PlatformAgentLlmModel struct { + // Agentic model set ID. When omitted, the tenant default is used. + ModelSetID *string `json:"model_set_id,omitempty"` + // Reasoning effort per turn. Defaults to ADVANCED. + Mode *PlatformAgentLlmModelMode `json:"mode,omitempty"` + // Whether the agent follows model upgrades. When omitted, a model with a `model_set_id` is pinned, and a model without one follows the tenant default. + // + AutoUpgrade *bool `json:"auto_upgrade,omitempty"` +} + +func (o *PlatformAgentLlmModel) GetModelSetID() *string { + if o == nil { + return nil + } + return o.ModelSetID +} + +func (o *PlatformAgentLlmModel) GetMode() *PlatformAgentLlmModelMode { + if o == nil { + return nil + } + return o.Mode +} + +func (o *PlatformAgentLlmModel) GetAutoUpgrade() *bool { + if o == nil { + return nil + } + return o.AutoUpgrade +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentprompt.go b/tests/mockserver/internal/sdk/models/components/platformagentprompt.go new file mode 100644 index 00000000..51f0920d --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentprompt.go @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentPrompt - A conversation starter whose template is sent as the first chat message. +type PlatformAgentPrompt struct { + // Short title of the conversation starter. + DisplayName string `json:"display_name"` + // Chat message that starts the conversation. May contain `[[variable_name]]` placeholders. + // + Template string `json:"template"` +} + +func (o *PlatformAgentPrompt) GetDisplayName() string { + if o == nil { + return "" + } + return o.DisplayName +} + +func (o *PlatformAgentPrompt) GetTemplate() string { + if o == nil { + return "" + } + return o.Template +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentschedule.go b/tests/mockserver/internal/sdk/models/components/platformagentschedule.go new file mode 100644 index 00000000..9a9c01ae --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentschedule.go @@ -0,0 +1,51 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "mockserver/internal/sdk/utils" + "time" +) + +// PlatformAgentSchedule - Wall-clock schedule for INPUT_FORM and CHAT_MESSAGE agents. +type PlatformAgentSchedule struct { + // Five-field Unix cron expression, for example `0 9 * * 1-5`. + Frequency string `json:"frequency"` + // IANA time zone name, for example `America/Los_Angeles`. + Timezone string `json:"timezone"` + // ISO 8601 timestamp with an explicit offset before which the schedule stays dormant. + // + StartAt *time.Time `json:"start_at,omitempty"` +} + +func (p PlatformAgentSchedule) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PlatformAgentSchedule) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"frequency", "timezone"}); err != nil { + return err + } + return nil +} + +func (o *PlatformAgentSchedule) GetFrequency() string { + if o == nil { + return "" + } + return o.Frequency +} + +func (o *PlatformAgentSchedule) GetTimezone() string { + if o == nil { + return "" + } + return o.Timezone +} + +func (o *PlatformAgentSchedule) GetStartAt() *time.Time { + if o == nil { + return nil + } + return o.StartAt +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentselectedtool.go b/tests/mockserver/internal/sdk/models/components/platformagentselectedtool.go new file mode 100644 index 00000000..28fd4df7 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentselectedtool.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentSelectedTool - A tool selected from a tool provider. +type PlatformAgentSelectedTool struct { + // Name of the tool within its provider. + DisplayName string `json:"display_name"` +} + +func (o *PlatformAgentSelectedTool) GetDisplayName() string { + if o == nil { + return "" + } + return o.DisplayName +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentservicecredential.go b/tests/mockserver/internal/sdk/models/components/platformagentservicecredential.go new file mode 100644 index 00000000..2942af95 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentservicecredential.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentServiceCredential - A service credential the agent uses. +type PlatformAgentServiceCredential struct { + // ID of the service credential. + ServiceCredentialID string `json:"service_credential_id"` +} + +func (o *PlatformAgentServiceCredential) GetServiceCredentialID() string { + if o == nil { + return "" + } + return o.ServiceCredentialID +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentskill.go b/tests/mockserver/internal/sdk/models/components/platformagentskill.go new file mode 100644 index 00000000..09511ec6 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentskill.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentSkill - A skill defined inline in the agent. Reference a published skill through `dependencies` instead. +type PlatformAgentSkill struct { + // Human-readable skill name. + DisplayName string `json:"display_name"` + // Main skill content, inlined from `SKILL.md`. + MainContent string `json:"main_content"` + // Additional files bundled in the skill folder. + Files []PlatformSkillSourcePreviewFile `json:"files,omitempty"` +} + +func (o *PlatformAgentSkill) GetDisplayName() string { + if o == nil { + return "" + } + return o.DisplayName +} + +func (o *PlatformAgentSkill) GetMainContent() string { + if o == nil { + return "" + } + return o.MainContent +} + +func (o *PlatformAgentSkill) GetFiles() []PlatformSkillSourcePreviewFile { + if o == nil { + return nil + } + return o.Files +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentslackchannel.go b/tests/mockserver/internal/sdk/models/components/platformagentslackchannel.go new file mode 100644 index 00000000..f0a217c9 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentslackchannel.go @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentSlackChannel - Slack deployment of the agent. +type PlatformAgentSlackChannel struct { + // ID of the service credential for the Slack app. + ServiceCredentialID *string `json:"service_credential_id,omitempty"` + // Slack channels the agent is mapped to. + ChannelMappings []PlatformAgentSlackChannelMapping `json:"channel_mappings,omitempty"` + // Instructions that decide which messages the agent engages with. + EngagementFilterInstructions *string `json:"engagement_filter_instructions,omitempty"` + // Whether the agent responds to mentions in channels that are not mapped. + AllowMentionsOutsideChannelMappings *bool `json:"allow_mentions_outside_channel_mappings,omitempty"` +} + +func (o *PlatformAgentSlackChannel) GetServiceCredentialID() *string { + if o == nil { + return nil + } + return o.ServiceCredentialID +} + +func (o *PlatformAgentSlackChannel) GetChannelMappings() []PlatformAgentSlackChannelMapping { + if o == nil { + return nil + } + return o.ChannelMappings +} + +func (o *PlatformAgentSlackChannel) GetEngagementFilterInstructions() *string { + if o == nil { + return nil + } + return o.EngagementFilterInstructions +} + +func (o *PlatformAgentSlackChannel) GetAllowMentionsOutsideChannelMappings() *bool { + if o == nil { + return nil + } + return o.AllowMentionsOutsideChannelMappings +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagentslackchannelmapping.go b/tests/mockserver/internal/sdk/models/components/platformagentslackchannelmapping.go new file mode 100644 index 00000000..5d24cf6e --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagentslackchannelmapping.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformAgentSlackChannelMapping - A Slack channel the agent is mapped to. +type PlatformAgentSlackChannelMapping struct { + // ID of the Slack channel. + ChannelID string `json:"channel_id"` + // Whether the agent engages with messages without being mentioned. + AutoEngage *bool `json:"auto_engage,omitempty"` +} + +func (o *PlatformAgentSlackChannelMapping) GetChannelID() string { + if o == nil { + return "" + } + return o.ChannelID +} + +func (o *PlatformAgentSlackChannelMapping) GetAutoEngage() *bool { + if o == nil { + return nil + } + return o.AutoEngage +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagenttoolset.go b/tests/mockserver/internal/sdk/models/components/platformagenttoolset.go new file mode 100644 index 00000000..e663f381 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagenttoolset.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// CustomisationData - Settings applied to every tool in this provider entry. +type CustomisationData struct { + // Whether tools in this entry run without asking the user for confirmation. Defaults to false. + // + SkipConfirmation *bool `json:"skip_confirmation,omitempty"` +} + +func (o *CustomisationData) GetSkipConfirmation() *bool { + if o == nil { + return nil + } + return o.SkipConfirmation +} + +// PlatformAgentToolset - A tool provider and the subset of its tools available to the agent. +type PlatformAgentToolset struct { + // ID of the tool provider, or `native` for built-in Glean tools. + ToolProviderID string `json:"tool_provider_id"` + // Tools from the provider that are exposed to the agent. + SelectedTools []PlatformAgentSelectedTool `json:"selected_tools,omitempty"` + // Settings applied to every tool in this provider entry. + CustomisationData *CustomisationData `json:"customisation_data,omitempty"` +} + +func (o *PlatformAgentToolset) GetToolProviderID() string { + if o == nil { + return "" + } + return o.ToolProviderID +} + +func (o *PlatformAgentToolset) GetSelectedTools() []PlatformAgentSelectedTool { + if o == nil { + return nil + } + return o.SelectedTools +} + +func (o *PlatformAgentToolset) GetCustomisationData() *CustomisationData { + if o == nil { + return nil + } + return o.CustomisationData +} diff --git a/tests/mockserver/internal/sdk/models/components/platformagenttrigger.go b/tests/mockserver/internal/sdk/models/components/platformagenttrigger.go new file mode 100644 index 00000000..43f143e8 --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformagenttrigger.go @@ -0,0 +1,101 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" +) + +// PlatformAgentTriggerType - Invocation mode of the agent. +type PlatformAgentTriggerType string + +const ( + PlatformAgentTriggerTypeChatMessage PlatformAgentTriggerType = "CHAT_MESSAGE" + PlatformAgentTriggerTypeInputForm PlatformAgentTriggerType = "INPUT_FORM" + PlatformAgentTriggerTypeContentTrigger PlatformAgentTriggerType = "CONTENT_TRIGGER" +) + +func (e PlatformAgentTriggerType) ToPointer() *PlatformAgentTriggerType { + return &e +} +func (e *PlatformAgentTriggerType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "CHAT_MESSAGE": + fallthrough + case "INPUT_FORM": + fallthrough + case "CONTENT_TRIGGER": + *e = PlatformAgentTriggerType(v) + return nil + default: + return fmt.Errorf("invalid value for PlatformAgentTriggerType: %v", v) + } +} + +// Content - Document events that run a CONTENT_TRIGGER agent. +type Content struct { + // Event subscriptions. The agent runs when any entry matches. + Triggers []PlatformAgentContentTrigger `json:"triggers"` +} + +func (o *Content) GetTriggers() []PlatformAgentContentTrigger { + if o == nil { + return []PlatformAgentContentTrigger{} + } + return o.Triggers +} + +// PlatformAgentTrigger - How the agent is invoked. Applies to top-level agents only. +type PlatformAgentTrigger struct { + // Invocation mode of the agent. + Type PlatformAgentTriggerType `json:"type"` + // Typed inputs collected when the agent is invoked. Valid for INPUT_FORM and CONTENT_TRIGGER. An INPUT_FORM trigger without input fields runs with no input. + // + InputFields []PlatformAgentInputField `json:"input_fields,omitempty"` + // Wall-clock schedule for INPUT_FORM and CHAT_MESSAGE agents. + Schedule *PlatformAgentSchedule `json:"schedule,omitempty"` + // Conversation starters. Valid only for CHAT_MESSAGE. + Prompts []PlatformAgentPrompt `json:"prompts,omitempty"` + // Document events that run a CONTENT_TRIGGER agent. + Content *Content `json:"content,omitempty"` +} + +func (o *PlatformAgentTrigger) GetType() PlatformAgentTriggerType { + if o == nil { + return PlatformAgentTriggerType("") + } + return o.Type +} + +func (o *PlatformAgentTrigger) GetInputFields() []PlatformAgentInputField { + if o == nil { + return nil + } + return o.InputFields +} + +func (o *PlatformAgentTrigger) GetSchedule() *PlatformAgentSchedule { + if o == nil { + return nil + } + return o.Schedule +} + +func (o *PlatformAgentTrigger) GetPrompts() []PlatformAgentPrompt { + if o == nil { + return nil + } + return o.Prompts +} + +func (o *PlatformAgentTrigger) GetContent() *Content { + if o == nil { + return nil + } + return o.Content +} diff --git a/tests/mockserver/internal/sdk/models/components/platformskillsourcepreviewfile.go b/tests/mockserver/internal/sdk/models/components/platformskillsourcepreviewfile.go index 7622555e..458c4054 100644 --- a/tests/mockserver/internal/sdk/models/components/platformskillsourcepreviewfile.go +++ b/tests/mockserver/internal/sdk/models/components/platformskillsourcepreviewfile.go @@ -6,6 +6,7 @@ import ( "mockserver/internal/sdk/utils" ) +// PlatformSkillSourcePreviewFile - A supporting file bundled with a skill. type PlatformSkillSourcePreviewFile struct { // Relative path within the skill bundle. Path string `json:"path"` diff --git a/tests/mockserver/internal/sdk/models/components/platformsubagent.go b/tests/mockserver/internal/sdk/models/components/platformsubagent.go new file mode 100644 index 00000000..a1114e5d --- /dev/null +++ b/tests/mockserver/internal/sdk/models/components/platformsubagent.go @@ -0,0 +1,100 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// PlatformSubagent - An isolated execution unit that its parent agent dispatches work to. A subagent has no trigger, channels, or subagents of its own, and its dependencies may only reference published skills. +type PlatformSubagent struct { + // Human-readable name. + Name string `json:"name"` + // Description of the agent's purpose and behavior. + Description *string `json:"description,omitempty"` + // System prompt the agent follows. + Instructions *string `json:"instructions,omitempty"` + // Skills defined inline. + Skills []PlatformAgentSkill `json:"skills,omitempty"` + // Published artifacts referenced by platform ID. Their content is not inlined in `skills` or `subagents`. + // + Dependencies []PlatformAgentDependency `json:"dependencies,omitempty"` + // Tool providers and the subset of their tools available to the agent. + Tools []PlatformAgentToolset `json:"tools,omitempty"` + // Glean Search configuration. When omitted, Glean Search is disabled for the agent. An empty object searches all company knowledge available to the invoking user. Populated lists restrict search to the union of the listed datasource instances and URLs. + // + GleanSearchConfig *PlatformAgentGleanSearchConfig `json:"glean_search_config,omitempty"` + // Agentic model the agent runs on and its reasoning effort. + Model *PlatformAgentLlmModel `json:"model,omitempty"` + // Service credentials the agent uses to call tools. + ServiceCredentials []PlatformAgentServiceCredential `json:"service_credentials,omitempty"` + // ID of the subagent, unique within its parent agent. It is not an agent ID and cannot be used with other Agents APIs. + // + SubagentID *string `json:"subagent_id,omitempty"` +} + +func (o *PlatformSubagent) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *PlatformSubagent) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +func (o *PlatformSubagent) GetInstructions() *string { + if o == nil { + return nil + } + return o.Instructions +} + +func (o *PlatformSubagent) GetSkills() []PlatformAgentSkill { + if o == nil { + return nil + } + return o.Skills +} + +func (o *PlatformSubagent) GetDependencies() []PlatformAgentDependency { + if o == nil { + return nil + } + return o.Dependencies +} + +func (o *PlatformSubagent) GetTools() []PlatformAgentToolset { + if o == nil { + return nil + } + return o.Tools +} + +func (o *PlatformSubagent) GetGleanSearchConfig() *PlatformAgentGleanSearchConfig { + if o == nil { + return nil + } + return o.GleanSearchConfig +} + +func (o *PlatformSubagent) GetModel() *PlatformAgentLlmModel { + if o == nil { + return nil + } + return o.Model +} + +func (o *PlatformSubagent) GetServiceCredentials() []PlatformAgentServiceCredential { + if o == nil { + return nil + } + return o.ServiceCredentials +} + +func (o *PlatformSubagent) GetSubagentID() *string { + if o == nil { + return nil + } + return o.SubagentID +} diff --git a/tests/summarize_test.go b/tests/summarize_test.go index c35381da..f1055702 100644 --- a/tests/summarize_test.go +++ b/tests/summarize_test.go @@ -27,13 +27,13 @@ func TestSummarize_Summarize(t *testing.T) { DocumentSpecs: []components.DocumentSpecUnion{ components.CreateDocumentSpecUnionDocumentSpec1( components.DocumentSpec1{ - URL: "https://hungry-coast.biz/", + URL: "https://uncomfortable-translation.name/", }, ), - components.CreateDocumentSpecUnionDocumentSpec4( - components.DocumentSpec4{ - UgcType: components.DocumentSpecUgcType2Chats, - UgcID: "", + components.CreateDocumentSpecUnionDocumentSpec3( + components.DocumentSpec3{ + UgcType: components.DocumentSpecUgcType1Chats, + ContentID: 252865, }, ), }, From 09ded3cb2783f7f266ec224bb6d554d4a422fff7 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Thu, 19 Nov 2026 10:42:27 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow