@@ -1775,6 +1775,49 @@ components:
17751775 type:
17761776 - 'object'
17771777 - 'null'
1778+ AnthropicSafeguard:
1779+ additionalProperties: {}
1780+ description: 'A server-side safeguard Anthropic evaluates alongside the completion'
1781+ example:
1782+ classifier_context:
1783+ permission_mode: 'auto'
1784+ v: 1
1785+ type: 'dangerous_tool_use'
1786+ properties:
1787+ classifier_context:
1788+ additionalProperties: {}
1789+ type: 'object'
1790+ type:
1791+ type: 'string'
1792+ required:
1793+ - 'type'
1794+ type: 'object'
1795+ AnthropicSafeguardResult:
1796+ additionalProperties: {}
1797+ description: 'The outcome of a server-side safeguard, keyed by tool-use id where applicable'
1798+ example:
1799+ status:
1800+ tool_uses:
1801+ toolu_01ABC:
1802+ outcome: 'not_flagged'
1803+ type: 'evaluated'
1804+ type: 'available'
1805+ type: 'dangerous_tool_use'
1806+ properties:
1807+ status:
1808+ additionalProperties: {}
1809+ properties:
1810+ type:
1811+ type: 'string'
1812+ required:
1813+ - 'type'
1814+ type: 'object'
1815+ type:
1816+ type: 'string'
1817+ required:
1818+ - 'type'
1819+ - 'status'
1820+ type: 'object'
17781821 AnthropicSearchResultBlockParam:
17791822 example:
17801823 content:
@@ -14316,6 +14359,12 @@ components:
1431614359 properties:
1431714360 container:
1431814361 $ref: '#/components/schemas/AnthropicContainer'
14362+ safeguard_results:
14363+ items:
14364+ $ref: '#/components/schemas/AnthropicSafeguardResult'
14365+ type:
14366+ - 'array'
14367+ - 'null'
1431914368 stop_details:
1432014369 $ref: '#/components/schemas/AnthropicRefusalStopDetails'
1432114370 stop_reason:
@@ -14836,6 +14885,12 @@ components:
1483614885 $ref: '#/components/schemas/ProviderPreferences'
1483714886 route:
1483814887 $ref: '#/components/schemas/DeprecatedRoute'
14888+ safeguards:
14889+ items:
14890+ $ref: '#/components/schemas/AnthropicSafeguard'
14891+ type:
14892+ - 'array'
14893+ - 'null'
1483914894 service_tier:
1484014895 type: 'string'
1484114896 session_id:
@@ -15162,6 +15217,12 @@ components:
1516215217 $ref: '#/components/schemas/OpenRouterMetadata'
1516315218 provider:
1516415219 $ref: '#/components/schemas/ProviderName'
15220+ safeguard_results:
15221+ items:
15222+ $ref: '#/components/schemas/AnthropicSafeguardResult'
15223+ type:
15224+ - 'array'
15225+ - 'null'
1516515226 usage:
1516615227 allOf:
1516715228 - $ref: '#/components/schemas/AnthropicUsage'
0 commit comments