Skip to content

Commit a16eaef

Browse files
feat(api)!: use input_schema instead of parameters for tools
1 parent c9da417 commit a16eaef

File tree

7 files changed

+661
-216
lines changed

7 files changed

+661
-216
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: 109
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-4337a6181c2db17737133e944b4b660a5e00ea10dce6be3252918e39451e9b5f.yml
3-
openapi_spec_hash: a0bc8f4b5f45bc5741fed8eaa61171c3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-5f0f0b99d1b0bf40e00e11f5d134ed13de97799cf2dfea0c8612e2f003584505.yml
3+
openapi_spec_hash: 5f51544cb340c37aba54b93a526c536e
44
config_hash: 0412cd40c0609550c1a47c69dd104e4f

alphaagent_test.go

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,21 @@ func TestAlphaAgentNewWithOptionalParams(t *testing.T) {
3131
ClientTools: []llamastackclient.ToolDefParam{{
3232
Name: "name",
3333
Description: llamastackclient.String("description"),
34+
InputSchema: map[string]llamastackclient.ToolDefInputSchemaUnionParam{
35+
"foo": {
36+
OfBool: llamastackclient.Bool(true),
37+
},
38+
},
3439
Metadata: map[string]llamastackclient.ToolDefMetadataUnionParam{
3540
"foo": {
3641
OfBool: llamastackclient.Bool(true),
3742
},
3843
},
39-
Parameters: []llamastackclient.ToolDefParameterParam{{
40-
Description: "description",
41-
Name: "name",
42-
ParameterType: "parameter_type",
43-
Required: true,
44-
Default: llamastackclient.ToolDefParameterDefaultUnionParam{
44+
OutputSchema: map[string]llamastackclient.ToolDefOutputSchemaUnionParam{
45+
"foo": {
4546
OfBool: llamastackclient.Bool(true),
4647
},
47-
Items: map[string]interface{}{},
48-
Title: llamastackclient.String("title"),
49-
}},
48+
},
5049
}},
5150
EnableSessionPersistence: llamastackclient.Bool(true),
5251
InputShields: []string{"string"},

0 commit comments

Comments
 (0)