Skip to content

Commit 0de537a

Browse files
feat(api): api update
1 parent 107a1dd commit 0de537a

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 30
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/arcade-ai%2Farcade-engine-6ff494eafa2c154892716407682bb2296cff4f18c45765c5fb16bdf36f452ae1.yml
3-
openapi_spec_hash: 63dde2481a7d51042a241bfba232b0b0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/arcade-ai%2Farcade-engine-299395b669a4d14b85501de63b43317c15964a7491e11eb92fb42909bbf8b68b.yml
3+
openapi_spec_hash: 7d17916818ff231f5a79ae345b0dc01b
44
config_hash: bf64816643634a621cd0ffd93d9c4347

tool.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func NewToolService(opts ...option.RequestOption) (r *ToolService) {
4343
}
4444

4545
// Returns a page of tools from the engine configuration, optionally filtered by
46-
// toolkit
46+
// toolkit and/or metadata
4747
func (r *ToolService) List(ctx context.Context, query ToolListParams, opts ...option.RequestOption) (res *pagination.OffsetPage[ToolDefinition], err error) {
4848
var raw *http.Response
4949
opts = slices.Concat(r.Options, opts)
@@ -62,7 +62,7 @@ func (r *ToolService) List(ctx context.Context, query ToolListParams, opts ...op
6262
}
6363

6464
// Returns a page of tools from the engine configuration, optionally filtered by
65-
// toolkit
65+
// toolkit and/or metadata
6666
func (r *ToolService) ListAutoPaging(ctx context.Context, query ToolListParams, opts ...option.RequestOption) *pagination.OffsetPageAutoPager[ToolDefinition] {
6767
return pagination.NewOffsetPageAutoPager(r.List(ctx, query, opts...))
6868
}
@@ -860,6 +860,11 @@ func (r valueSchemaJSON) RawJSON() string {
860860
}
861861

862862
type ToolListParams struct {
863+
// JSON metadata filter. Array fields (service_domains, operations): shorthand
864+
// array or object with any_of/all_of/none_of operators (case-insensitive). Boolean
865+
// fields: read_only, destructive, idempotent, open_world. Extras: case-sensitive
866+
// key-value subset match.
867+
Filter param.Field[string] `query:"filter"`
863868
// Include all versions of each tool
864869
IncludeAllVersions param.Field[bool] `query:"include_all_versions"`
865870
// Comma separated tool formats that will be included in the response.

tool_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func TestToolListWithOptionalParams(t *testing.T) {
2626
option.WithAPIKey("My API Key"),
2727
)
2828
_, err := client.Tools.List(context.TODO(), arcadego.ToolListParams{
29+
Filter: arcadego.F("filter"),
2930
IncludeAllVersions: arcadego.F(true),
3031
IncludeFormat: arcadego.F([]arcadego.ToolListParamsIncludeFormat{arcadego.ToolListParamsIncludeFormatArcade}),
3132
Limit: arcadego.F(int64(0)),

toolformatted.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ type ToolFormattedListResponse map[string]interface{}
7878
type ToolFormattedGetResponse map[string]interface{}
7979

8080
type ToolFormattedListParams struct {
81+
// JSON metadata filter. Array fields (service_domains, operations): shorthand
82+
// array or object with any_of/all_of/none_of operators (case-insensitive). Boolean
83+
// fields: read_only, destructive, idempotent, open_world. Extras: case-sensitive
84+
// key-value subset match.
85+
Filter param.Field[string] `query:"filter"`
8186
// Provider format
8287
Format param.Field[string] `query:"format"`
8388
// Include all versions of each tool

toolformatted_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func TestToolFormattedListWithOptionalParams(t *testing.T) {
2626
option.WithAPIKey("My API Key"),
2727
)
2828
_, err := client.Tools.Formatted.List(context.TODO(), arcadego.ToolFormattedListParams{
29+
Filter: arcadego.F("filter"),
2930
Format: arcadego.F("format"),
3031
IncludeAllVersions: arcadego.F(true),
3132
Limit: arcadego.F(int64(0)),

0 commit comments

Comments
 (0)