DevOpsAgentService / Client / get_recommendation
get_recommendation¶
- DevOpsAgentService.Client.get_recommendation(**kwargs)¶
Retrieves a specific recommendation by its ID
See also: AWS API Documentation
Request Syntax
response = client.get_recommendation( agentSpaceId='string', recommendationId='string', recommendationVersion=123 )
- Parameters:
agentSpaceId (string) –
[REQUIRED]
The unique identifier for the agent space containing the recommendation
recommendationId (string) –
[REQUIRED]
The unique identifier for the recommendation to retrieve
recommendationVersion (integer) – Specific version of the recommendation to retrieve. If not specified, returns the latest version.
- Return type:
dict
- Returns:
Response Syntax
{ 'recommendation': { 'agentSpaceArn': 'string', 'recommendationId': 'string', 'taskId': 'string', 'goalId': 'string', 'title': 'string', 'content': { 'summary': 'string', 'spec': 'string' }, 'status': 'PROPOSED'|'ACCEPTED'|'REJECTED'|'CLOSED'|'COMPLETED'|'UPDATE_IN_PROGRESS', 'priority': 'HIGH'|'MEDIUM'|'LOW', 'goalVersion': 123, 'additionalContext': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1), 'version': 123 } }
Response Structure
(dict) –
Response structure containing the requested recommendation
recommendation (dict) –
The requested recommendation
agentSpaceArn (string) –
ARN of the agent space this recommendation belongs to
recommendationId (string) –
The unique identifier for this recommendation
taskId (string) –
ID of the task that generated the recommendation
goalId (string) –
ID of the goal this recommendation is associated with
title (string) –
The title of the recommendation
content (dict) –
Content of the recommendation
summary (string) –
A brief summary of the recommendation.
spec (string) –
Agent-ready specification with detailed implementation steps
status (string) –
Current status of the recommendation
priority (string) –
Priority level of the recommendation
goalVersion (integer) –
Version of the goal at the time this recommendation was generated
additionalContext (string) –
Additional context for recommendation
createdAt (datetime) –
Timestamp when this recommendation was created
updatedAt (datetime) –
Timestamp when this recommendation was last updated
version (integer) –
Version number for optimistic locking
Exceptions
DevOpsAgentService.Client.exceptions.ContentSizeExceededExceptionDevOpsAgentService.Client.exceptions.ServiceQuotaExceededExceptionDevOpsAgentService.Client.exceptions.InternalServerExceptionDevOpsAgentService.Client.exceptions.ResourceNotFoundExceptionDevOpsAgentService.Client.exceptions.InvalidParameterException