WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit def56c4

Browse files
committed
feat: add connectors implementation for static config
Signed-off-by: Jaideep Rao <[email protected]>
1 parent f711d52 commit def56c4

File tree

14 files changed

+552
-197
lines changed

14 files changed

+552
-197
lines changed

client-sdks/stainless/openapi.yml

Lines changed: 55 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3897,23 +3897,30 @@ paths:
38973897
schema:
38983898
$ref: '#/components/schemas/Connector'
38993899
'400':
3900-
description: Bad Request
39013900
$ref: '#/components/responses/BadRequest400'
3901+
description: Bad Request
39023902
'429':
3903-
description: Too Many Requests
39043903
$ref: '#/components/responses/TooManyRequests429'
3904+
description: Too Many Requests
39053905
'500':
3906-
description: Internal Server Error
39073906
$ref: '#/components/responses/InternalServerError500'
3907+
description: Internal Server Error
39083908
default:
3909-
description: Default Response
39103909
$ref: '#/components/responses/DefaultError'
3910+
description: Default Response
39113911
tags:
39123912
- Connectors
39133913
summary: Get Connector
39143914
description: Get a connector by its ID.
39153915
operationId: get_connector_v1alpha_connectors__connector_id__get
39163916
parameters:
3917+
- name: include_tools
3918+
in: query
3919+
required: false
3920+
schema:
3921+
type: boolean
3922+
default: false
3923+
title: Include Tools
39173924
- name: connector_id
39183925
in: path
39193926
required: true
@@ -3924,11 +3931,11 @@ paths:
39243931
get:
39253932
responses:
39263933
'200':
3927-
description: A MCPListToolsTool.
3934+
description: A ToolDef.
39283935
content:
39293936
application/json:
39303937
schema:
3931-
$ref: '#/components/schemas/MCPListToolsTool'
3938+
$ref: '#/components/schemas/ToolDef'
39323939
'400':
39333940
description: Bad Request
39343941
$ref: '#/components/responses/BadRequest400'
@@ -11860,7 +11867,7 @@ components:
1186011867
tools:
1186111868
anyOf:
1186211869
- items:
11863-
$ref: '#/components/schemas/MCPListToolsTool'
11870+
$ref: '#/components/schemas/ToolDef'
1186411871
type: array
1186511872
- type: 'null'
1186611873
description: List of tools available from the connector
@@ -12002,7 +12009,7 @@ components:
1200212009
properties:
1200312010
data:
1200412011
items:
12005-
$ref: '#/components/schemas/MCPListToolsTool'
12012+
$ref: '#/components/schemas/ToolDef'
1200612013
type: array
1200712014
title: Data
1200812015
type: object
@@ -13172,6 +13179,33 @@ components:
1317213179
- url
1317313180
title: RegistryInput
1317413181
type: object
13182+
ToolGroupInput:
13183+
description: Input data for registering a tool group.
13184+
properties:
13185+
toolgroup_id:
13186+
title: Toolgroup Id
13187+
type: string
13188+
provider_id:
13189+
title: Provider Id
13190+
type: string
13191+
args:
13192+
anyOf:
13193+
- additionalProperties: true
13194+
type: object
13195+
- type: 'null'
13196+
nullable: true
13197+
mcp_endpoint:
13198+
anyOf:
13199+
- $ref: '#/components/schemas/URL'
13200+
title: URL
13201+
- type: 'null'
13202+
nullable: true
13203+
title: URL
13204+
required:
13205+
- toolgroup_id
13206+
- provider_id
13207+
title: ToolGroupInput
13208+
type: object
1317513209
ConnectorInput:
1317613210
description: Input for creating a connector.
1317713211
properties:
@@ -13188,6 +13222,19 @@ components:
1318813222
description: URL of the connector
1318913223
title: Url
1319013224
type: string
13225+
headers:
13226+
anyOf:
13227+
- additionalProperties: true
13228+
type: object
13229+
- type: 'null'
13230+
description: HTTP headers to include when connecting
13231+
nullable: true
13232+
authorization:
13233+
anyOf:
13234+
- type: string
13235+
- type: 'null'
13236+
description: OAuth access token for authentication
13237+
nullable: true
1319113238
required:
1319213239
- url
1319313240
title: ConnectorInput
@@ -13276,33 +13323,6 @@ components:
1327613323
- items
1327713324
title: ConversationItemCreateRequest
1327813325
type: object
13279-
ToolGroupInput:
13280-
description: Input data for registering a tool group.
13281-
properties:
13282-
toolgroup_id:
13283-
title: Toolgroup Id
13284-
type: string
13285-
provider_id:
13286-
title: Provider Id
13287-
type: string
13288-
args:
13289-
anyOf:
13290-
- additionalProperties: true
13291-
type: object
13292-
- type: 'null'
13293-
nullable: true
13294-
mcp_endpoint:
13295-
anyOf:
13296-
- $ref: '#/components/schemas/URL'
13297-
title: URL
13298-
- type: 'null'
13299-
nullable: true
13300-
title: URL
13301-
required:
13302-
- toolgroup_id
13303-
- provider_id
13304-
title: ToolGroupInput
13305-
type: object
1330613326
Api:
1330713327
description: Enumeration of all available APIs in the Llama Stack system.
1330813328
enum:

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

Lines changed: 42 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8497,7 +8497,7 @@ components:
84978497
tools:
84988498
anyOf:
84998499
- items:
8500-
$ref: '#/components/schemas/MCPListToolsTool'
8500+
$ref: '#/components/schemas/ToolDef'
85018501
type: array
85028502
- type: 'null'
85038503
description: List of tools available from the connector
@@ -8639,7 +8639,7 @@ components:
86398639
properties:
86408640
data:
86418641
items:
8642-
$ref: '#/components/schemas/MCPListToolsTool'
8642+
$ref: '#/components/schemas/ToolDef'
86438643
type: array
86448644
title: Data
86458645
type: object
@@ -9809,6 +9809,33 @@ components:
98099809
- url
98109810
title: RegistryInput
98119811
type: object
9812+
ToolGroupInput:
9813+
description: Input data for registering a tool group.
9814+
properties:
9815+
toolgroup_id:
9816+
title: Toolgroup Id
9817+
type: string
9818+
provider_id:
9819+
title: Provider Id
9820+
type: string
9821+
args:
9822+
anyOf:
9823+
- additionalProperties: true
9824+
type: object
9825+
- type: 'null'
9826+
nullable: true
9827+
mcp_endpoint:
9828+
anyOf:
9829+
- $ref: '#/components/schemas/URL'
9830+
title: URL
9831+
- type: 'null'
9832+
nullable: true
9833+
title: URL
9834+
required:
9835+
- toolgroup_id
9836+
- provider_id
9837+
title: ToolGroupInput
9838+
type: object
98129839
ConnectorInput:
98139840
description: Input for creating a connector.
98149841
properties:
@@ -9825,6 +9852,19 @@ components:
98259852
description: URL of the connector
98269853
title: Url
98279854
type: string
9855+
headers:
9856+
anyOf:
9857+
- additionalProperties: true
9858+
type: object
9859+
- type: 'null'
9860+
description: HTTP headers to include when connecting
9861+
nullable: true
9862+
authorization:
9863+
anyOf:
9864+
- type: string
9865+
- type: 'null'
9866+
description: OAuth access token for authentication
9867+
nullable: true
98289868
required:
98299869
- url
98309870
title: ConnectorInput
@@ -9913,33 +9953,6 @@ components:
99139953
- items
99149954
title: ConversationItemCreateRequest
99159955
type: object
9916-
ToolGroupInput:
9917-
description: Input data for registering a tool group.
9918-
properties:
9919-
toolgroup_id:
9920-
title: Toolgroup Id
9921-
type: string
9922-
provider_id:
9923-
title: Provider Id
9924-
type: string
9925-
args:
9926-
anyOf:
9927-
- additionalProperties: true
9928-
type: object
9929-
- type: 'null'
9930-
nullable: true
9931-
mcp_endpoint:
9932-
anyOf:
9933-
- $ref: '#/components/schemas/URL'
9934-
title: URL
9935-
- type: 'null'
9936-
nullable: true
9937-
title: URL
9938-
required:
9939-
- toolgroup_id
9940-
- provider_id
9941-
title: ToolGroupInput
9942-
type: object
99439956
Api:
99449957
description: Enumeration of all available APIs in the Llama Stack system.
99459958
enum:

0 commit comments

Comments
 (0)