Skip to content

Commit dcf7ec3

Browse files
feat(api): deprecate toolgroup and tool_runtime apis
1 parent 78a5a5f commit dcf7ec3

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
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: 103
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-4ea81517e66f9dffe1f552b1d56fd745fd24dbf5523d2306fee7e19b96a86885.yml
3-
openapi_spec_hash: a30ec4b7a5399cb164fb818152a41b58
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-c53a119bf22adab585059b5426b8e4a5d9582783bce071ad600c22ab0ebc6578.yml
3+
openapi_spec_hash: c55f186ff8688e7ccca399cc7b4a87a0
44
config_hash: 39578cfdeb4a10121f2cb3fa3e4d5e20

src/resources/tool-runtime.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import * as Core from '../core';
1313
export class ToolRuntime extends APIResource {
1414
/**
1515
* Run a tool with the given arguments.
16+
*
17+
* @deprecated
1618
*/
1719
invokeTool(
1820
body: ToolRuntimeInvokeToolParams,
@@ -23,6 +25,8 @@ export class ToolRuntime extends APIResource {
2325

2426
/**
2527
* List all tools in the runtime.
28+
*
29+
* @deprecated
2630
*/
2731
listTools(
2832
query?: ToolRuntimeListToolsParams,

src/resources/toolgroups.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import * as Core from '../core';
1212
export class Toolgroups extends APIResource {
1313
/**
1414
* List tool groups with optional provider.
15+
*
16+
* @deprecated
1517
*/
1618
list(options?: Core.RequestOptions): Core.APIPromise<ToolgroupListResponse> {
1719
return (
@@ -21,6 +23,8 @@ export class Toolgroups extends APIResource {
2123

2224
/**
2325
* Get a tool group by its ID.
26+
*
27+
* @deprecated
2428
*/
2529
get(toolgroupId: string, options?: Core.RequestOptions): Core.APIPromise<ToolGroup> {
2630
return this._client.get(`/v1/toolgroups/${toolgroupId}`, options);

src/resources/tools.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import * as ToolRuntimeAPI from './tool-runtime';
1414
export class Tools extends APIResource {
1515
/**
1616
* List tools with optional tool group.
17+
*
18+
* @deprecated
1719
*/
1820
list(query?: ToolListParams, options?: Core.RequestOptions): Core.APIPromise<ToolListResponse>;
1921
list(options?: Core.RequestOptions): Core.APIPromise<ToolListResponse>;
@@ -31,6 +33,8 @@ export class Tools extends APIResource {
3133

3234
/**
3335
* Get a tool by its name.
36+
*
37+
* @deprecated
3438
*/
3539
get(toolName: string, options?: Core.RequestOptions): Core.APIPromise<ToolRuntimeAPI.ToolDef> {
3640
return this._client.get(`/v1/tools/${toolName}`, options);

0 commit comments

Comments
 (0)