Skip to content

Commit b54df67

Browse files
committed
feat(api): deprecate toolgroup and tool_runtime apis
Closes #4233 and #4061 (partially) Signed-off-by: Jaideep Rao <[email protected]>
1 parent 618c034 commit b54df67

File tree

5 files changed

+175
-234
lines changed

5 files changed

+175
-234
lines changed

client-sdks/stainless/openapi.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2091,6 +2091,7 @@ paths:
20912091
schema:
20922092
$ref: '#/components/schemas/InvokeToolRequest'
20932093
required: true
2094+
deprecated: true
20942095
/v1/tool-runtime/list-tools:
20952096
get:
20962097
responses:
@@ -2142,6 +2143,7 @@ paths:
21422143
- $ref: '#/components/schemas/URL'
21432144
- type: 'null'
21442145
title: Mcp Endpoint
2146+
deprecated: true
21452147
/v1/toolgroups:
21462148
get:
21472149
responses:
@@ -2168,6 +2170,7 @@ paths:
21682170
summary: List Tool Groups
21692171
description: List tool groups with optional provider.
21702172
operationId: list_tool_groups_v1_toolgroups_get
2173+
deprecated: true
21712174
post:
21722175
responses:
21732176
'400':
@@ -2229,6 +2232,7 @@ paths:
22292232
schema:
22302233
type: string
22312234
description: 'Path parameter: toolgroup_id'
2235+
deprecated: true
22322236
delete:
22332237
responses:
22342238
'400':
@@ -2293,6 +2297,7 @@ paths:
22932297
- type: string
22942298
- type: 'null'
22952299
title: Toolgroup Id
2300+
deprecated: true
22962301
/v1/tools/{tool_name}:
22972302
get:
22982303
responses:
@@ -2326,6 +2331,7 @@ paths:
23262331
schema:
23272332
type: string
23282333
description: 'Path parameter: tool_name'
2334+
deprecated: true
23292335
/v1/vector-io/insert:
23302336
post:
23312337
responses:

docs/static/deprecated-llama-stack-spec.yaml

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,91 @@ paths:
378378
type: string
379379
description: 'Path parameter: identifier'
380380
deprecated: true
381+
/v1/tool-runtime/invoke:
382+
post:
383+
responses:
384+
'200':
385+
description: A ToolInvocationResult.
386+
content:
387+
application/json:
388+
schema:
389+
$ref: '#/components/schemas/ToolInvocationResult'
390+
'400':
391+
description: Bad Request
392+
$ref: '#/components/responses/BadRequest400'
393+
'429':
394+
description: Too Many Requests
395+
$ref: '#/components/responses/TooManyRequests429'
396+
'500':
397+
description: Internal Server Error
398+
$ref: '#/components/responses/InternalServerError500'
399+
default:
400+
description: Default Response
401+
$ref: '#/components/responses/DefaultError'
402+
tags:
403+
- Tool Runtime
404+
summary: Invoke Tool
405+
description: Run a tool with the given arguments.
406+
operationId: invoke_tool_v1_tool_runtime_invoke_post
407+
requestBody:
408+
content:
409+
application/json:
410+
schema:
411+
$ref: '#/components/schemas/InvokeToolRequest'
412+
required: true
413+
deprecated: true
414+
/v1/tool-runtime/list-tools:
415+
get:
416+
responses:
417+
'200':
418+
description: A ListToolDefsResponse.
419+
content:
420+
application/json:
421+
schema:
422+
$ref: '#/components/schemas/ListToolDefsResponse'
423+
'400':
424+
$ref: '#/components/responses/BadRequest400'
425+
description: Bad Request
426+
'429':
427+
$ref: '#/components/responses/TooManyRequests429'
428+
description: Too Many Requests
429+
'500':
430+
$ref: '#/components/responses/InternalServerError500'
431+
description: Internal Server Error
432+
default:
433+
$ref: '#/components/responses/DefaultError'
434+
description: Default Response
435+
tags:
436+
- Tool Runtime
437+
summary: List Runtime Tools
438+
description: List all tools in the runtime.
439+
operationId: list_runtime_tools_v1_tool_runtime_list_tools_get
440+
parameters:
441+
- name: authorization
442+
in: query
443+
required: false
444+
schema:
445+
anyOf:
446+
- type: string
447+
- type: 'null'
448+
title: Authorization
449+
- name: tool_group_id
450+
in: query
451+
required: false
452+
schema:
453+
anyOf:
454+
- type: string
455+
- type: 'null'
456+
title: Tool Group Id
457+
- name: mcp_endpoint
458+
in: query
459+
required: false
460+
schema:
461+
anyOf:
462+
- $ref: '#/components/schemas/URL'
463+
- type: 'null'
464+
title: Mcp Endpoint
465+
deprecated: true
381466
/v1/toolgroups:
382467
get:
383468
responses:
@@ -404,6 +489,7 @@ paths:
404489
summary: List Tool Groups
405490
description: List tool groups with optional provider.
406491
operationId: list_tool_groups_v1_toolgroups_get
492+
deprecated: true
407493
post:
408494
responses:
409495
'400':
@@ -465,6 +551,7 @@ paths:
465551
schema:
466552
type: string
467553
description: 'Path parameter: toolgroup_id'
554+
deprecated: true
468555
delete:
469556
responses:
470557
'400':
@@ -494,6 +581,76 @@ paths:
494581
type: string
495582
description: 'Path parameter: toolgroup_id'
496583
deprecated: true
584+
/v1/tools:
585+
get:
586+
responses:
587+
'200':
588+
description: A ListToolDefsResponse.
589+
content:
590+
application/json:
591+
schema:
592+
$ref: '#/components/schemas/ListToolDefsResponse'
593+
'400':
594+
$ref: '#/components/responses/BadRequest400'
595+
description: Bad Request
596+
'429':
597+
$ref: '#/components/responses/TooManyRequests429'
598+
description: Too Many Requests
599+
'500':
600+
$ref: '#/components/responses/InternalServerError500'
601+
description: Internal Server Error
602+
default:
603+
$ref: '#/components/responses/DefaultError'
604+
description: Default Response
605+
tags:
606+
- Tool Groups
607+
summary: List Tools
608+
description: List tools with optional tool group.
609+
operationId: list_tools_v1_tools_get
610+
parameters:
611+
- name: toolgroup_id
612+
in: query
613+
required: false
614+
schema:
615+
anyOf:
616+
- type: string
617+
- type: 'null'
618+
title: Toolgroup Id
619+
deprecated: true
620+
/v1/tools/{tool_name}:
621+
get:
622+
responses:
623+
'200':
624+
description: A ToolDef.
625+
content:
626+
application/json:
627+
schema:
628+
$ref: '#/components/schemas/ToolDef'
629+
'400':
630+
description: Bad Request
631+
$ref: '#/components/responses/BadRequest400'
632+
'429':
633+
description: Too Many Requests
634+
$ref: '#/components/responses/TooManyRequests429'
635+
'500':
636+
description: Internal Server Error
637+
$ref: '#/components/responses/InternalServerError500'
638+
default:
639+
description: Default Response
640+
$ref: '#/components/responses/DefaultError'
641+
tags:
642+
- Tool Groups
643+
summary: Get Tool
644+
description: Get a tool by its name.
645+
operationId: get_tool_v1_tools__tool_name__get
646+
parameters:
647+
- name: tool_name
648+
in: path
649+
required: true
650+
schema:
651+
type: string
652+
description: 'Path parameter: tool_name'
653+
deprecated: true
497654
/v1beta/datasets:
498655
get:
499656
responses:

0 commit comments

Comments
 (0)