List tool sets
package main
import (
"context"
"fmt"
"github.com/cadenya/cadenya-go"
"github.com/cadenya/cadenya-go/option"
)
func main() {
client := cadenya.NewClient(
option.WithAPIKey("My API Key"),
)
page, err := client.ToolSets.List(context.TODO(), cadenya.ToolSetListParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}
{
"items": [
{
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"adapter": {
"http": {
"baseUrl": "baseUrl",
"headers": {
"foo": "string"
}
},
"mcp": {
"excludeTools": {
"operator": "OPERATOR_UNSPECIFIED",
"filters": [
{
"attribute": "ATTRIBUTE_UNSPECIFIED",
"matcher": {
"caseSensitive": true,
"contains": "contains",
"endsWith": "endsWith",
"exact": "exact",
"regex": "regex",
"startsWith": "startsWith"
}
}
]
},
"headers": {
"foo": "string"
},
"includeTools": {
"operator": "OPERATOR_UNSPECIFIED",
"filters": [
{
"attribute": "ATTRIBUTE_UNSPECIFIED",
"matcher": {
"caseSensitive": true,
"contains": "contains",
"endsWith": "endsWith",
"exact": "exact",
"regex": "regex",
"startsWith": "startsWith"
}
}
]
},
"toolApprovals": {
"always": true,
"only": {
"operator": "OPERATOR_UNSPECIFIED",
"filters": [
{
"attribute": "ATTRIBUTE_UNSPECIFIED",
"matcher": {
"caseSensitive": true,
"contains": "contains",
"endsWith": "endsWith",
"exact": "exact",
"regex": "regex",
"startsWith": "startsWith"
}
}
]
}
},
"url": "url"
}
},
"description": "description"
},
"info": {
"agentCount": 0,
"createdBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_USER",
"email": "email",
"name": "name"
}
},
"lastSync": "2019-12-27T18:11:19.117Z",
"toolCount": 0
}
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}Returns Examples
{
"items": [
{
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"adapter": {
"http": {
"baseUrl": "baseUrl",
"headers": {
"foo": "string"
}
},
"mcp": {
"excludeTools": {
"operator": "OPERATOR_UNSPECIFIED",
"filters": [
{
"attribute": "ATTRIBUTE_UNSPECIFIED",
"matcher": {
"caseSensitive": true,
"contains": "contains",
"endsWith": "endsWith",
"exact": "exact",
"regex": "regex",
"startsWith": "startsWith"
}
}
]
},
"headers": {
"foo": "string"
},
"includeTools": {
"operator": "OPERATOR_UNSPECIFIED",
"filters": [
{
"attribute": "ATTRIBUTE_UNSPECIFIED",
"matcher": {
"caseSensitive": true,
"contains": "contains",
"endsWith": "endsWith",
"exact": "exact",
"regex": "regex",
"startsWith": "startsWith"
}
}
]
},
"toolApprovals": {
"always": true,
"only": {
"operator": "OPERATOR_UNSPECIFIED",
"filters": [
{
"attribute": "ATTRIBUTE_UNSPECIFIED",
"matcher": {
"caseSensitive": true,
"contains": "contains",
"endsWith": "endsWith",
"exact": "exact",
"regex": "regex",
"startsWith": "startsWith"
}
}
]
}
},
"url": "url"
}
},
"description": "description"
},
"info": {
"agentCount": 0,
"createdBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_USER",
"email": "email",
"name": "name"
}
},
"lastSync": "2019-12-27T18:11:19.117Z",
"toolCount": 0
}
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}