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 f711d52

Browse files
committed
feati(api): add connectors API
Closes #4235 and #4061 (partially) Signed-off-by: Jaideep Rao <[email protected]>
1 parent a7c7c72 commit f711d52

File tree

11 files changed

+1977
-0
lines changed

11 files changed

+1977
-0
lines changed

client-sdks/stainless/openapi.yml

Lines changed: 423 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8437,6 +8437,90 @@ components:
84378437
- chunk_id
84388438
title: Chunk
84398439
description: A chunk of content that can be inserted into a vector database.
8440+
Connector:
8441+
properties:
8442+
identifier:
8443+
type: string
8444+
title: Identifier
8445+
description: Unique identifier for this resource in llama stack
8446+
provider_resource_id:
8447+
anyOf:
8448+
- type: string
8449+
- type: 'null'
8450+
description: Unique identifier for this resource in the provider
8451+
provider_id:
8452+
type: string
8453+
title: Provider Id
8454+
description: ID of the provider that owns this resource
8455+
type:
8456+
type: string
8457+
const: connector
8458+
title: Type
8459+
default: connector
8460+
connector_type:
8461+
$ref: '#/components/schemas/ConnectorType'
8462+
default: mcp
8463+
connector_id:
8464+
anyOf:
8465+
- type: string
8466+
- type: 'null'
8467+
description: User-specified identifier for the connector
8468+
url:
8469+
type: string
8470+
title: Url
8471+
description: URL of the connector
8472+
created_at:
8473+
type: string
8474+
format: date-time
8475+
title: Created At
8476+
description: Timestamp of creation
8477+
updated_at:
8478+
type: string
8479+
format: date-time
8480+
title: Updated At
8481+
description: Timestamp of last update
8482+
server_name:
8483+
anyOf:
8484+
- type: string
8485+
- type: 'null'
8486+
description: Name of the server
8487+
server_label:
8488+
anyOf:
8489+
- type: string
8490+
- type: 'null'
8491+
description: Label of the server
8492+
server_description:
8493+
anyOf:
8494+
- type: string
8495+
- type: 'null'
8496+
description: Description of the server
8497+
tools:
8498+
anyOf:
8499+
- items:
8500+
$ref: '#/components/schemas/MCPListToolsTool'
8501+
type: array
8502+
- type: 'null'
8503+
description: List of tools available from the connector
8504+
registry_id:
8505+
anyOf:
8506+
- type: string
8507+
- type: 'null'
8508+
description: ID of the registry this connector belongs to
8509+
type: object
8510+
required:
8511+
- identifier
8512+
- provider_id
8513+
- url
8514+
- created_at
8515+
- updated_at
8516+
title: Connector
8517+
description: A connector resource representing a connector registered in Llama Stack.
8518+
ConnectorType:
8519+
type: string
8520+
enum:
8521+
- mcp
8522+
title: ConnectorType
8523+
description: Type of connector.
84408524
ConversationItemInclude:
84418525
type: string
84428526
enum:
@@ -8527,6 +8611,42 @@ components:
85278611
- cancelled
85288612
title: JobStatus
85298613
description: Status of a job execution.
8614+
ListConnectorsResponse:
8615+
properties:
8616+
data:
8617+
items:
8618+
$ref: '#/components/schemas/Connector'
8619+
type: array
8620+
title: Data
8621+
type: object
8622+
required:
8623+
- data
8624+
title: ListConnectorsResponse
8625+
description: Response containing a list of connectors.
8626+
ListRegistriesResponse:
8627+
properties:
8628+
data:
8629+
items:
8630+
$ref: '#/components/schemas/Registry'
8631+
type: array
8632+
title: Data
8633+
type: object
8634+
required:
8635+
- data
8636+
title: ListRegistriesResponse
8637+
description: Response containing a list of registries.
8638+
ListToolsResponse:
8639+
properties:
8640+
data:
8641+
items:
8642+
$ref: '#/components/schemas/MCPListToolsTool'
8643+
type: array
8644+
title: Data
8645+
type: object
8646+
required:
8647+
- data
8648+
title: ListToolsResponse
8649+
description: Response containing a list of tools.
85308650
MCPListToolsTool:
85318651
properties:
85328652
input_schema:
@@ -8919,6 +9039,63 @@ components:
89199039
required:
89209040
- reasoning_tokens
89219041
title: OutputTokensDetails
9042+
Registry:
9043+
properties:
9044+
identifier:
9045+
type: string
9046+
title: Identifier
9047+
description: Unique identifier for this resource in llama stack
9048+
provider_resource_id:
9049+
anyOf:
9050+
- type: string
9051+
- type: 'null'
9052+
description: Unique identifier for this resource in the provider
9053+
provider_id:
9054+
type: string
9055+
title: Provider Id
9056+
description: ID of the provider that owns this resource
9057+
type:
9058+
type: string
9059+
const: registry
9060+
title: Type
9061+
default: registry
9062+
registry_type:
9063+
$ref: '#/components/schemas/RegistryType'
9064+
default: mcp
9065+
user_registry_id:
9066+
anyOf:
9067+
- type: string
9068+
- type: 'null'
9069+
description: User-specified identifier for the registry
9070+
url:
9071+
type: string
9072+
title: Url
9073+
description: URL of the registry
9074+
created_at:
9075+
type: string
9076+
format: date-time
9077+
title: Created At
9078+
description: Timestamp of creation
9079+
updated_at:
9080+
type: string
9081+
format: date-time
9082+
title: Updated At
9083+
description: Timestamp of last update
9084+
type: object
9085+
required:
9086+
- identifier
9087+
- provider_id
9088+
- url
9089+
- created_at
9090+
- updated_at
9091+
title: Registry
9092+
description: A registry resource representing a registry of connectors.
9093+
RegistryType:
9094+
type: string
9095+
enum:
9096+
- mcp
9097+
title: RegistryType
9098+
description: Type of registry.
89229099
SearchRankingOptions:
89239100
properties:
89249101
ranker:
@@ -9613,6 +9790,45 @@ components:
96139790
type: string
96149791
title: DialogType
96159792
type: object
9793+
RegistryInput:
9794+
description: Input for creating a registry.
9795+
properties:
9796+
url:
9797+
title: Url
9798+
type: string
9799+
user_registry_id:
9800+
anyOf:
9801+
- type: string
9802+
- type: 'null'
9803+
description: User-specified identifier for the registry
9804+
nullable: true
9805+
registry_type:
9806+
$ref: '#/components/schemas/RegistryType'
9807+
default: mcp
9808+
required:
9809+
- url
9810+
title: RegistryInput
9811+
type: object
9812+
ConnectorInput:
9813+
description: Input for creating a connector.
9814+
properties:
9815+
connector_type:
9816+
$ref: '#/components/schemas/ConnectorType'
9817+
default: mcp
9818+
connector_id:
9819+
anyOf:
9820+
- type: string
9821+
- type: 'null'
9822+
description: Unique identifier for the connector
9823+
nullable: true
9824+
url:
9825+
description: URL of the connector
9826+
title: Url
9827+
type: string
9828+
required:
9829+
- url
9830+
title: ConnectorInput
9831+
type: object
96169832
ConversationMessage:
96179833
description: OpenAI-compatible message item for conversations.
96189834
properties:
@@ -9748,6 +9964,7 @@ components:
97489964
- files
97499965
- prompts
97509966
- conversations
9967+
- connectors
97519968
- inspect
97529969
title: Api
97539970
type: string

0 commit comments

Comments
 (0)