Bedrock / Client / get_prompt_router
get_prompt_router#
- Bedrock.Client.get_prompt_router(**kwargs)#
Retrieves details about a prompt router.
See also: AWS API Documentation
Request Syntax
response = client.get_prompt_router( promptRouterArn='string' )
- Parameters:
promptRouterArn (string) –
[REQUIRED]
The prompt router’s ARN
- Return type:
dict
- Returns:
Response Syntax
{ 'promptRouterName': 'string', 'routingCriteria': { 'responseQualityDifference': 123.0 }, 'description': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1), 'promptRouterArn': 'string', 'models': [ { 'modelArn': 'string' }, ], 'fallbackModel': { 'modelArn': 'string' }, 'status': 'AVAILABLE', 'type': 'custom'|'default' }
Response Structure
(dict) –
promptRouterName (string) –
The router’s name.
routingCriteria (dict) –
The router’s routing criteria.
responseQualityDifference (float) –
The criteria’s response quality difference.
description (string) –
The router’s description.
createdAt (datetime) –
When the router was created.
updatedAt (datetime) –
When the router was updated.
promptRouterArn (string) –
The prompt router’s ARN
models (list) –
The router’s models.
(dict) –
The target model for a prompt router.
modelArn (string) –
The target model’s ARN.
fallbackModel (dict) –
The router’s fallback model.
modelArn (string) –
The target model’s ARN.
status (string) –
The router’s status.
type (string) –
The router’s type.
Exceptions