use guardrails and run_moderation api

This commit is contained in:
Swapna Lekkala 2025-10-13 12:12:53 -07:00
parent 171fb7101d
commit c10db23d7a
16 changed files with 184 additions and 195 deletions

View file

@ -1833,7 +1833,7 @@
"deprecated": false,
"x-llama-stack-extra-body-params": [
{
"name": "shields",
"name": "guardrails",
"schema": {
"type": "array",
"items": {
@ -1842,12 +1842,12 @@
"type": "string"
},
{
"$ref": "#/components/schemas/ResponseShieldSpec"
"$ref": "#/components/schemas/ResponseGuardrailSpec"
}
]
}
},
"description": "List of shields to apply during response generation. Shields provide safety and content moderation.",
"description": "List of guardrails to apply during response generation. Guardrails provide safety and content moderation.",
"required": false
}
]
@ -7854,20 +7854,20 @@
"title": "OpenAIResponseUsage",
"description": "Usage information for OpenAI response."
},
"ResponseShieldSpec": {
"ResponseGuardrailSpec": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The type/identifier of the shield."
"description": "The type/identifier of the guardrail."
}
},
"additionalProperties": false,
"required": [
"type"
],
"title": "ResponseShieldSpec",
"description": "Specification for a shield to apply during response generation."
"title": "ResponseGuardrailSpec",
"description": "Specification for a guardrail to apply during response generation."
},
"OpenAIResponseInputTool": {
"oneOf": [