Skip to content

Commit 5a98473

Browse files
committed
generate doc
Signed-off-by: Stephanie <[email protected]>
1 parent c1dd518 commit 5a98473

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

docs/openapi.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,40 @@
123123
}
124124
}
125125
},
126+
"/v1/shields": {
127+
"get": {
128+
"tags": [
129+
"shields"
130+
],
131+
"summary": "Shields Endpoint Handler",
132+
"description": "Handle requests to the /shields endpoint.\n\nProcess GET requests to the /shields endpoint, returning a list of available\nshields from the Llama Stack service.\n\nRaises:\n HTTPException: If unable to connect to the Llama Stack server or if\n shield retrieval fails for any reason.\n\nReturns:\n ShieldsResponse: An object containing the list of available shields.",
133+
"operationId": "shields_endpoint_handler_v1_shields_get",
134+
"responses": {
135+
"200": {
136+
"description": "Successful Response",
137+
"content": {
138+
"application/json": {
139+
"schema": {
140+
"$ref": "#/components/schemas/ShieldsResponse"
141+
}
142+
}
143+
},
144+
"shields": [
145+
{
146+
"identifier": "lightspeed_question_validity-shield",
147+
"provider_resource_id": "lightspeed_question_validity-shield",
148+
"provider_id": "lightspeed_question_validity",
149+
"type": "shield",
150+
"params": {}
151+
}
152+
]
153+
},
154+
"500": {
155+
"description": "Connection to Llama Stack is broken"
156+
}
157+
}
158+
}
159+
},
126160
"/v1/query": {
127161
"post": {
128162
"tags": [
@@ -1082,6 +1116,7 @@
10821116
"delete_conversation",
10831117
"feedback",
10841118
"get_models",
1119+
"get_shields",
10851120
"get_metrics",
10861121
"get_config",
10871122
"info",
@@ -2990,6 +3025,34 @@
29903025
"title": "ServiceConfiguration",
29913026
"description": "Service configuration."
29923027
},
3028+
"ShieldsResponse": {
3029+
"properties": {
3030+
"shields": {
3031+
"items": {
3032+
"additionalProperties": true,
3033+
"type": "object"
3034+
},
3035+
"type": "array",
3036+
"title": "Shields",
3037+
"description": "List of shields available",
3038+
"examples": [
3039+
{
3040+
"identifier": "lightspeed_question_validity-shield",
3041+
"params": {},
3042+
"provider_id": "lightspeed_question_validity",
3043+
"provider_resource_id": "lightspeed_question_validity-shield",
3044+
"type": "shield"
3045+
}
3046+
]
3047+
}
3048+
},
3049+
"type": "object",
3050+
"required": [
3051+
"shields"
3052+
],
3053+
"title": "ShieldsResponse",
3054+
"description": "Model representing a response to shields request."
3055+
},
29933056
"StatusResponse": {
29943057
"properties": {
29953058
"functionality": {

0 commit comments

Comments
 (0)