|
6346 | 6346 | "type":"list", |
6347 | 6347 | "member":{"shape":"GroupingValue"} |
6348 | 6348 | }, |
| 6349 | + "GuardrailAction":{ |
| 6350 | + "type":"string", |
| 6351 | + "documentation":"<p>The outcome of a guardrail assessment.</p>", |
| 6352 | + "enum":[ |
| 6353 | + "NONE", |
| 6354 | + "BLOCKED", |
| 6355 | + "MASKED" |
| 6356 | + ] |
| 6357 | + }, |
6349 | 6358 | "GuardrailContentFilterConfig":{ |
6350 | 6359 | "type":"structure", |
6351 | 6360 | "required":[ |
|
6523 | 6532 | ], |
6524 | 6533 | "sensitive":true |
6525 | 6534 | }, |
| 6535 | + "GuardrailPolicyResult":{ |
| 6536 | + "type":"structure", |
| 6537 | + "required":[ |
| 6538 | + "policyType", |
| 6539 | + "action" |
| 6540 | + ], |
| 6541 | + "members":{ |
| 6542 | + "policyType":{ |
| 6543 | + "shape":"GuardrailPolicyType", |
| 6544 | + "documentation":"<p>The type of guardrail policy that was evaluated.</p>" |
| 6545 | + }, |
| 6546 | + "action":{ |
| 6547 | + "shape":"GuardrailAction", |
| 6548 | + "documentation":"<p>Outcome of this specific policy.</p>" |
| 6549 | + }, |
| 6550 | + "details":{ |
| 6551 | + "shape":"NonEmptyString", |
| 6552 | + "documentation":"<p>Policy-specific detail.</p>" |
| 6553 | + } |
| 6554 | + }, |
| 6555 | + "documentation":"<p>Per-policy guardrail assessment result. Captures which policy triggered, its outcome, and a policy-specific detail string.</p>" |
| 6556 | + }, |
| 6557 | + "GuardrailPolicyResultList":{ |
| 6558 | + "type":"list", |
| 6559 | + "member":{"shape":"GuardrailPolicyResult"}, |
| 6560 | + "max":50, |
| 6561 | + "min":0 |
| 6562 | + }, |
| 6563 | + "GuardrailPolicyType":{ |
| 6564 | + "type":"string", |
| 6565 | + "documentation":"<p>Classification of a guardrail policy.</p>", |
| 6566 | + "enum":[ |
| 6567 | + "CONTENT_FILTER", |
| 6568 | + "TOPIC", |
| 6569 | + "WORD", |
| 6570 | + "SENSITIVE_INFORMATION_PII", |
| 6571 | + "SENSITIVE_INFORMATION_REGEX", |
| 6572 | + "CONTEXTUAL_GROUNDING" |
| 6573 | + ] |
| 6574 | + }, |
6526 | 6575 | "GuardrailRegexConfig":{ |
6527 | 6576 | "type":"structure", |
6528 | 6577 | "required":[ |
|
6585 | 6634 | ], |
6586 | 6635 | "sensitive":true |
6587 | 6636 | }, |
| 6637 | + "GuardrailSource":{ |
| 6638 | + "type":"string", |
| 6639 | + "documentation":"<p>Content source for a guardrail assessment.</p>", |
| 6640 | + "enum":[ |
| 6641 | + "INPUT", |
| 6642 | + "OUTPUT" |
| 6643 | + ] |
| 6644 | + }, |
6588 | 6645 | "GuardrailTopicConfig":{ |
6589 | 6646 | "type":"structure", |
6590 | 6647 | "required":[ |
|
11231 | 11288 | "timeToFirstTokenMs":{ |
11232 | 11289 | "shape":"Integer", |
11233 | 11290 | "documentation":"<p>Time to first token in milliseconds, measured from when Amazon Bedrock was invoked to when the first token was returned</p>" |
| 11291 | + }, |
| 11292 | + "guardrailAssessments":{ |
| 11293 | + "shape":"SpanGuardrailAssessmentList", |
| 11294 | + "documentation":"<p>Guardrail assessments for the inference span. Absent on other span types and when no AI Guardrail is attached to the AI Agent.</p>" |
11234 | 11295 | } |
11235 | 11296 | }, |
11236 | 11297 | "documentation":"<p>Contextual attributes capturing operation details, LLM configuration, usage metrics, and conversation data</p>" |
|
11279 | 11340 | "max":10, |
11280 | 11341 | "min":0 |
11281 | 11342 | }, |
| 11343 | + "SpanGuardrailAssessment":{ |
| 11344 | + "type":"structure", |
| 11345 | + "required":[ |
| 11346 | + "guardrailId", |
| 11347 | + "guardrailName", |
| 11348 | + "source", |
| 11349 | + "action" |
| 11350 | + ], |
| 11351 | + "members":{ |
| 11352 | + "guardrailId":{ |
| 11353 | + "shape":"NonEmptyString", |
| 11354 | + "documentation":"<p>Unique AI Guardrail identifier.</p>" |
| 11355 | + }, |
| 11356 | + "guardrailName":{ |
| 11357 | + "shape":"NonEmptyString", |
| 11358 | + "documentation":"<p>Customer-defined display name of the AI Guardrail resource.</p>" |
| 11359 | + }, |
| 11360 | + "source":{ |
| 11361 | + "shape":"GuardrailSource", |
| 11362 | + "documentation":"<p>Content source the guardrail was evaluated against.</p>" |
| 11363 | + }, |
| 11364 | + "action":{ |
| 11365 | + "shape":"GuardrailAction", |
| 11366 | + "documentation":"<p>Outcome of the guardrail assessment.</p>" |
| 11367 | + }, |
| 11368 | + "policies":{ |
| 11369 | + "shape":"GuardrailPolicyResultList", |
| 11370 | + "documentation":"<p>Per-policy assessment results. Absent or empty when action is NONE.</p>" |
| 11371 | + } |
| 11372 | + }, |
| 11373 | + "documentation":"<p>Result of a single guardrail assessment, covering either the input (customer/user message) or the output (LLM response) of a Bedrock Converse call.</p>" |
| 11374 | + }, |
| 11375 | + "SpanGuardrailAssessmentList":{ |
| 11376 | + "type":"list", |
| 11377 | + "member":{"shape":"SpanGuardrailAssessment"}, |
| 11378 | + "max":10, |
| 11379 | + "min":0 |
| 11380 | + }, |
11282 | 11381 | "SpanList":{ |
11283 | 11382 | "type":"list", |
11284 | 11383 | "member":{"shape":"Span"}, |
|
0 commit comments